1 #ifndef NPPPD_RADIUS_H 2 #define NPPPD_RADIUS_H 1 3 4 #include <sys/tree.h> 5 #include <netinet/in.h> 6 #include <event.h> 7 8 struct npppd_radius_dae_listen { 9 int sock; 10 struct event evsock; 11 union { 12 struct sockaddr_in sin4; 13 struct sockaddr_in6 sin6; 14 } addr; 15 npppd *pppd; 16 TAILQ_ENTRY(npppd_radius_dae_listen) entry; 17 }; 18 19 TAILQ_HEAD(npppd_radius_dae_listens, npppd_radius_dae_listen); 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 void ppp_proccess_radius_framed_ip(npppd_ppp *, RADIUS_PACKET *); 26 int ppp_set_radius_attrs_for_authreq(npppd_ppp *, radius_req_setting *, 27 RADIUS_PACKET *); 28 void npppd_ppp_radius_acct_start(npppd *, npppd_ppp *); 29 void npppd_ppp_radius_acct_stop(npppd *, npppd_ppp *); 30 void radius_acct_on(npppd *, radius_req_setting *); 31 void npppd_radius_dae_init(npppd *); 32 void npppd_radius_dae_fini(npppd *); 33 34 #ifdef __cplusplus 35 } 36 #endif 37 #endif 38