Merge branch 'use-netlink' into fdn-mods

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-08-17 17:23:07 +02:00
commit ec7ce23c79
6 changed files with 392 additions and 184 deletions

View file

@ -234,7 +234,7 @@ struct cli_tunnel_actions {
typedef struct // route
{
in_addr_t ip;
in_addr_t mask;
int prefixlen;
}
routet;
@ -617,6 +617,10 @@ struct Tstats
#define SET_STAT(x, y)
#endif
#ifndef IFNAMSIZ
# define IFNAMSIZ 16
#endif
typedef struct
{
int debug; // debugging level
@ -632,7 +636,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
@ -941,6 +945,7 @@ struct event_data {
FD_TYPE_DAE,
FD_TYPE_RADIUS,
FD_TYPE_BGP,
FD_TYPE_NETLINK,
} type;
int index; // for RADIUS, BGP
};