24 #define DEFAULT_TUNL_PREFIX "tunl"
25 #define DEFAULT_TUNL_NUMBER 0
26 #define DEFAULT_TUNL_IF "tunl0"
27 #define NTK_TUNL_PREFIX "ntk_tunl"
30 #define TUNL_STRING "%s%d"
31 #define TUNL_N(prefix, x) prefix, x
33 #define MAX_TUNNEL_IFS 24
50 char *tunl_prefix,
int tunl_number);
52 char *tunl_prefix,
int tunl_number);
54 char *tunl_prefix,
int tunl_number);
63 char *tunl_prefix,
int tunl_number,
inet_prefix *tunl_ip);
65 char *tunl_prefix,
int tunl_number);
int add_tunnel_if(inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number, inet_prefix *tunl_ip)
Definition: iptunnel.c:368
#define MAX_TUNNEL_IFS
Definition: iptunnel.h:33
int tunnel_add(inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
Definition: iptunnel.c:49
int tun_del_tunl(interface *ifs, char *tunl_prefix, u_char tunl_number)
Definition: iptunnel.c:307
int set_tunnel_ip(char *tunl_prefix, int tunl_number, inet_prefix *tunl_ip)
Definition: iptunnel.c:349
int tunnel_del(inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
Definition: iptunnel.c:63
void del_all_tunnel_ifs(inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix)
Definition: iptunnel.c:437
int first_free_tunnel_if(void)
Definition: iptunnel.c:335
int do_get(char *dev)
Definition: iptunnel.c:235
int del_tunnel_if(inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
Definition: iptunnel.c:418
int tun_add_tunl(interface *ifs, char *tunl_prefix, u_char tunl_number)
Definition: iptunnel.c:289
void init_tunnels_ifs(void)
Definition: iptunnel.c:325
int tunnel_change(inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
Definition: iptunnel.c:56