From bdf38bdf25400e175d8b20c087c9919199fe8b6e Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 6 Dec 2010 16:57:48 +0300 Subject: pppoe: changed cookie generation procedure and PADR handling procedure to avoid PADR flood --- accel-pptpd/ctrl/pppoe/pppoe.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'accel-pptpd/ctrl/pppoe/pppoe.h') diff --git a/accel-pptpd/ctrl/pppoe/pppoe.h b/accel-pptpd/ctrl/pppoe/pppoe.h index 91c8d30..5db3a49 100644 --- a/accel-pptpd/ctrl/pppoe/pppoe.h +++ b/accel-pptpd/ctrl/pppoe/pppoe.h @@ -2,6 +2,9 @@ #define __PPPOE_H #include + +#include + #include #include @@ -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; -- cgit v1.2.3