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

Go to the source code of this file.

Data Structures

struct  interface
 
struct  in6_ifreq
 

Macros

#define MAX_INTERFACES
 

Functions

int ifs_get_pos (interface *ifs, int ifs_n, interface *dev)
 
interfaceifs_find_idx (interface *ifs, int ifs_n, int dev_idx)
 
int ifs_find_devname (interface *ifs, int ifs_n, char *dev_name)
 
void ifs_del (interface *ifs, int *ifs_n, int if_pos)
 
void ifs_del_byname (interface *ifs, int *ifs_n, char *dev_name)
 
void ifs_del_all_name (interface *ifs, int *ifs_n, char *dev_name)
 
const char * get_dev (int *dev_idx)
 
int set_dev_up (char *dev)
 
int set_dev_down (char *dev)
 
int set_flags (char *dev, u_int flags, u_int mask)
 
int set_all_ifs (interface *ifs, int ifs_n, int(*set_func)(char *dev))
 
int if_init_all (char *ifs_name[16], int ifs_n, interface *new_ifs, int *new_ifs_n)
 
void if_close_all (void)
 
int set_all_dev_ip (inet_prefix ip, interface *ifs, int ifs_n)
 
int set_dev_ip (inet_prefix ip, char *dev)
 
int get_dev_ip (inet_prefix *ip, int family, char *dev)
 
int ip_addr_flush (int family, char *dev, int scope)
 
int ip_addr_flush_all_ifs (interface *ifs, int ifs_n, int family, int scope)
 

Macro Definition Documentation

#define MAX_INTERFACES
Value:
16 /* The maximum number of network
interfaces, which can be used
by Netsukuku */

Function Documentation

const char* get_dev ( int *  dev_idx)

Here is the call graph for this function:

int get_dev_ip ( inet_prefix ip,
int  family,
char *  dev 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void if_close_all ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int if_init_all ( char *  ifs_name[16],
int  ifs_n,
interface new_ifs,
int *  new_ifs_n 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ifs_del ( interface ifs,
int *  ifs_n,
int  if_pos 
)

Here is the caller graph for this function:

void ifs_del_all_name ( interface ifs,
int *  ifs_n,
char *  dev_name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ifs_del_byname ( interface ifs,
int *  ifs_n,
char *  dev_name 
)

Here is the call graph for this function:

int ifs_find_devname ( interface ifs,
int  ifs_n,
char *  dev_name 
)

Here is the caller graph for this function:

interface* ifs_find_idx ( interface ifs,
int  ifs_n,
int  dev_idx 
)
int ifs_get_pos ( interface ifs,
int  ifs_n,
interface dev 
)

Here is the caller graph for this function:

int ip_addr_flush ( int  family,
char *  dev,
int  scope 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ip_addr_flush_all_ifs ( interface ifs,
int  ifs_n,
int  family,
int  scope 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int set_all_dev_ip ( inet_prefix  ip,
interface ifs,
int  ifs_n 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int set_all_ifs ( interface ifs,
int  ifs_n,
int(*)(char *dev)  set_func 
)

Here is the caller graph for this function:

int set_dev_down ( char *  dev)

Here is the call graph for this function:

Here is the caller graph for this function:

int set_dev_ip ( inet_prefix  ip,
char *  dev 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int set_dev_up ( char *  dev)

Here is the call graph for this function:

Here is the caller graph for this function:

int set_flags ( char *  dev,
u_int  flags,
u_int  mask 
)

Here is the call graph for this function:

Here is the caller graph for this function: