summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe/pppoe.h
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-12-29 11:05:11 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-12-29 11:05:11 +0400
commit5fa8eb247b742f402b40dd718ae04c43854e6802 (patch)
tree87fe3a77b3ca2ff771c9e4d6e912202d07719e3d /accel-pppd/ctrl/pppoe/pppoe.h
parentf1c39d3ff40aece8278afaec0098607d498cd768 (diff)
downloadaccel-ppp-5fa8eb247b742f402b40dd718ae04c43854e6802.tar.gz
accel-ppp-5fa8eb247b742f402b40dd718ae04c43854e6802.zip
pppoe: implemented PADI limiting
Diffstat (limited to 'accel-pppd/ctrl/pppoe/pppoe.h')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.h b/accel-pppd/ctrl/pppoe/pppoe.h
index b8c7281d..ff0fc788 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.h
+++ b/accel-pppd/ctrl/pppoe/pppoe.h
@@ -81,7 +81,12 @@ struct pppoe_serv_t
unsigned int conn_cnt;
struct list_head conn_list;
+
struct list_head pado_list;
+
+ struct list_head padi_list;
+ int padi_cnt;
+ int padi_limit;
};
extern int conf_verbose;
@@ -96,6 +101,7 @@ extern unsigned long stat_PADO_sent;
extern unsigned long stat_PADR_recv;
extern unsigned long stat_PADR_dup_recv;
extern unsigned long stat_PADS_sent;
+extern unsigned long stat_PADI_drop;
extern pthread_rwlock_t serv_lock;
extern struct list_head serv_list;