X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/ac773ac88d9c79ef287975d46853189e6a2b3618..464a2bb072ee5a243fd13ac96f3a7200ebf36c21:/l2tpns.h diff --git a/l2tpns.h b/l2tpns.h index 6849be9..bab2921 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -233,7 +233,7 @@ struct cli_tunnel_actions { typedef struct // route { in_addr_t ip; - in_addr_t mask; + int prefixlen; } routet; @@ -616,6 +616,10 @@ struct Tstats #define SET_STAT(x, y) #endif +#ifndef IFNAMSIZ +# define IFNAMSIZ 16 +#endif + typedef struct { int debug; // debugging level @@ -631,7 +635,7 @@ typedef struct int reload_config; // flag to re-read config (set by cli) int multi_read_count; // amount of packets to read per fd in processing loop - char tundevice[10]; // tun device name + char tundevice[IFNAMSIZ]; // tun device name char log_filename[128]; char l2tp_secret[64]; // L2TP shared secret @@ -935,6 +939,7 @@ struct event_data { FD_TYPE_DAE, FD_TYPE_RADIUS, FD_TYPE_BGP, + FD_TYPE_NETLINK, } type; int index; // for RADIUS, BGP };