The Netsukuku Project
0.0.9
An Alternative routing method
|
#include "includes.h"
#include <fnmatch.h>
#include "common.h"
#include "inet.h"
#include "if.h"
#include "libnetlink.h"
#include "ll_map.h"
Data Structures | |
struct | nlmsg_list |
Functions | |
interface * | ifs_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 |
|
static |
int get_all_up_ifs | ( | interface * | ifs, |
int | ifs_n | ||
) |
const char* get_dev | ( | int * | dev_idx | ) |
int get_dev_ip | ( | inet_prefix * | ip, |
int | family, | ||
char * | dev | ||
) |
void if_close_all | ( | void | ) |
int if_init_all | ( | char * | ifs_name[16], |
int | ifs_n, | ||
interface * | new_ifs, | ||
int * | new_ifs_n | ||
) |
void ifs_del | ( | interface * | ifs, |
int * | ifs_n, | ||
int | if_pos | ||
) |
void ifs_del_all_name | ( | interface * | ifs, |
int * | ifs_n, | ||
char * | dev_name | ||
) |
void ifs_del_byname | ( | interface * | ifs, |
int * | ifs_n, | ||
char * | dev_name | ||
) |
int ifs_find_devname | ( | interface * | ifs, |
int | ifs_n, | ||
char * | dev_name | ||
) |
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 | ||
) |
int print_addrinfo | ( | const struct sockaddr_nl * | who, |
struct nlmsghdr * | n, | ||
void * | arg | ||
) |
int set_all_dev_ip | ( | inet_prefix | ip, |
interface * | ifs, | ||
int | ifs_n | ||
) |
int set_all_ifs | ( | interface * | ifs, |
int | ifs_n, | ||
int(*)(char *dev) | set_func | ||
) |
int set_dev_down | ( | char * | dev | ) |
int set_dev_ip | ( | inet_prefix | ip, |
char * | dev | ||
) |
int set_dev_up | ( | char * | dev | ) |
int set_flags | ( | char * | dev, |
u_int | flags, | ||
u_int | mask | ||
) |
|
static |
int errno |
int family |
struct { ... } filter |
int flagmask |
int flags |
char* flushb |
int flushe |
int flushed |
int flushp |
int ifindex |
char* label |
int oneline |
inet_prefix pfx |
struct rtnl_handle* rth |
int scope |
int scopemask |
int showqueue |
int up |