diff options
author | Kozlov Dmitry <dima@server> | 2010-09-04 16:20:11 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-04 16:20:11 +0400 |
commit | af5a96e2d04056b065a36ecbd140a16d0685c7e6 (patch) | |
tree | f873b3c5c68a72d2df1785fdd0931bc57c91fd35 /accel-pptpd/ppp/ppp.h | |
parent | e8aa3a1457295f70f8ccc9cd7f2f9073f01a5e2e (diff) | |
download | accel-ppp-af5a96e2d04056b065a36ecbd140a16d0685c7e6.tar.gz accel-ppp-af5a96e2d04056b065a36ecbd140a16d0685c7e6.zip |
started work on radius module
Diffstat (limited to 'accel-pptpd/ppp/ppp.h')
-rw-r--r-- | accel-pptpd/ppp/ppp.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/accel-pptpd/ppp/ppp.h b/accel-pptpd/ppp/ppp.h index d880fc2a..da2fb97c 100644 --- a/accel-pptpd/ppp/ppp.h +++ b/accel-pptpd/ppp/ppp.h @@ -12,13 +12,6 @@ #define PPP_HEADERLEN 4 #define PPP_MTU 1500 -/* - * Timeouts. - */ -#define DEFTIMEOUT 3 /* Timeout time in seconds */ -#define DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */ -#define DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */ -#define DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */ /* * Protocol field values. @@ -48,8 +41,6 @@ #define PPP_LAYER_CCP 3 #define PPP_LAYER_IPCP 4 -#define AUTH_MAX 3 - struct ppp_t; struct ppp_ctrl_t @@ -59,6 +50,20 @@ struct ppp_ctrl_t void (*finished)(struct ppp_t*); }; +struct ppp_notified_t +{ + struct list_head entry; + void (*started)(struct ppp_notified_t *, struct ppp_t *); + void (*finished)(struct ppp_notified_t *, struct ppp_t *); + void (*authenticated)(struct ppp_notified_t *, struct ppp_t *); +}; + +struct ppp_pd_t +{ + struct list_head entry; + void *key; +}; + struct ppp_t { struct triton_md_handler_t chan_hnd; @@ -87,6 +92,8 @@ struct ppp_t struct list_head layers; struct ppp_lcp_t *lcp; + + struct list_head pd_list; }; struct ppp_layer_t; @@ -134,5 +141,10 @@ int ppp_register_layer(const char *name, struct ppp_layer_t *); void ppp_unregister_layer(struct ppp_layer_t *); struct ppp_layer_data_t *ppp_find_layer_data(struct ppp_t *, struct ppp_layer_t *); +void ppp_register_notified(struct ppp_notified_t *); +void ppp_unregister_notified(struct ppp_notified_t *); +void ppp_notify_started(struct ppp_t *ppp); +void ppp_notify_finished(struct ppp_t *ppp); + extern int sock_fd; // internet socket for ioctls #endif |