4 #define PLUGIN_API_VERSION 1
5 #define MAX_PLUGIN_TYPES 30
17 PLUGIN_RADIUS_RESPONSE
20 #define PLUGIN_RET_ERROR 0
21 #define PLUGIN_RET_OK 1
22 #define PLUGIN_RET_STOP 2
26 void (*_log
)(int level
, ipt address
, sessionidt s
, tunnelidt t
, const char *format
, ...);
27 void (*_log_hex
)(int level
, ipt address
, sessionidt s
, tunnelidt t
, const char *title
, const char *data
, int maxsize
);
28 char *(*inet_toa
)(unsigned long addr
);
29 sessionidt (*get_session_by_username
)(char *username
);
30 sessiont
*(*get_session_by_id
)(sessionidt s
);
31 sessionidt (*get_id_by_session
)(sessiont
*s
);
32 void (*sessionkill
)(sessionidt s
, char *reason
);
33 u8 (*radiusnew
)(sessionidt s
);
34 void (*radiussend
)(u8 r
, u8 state
);
47 struct param_post_auth
56 struct param_packet_rx
64 struct param_packet_tx
87 unsigned int source_ip
;
88 unsigned short source_port
;
98 struct param_new_session
104 struct param_kill_session
110 struct param_radius_response