The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
if.c File Reference
#include "includes.h"
#include <fnmatch.h>
#include "common.h"
#include "inet.h"
#include "if.h"
#include "libnetlink.h"
#include "ll_map.h"
Include dependency graph for if.c:

Data Structures

struct  nlmsg_list
 

Functions

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)
 
int ifs_get_pos (interface *ifs, int ifs_n, interface *dev)
 
const char * get_dev (int *dev_idx)
 
int get_all_up_ifs (interface *ifs, int ifs_n)
 
int set_flags (char *dev, u_int flags, u_int mask)
 
int set_dev_up (char *dev)
 
int set_dev_down (char *dev)
 
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_dev_ip (inet_prefix ip, char *dev)
 
int set_all_dev_ip (inet_prefix ip, interface *ifs, int ifs_n)
 
int get_dev_ip (inet_prefix *ip, int family, char *dev)
 
static int flush_update (void)
 
int print_addrinfo (const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 
static int store_nlmsg (const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 
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)
 

Variables

int errno
 
struct {
   int   ifindex
 
   int   family
 
   int   oneline
 
   int   showqueue
 
   inet_prefix   pfx
 
   int   scope
 
   int   scopemask
 
   int   flags
 
   int   flagmask
 
   int   up
 
   char *   label
 
   int   flushed
 
   char *   flushb
 
   int   flushp
 
   int   flushe
 
   struct rtnl_handle *   rth
 
filter
 

Function Documentation

static int flush_update ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

int get_all_up_ifs ( interface ifs,
int  ifs_n 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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 print_addrinfo ( const struct sockaddr_nl *  who,
struct nlmsghdr *  n,
void *  arg 
)

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:

static int store_nlmsg ( const struct sockaddr_nl *  who,
struct nlmsghdr *  n,
void *  arg 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int errno
int family
struct { ... } filter
int flagmask
int flags
char* flushb
int flushe
int flushed
int flushp
int ifindex
char* label
int oneline
struct rtnl_handle* rth
int scope
int scopemask
int showqueue
int up