4 #define PLUGIN_API_VERSION 1
5 #define MAX_PLUGIN_TYPES 30
17 PLUGIN_RADIUS_RESPONSE
,
19 PLUGIN_NEW_SESSION_MASTER
,
22 #define PLUGIN_RET_ERROR 0
23 #define PLUGIN_RET_OK 1
24 #define PLUGIN_RET_STOP 2
28 void (*_log
)(int level
, ipt address
, sessionidt s
, tunnelidt t
, const char *format
, ...);
29 void (*_log_hex
)(int level
, ipt address
, sessionidt s
, tunnelidt t
, const char *title
, const char *data
, int maxsize
);
30 char *(*inet_toa
)(unsigned long addr
);
31 sessionidt (*get_session_by_username
)(char *username
);
32 sessiont
*(*get_session_by_id
)(sessionidt s
);
33 sessionidt (*get_id_by_session
)(sessiont
*s
);
34 void (*sessionkill
)(sessionidt s
, char *reason
);
35 u16 (*radiusnew
)(sessionidt s
);
36 void (*radiussend
)(u16 r
, u8 state
);
49 struct param_post_auth
58 struct param_packet_rx
66 struct param_packet_tx
89 unsigned int source_ip
;
90 unsigned short source_port
;
100 struct param_new_session
106 struct param_kill_session
112 struct param_radius_response
120 #endif /* __PLUGIN_H__ */