diff options
Diffstat (limited to 'accel-pptpd/ctrl/pppoe/pppoe.h')
-rw-r--r-- | accel-pptpd/ctrl/pppoe/pppoe.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/accel-pptpd/ctrl/pppoe/pppoe.h b/accel-pptpd/ctrl/pppoe/pppoe.h index 91c8d300..5db3a497 100644 --- a/accel-pptpd/ctrl/pppoe/pppoe.h +++ b/accel-pptpd/ctrl/pppoe/pppoe.h @@ -2,6 +2,9 @@ #define __PPPOE_H #include <pthread.h> + +#include <openssl/des.h> + #include <linux/if.h> #include <linux/if_pppox.h> @@ -39,6 +42,8 @@ #define MAX_PPPOE_MTU (MAX_PPPOE_PAYLOAD - 2) #define MAX_SID 65534 +#define SECRET_LENGTH 16 +#define COOKIE_LENGTH 24 struct pppoe_tag_t { @@ -64,6 +69,9 @@ struct pppoe_serv_t uint8_t hwaddr[ETH_ALEN]; char *ifname; + uint8_t secret[SECRET_LENGTH]; + DES_key_schedule des_ks; + pthread_mutex_t lock; struct pppoe_conn_t *conn[MAX_SID]; uint16_t sid; |