X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/be29ef6cb251dbcf421701a44333520a755aecae..7a42b7193b4020cbe12f6e602c5d1de3cd850bef:/l2tpns.h?ds=sidebyside diff --git a/l2tpns.h b/l2tpns.h index add806f..ac75b7b 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -1,5 +1,5 @@ // L2TPNS Global Stuff -// $Id: l2tpns.h,v 1.55 2005-02-09 00:16:19 bodea Exp $ +// $Id: l2tpns.h,v 1.57 2005-02-14 06:58:39 bodea Exp $ #ifndef __L2TPNS_H__ #define __L2TPNS_H__ @@ -19,7 +19,7 @@ // Limits #define MAXTUNNEL 500 // could be up to 65535 -#define MAXSESSION 50000 // could be up to 65535 +#define MAXSESSION 60000 // could be up to 65535 #define MAXTBFS 6000 // Maximum token bucket filters. Might need up to 2 * session. #define RADIUS_SHIFT 5 @@ -617,6 +617,7 @@ sessionidt sessionbyip(in_addr_t ip); sessionidt sessionbyipv6(struct in6_addr ip); sessionidt sessionbyuser(char *username); void random_data(uint8_t *buf, int len); +void sessionkill(sessionidt s, char *reason); void sessionshutdown(sessionidt s, char *reason); void send_garp(in_addr_t ip); void tunnelsend(uint8_t *buf, uint16_t l, tunnelidt t);