The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
iptunnel.h File Reference
#include "if.h"
Include dependency graph for iptunnel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_TUNL_PREFIX   "tunl"
 
#define DEFAULT_TUNL_NUMBER   0 /* The permanent tunl0 device */
 
#define DEFAULT_TUNL_IF   "tunl0"
 
#define NTK_TUNL_PREFIX   "ntk_tunl"
 
#define TUNL_STRING   "%s%d"
 
#define TUNL_N(prefix, x)   prefix, x
 
#define MAX_TUNNEL_IFS
 

Functions

int tunnel_add (inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
 
int tunnel_change (inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
 
int tunnel_del (inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
 
int tun_add_tunl (interface *ifs, char *tunl_prefix, u_char tunl_number)
 
int tun_del_tunl (interface *ifs, char *tunl_prefix, u_char tunl_number)
 
void init_tunnels_ifs (void)
 
int set_tunnel_ip (char *tunl_prefix, int tunl_number, inet_prefix *tunl_ip)
 
int first_free_tunnel_if (void)
 
int do_get (char *dev)
 
int add_tunnel_if (inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number, inet_prefix *tunl_ip)
 
int del_tunnel_if (inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix, int tunl_number)
 
void del_all_tunnel_ifs (inet_prefix *remote, inet_prefix *local, char *dev, char *tunl_prefix)
 

Macro Definition Documentation

#define DEFAULT_TUNL_IF   "tunl0"
#define DEFAULT_TUNL_NUMBER   0 /* The permanent tunl0 device */
#define DEFAULT_TUNL_PREFIX   "tunl"
#define MAX_TUNNEL_IFS
Value:
24 /* it must be >= MAX_MULTIPATH_ROUTES,
since in igs.c we are using a tunnel
for each nexthop inet-gw */
#define NTK_TUNL_PREFIX   "ntk_tunl"
#define TUNL_N (   prefix,
 
)    prefix, x
#define TUNL_STRING   "%s%d"

Function Documentation

int add_tunnel_if ( inet_prefix remote,
inet_prefix local,
char *  dev,
char *  tunl_prefix,
int  tunl_number,
inet_prefix tunl_ip 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void del_all_tunnel_ifs ( inet_prefix remote,
inet_prefix local,
char *  dev,
char *  tunl_prefix 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int del_tunnel_if ( inet_prefix remote,
inet_prefix local,
char *  dev,
char *  tunl_prefix,
int  tunl_number 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int do_get ( char *  dev)

Here is the call graph for this function:

Here is the caller graph for this function:

int first_free_tunnel_if ( void  )
void init_tunnels_ifs ( void  )

Here is the caller graph for this function:

int set_tunnel_ip ( char *  tunl_prefix,
int  tunl_number,
inet_prefix tunl_ip 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int tun_add_tunl ( interface ifs,
char *  tunl_prefix,
u_char  tunl_number 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int tun_del_tunl ( interface ifs,
char *  tunl_prefix,
u_char  tunl_number 
)

Here is the caller graph for this function:

int tunnel_add ( inet_prefix remote,
inet_prefix local,
char *  dev,
char *  tunl_prefix,
int  tunl_number 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int tunnel_change ( inet_prefix remote,
inet_prefix local,
char *  dev,
char *  tunl_prefix,
int  tunl_number 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int tunnel_del ( inet_prefix remote,
inet_prefix local,
char *  dev,
char *  tunl_prefix,
int  tunl_number 
)

Here is the call graph for this function:

Here is the caller graph for this function: