25 #define MAX_INTERFACES 16
30 char dev_name[IFNAMSIZ];
48 const char *
get_dev(
int *dev_idx);
int ip_addr_flush(int family, char *dev, int scope)
Definition: if.c:553
int ip_addr_flush_all_ifs(interface *ifs, int ifs_n, int family, int scope)
Definition: if.c:615
void ifs_del_all_name(interface *ifs, int *ifs_n, char *dev_name)
Definition: if.c:116
interface * ifs_find_idx(interface *ifs, int ifs_n, int dev_idx)
Definition: if.c:54
uint32_t ifr6_prefixlen
Definition: if.h:37
int set_all_dev_ip(inet_prefix ip, interface *ifs, int ifs_n)
Definition: if.c:379
int ifs_get_pos(interface *ifs, int ifs_n, interface *dev)
Definition: if.c:140
int ifr6_ifindex
Definition: if.h:38
void ifs_del(interface *ifs, int *ifs_n, int if_pos)
Definition: if.c:84
struct in6_addr ifr6_addr
Definition: if.h:36
int set_dev_down(char *dev)
Definition: if.c:232
int get_dev_ip(inet_prefix *ip, int family, char *dev)
Definition: if.c:394
int if_init_all(char *ifs_name[16], int ifs_n, interface *new_ifs, int *new_ifs_n)
Definition: if.c:267
int set_all_ifs(interface *ifs, int ifs_n, int(*set_func)(char *dev))
Definition: if.c:248
void if_close_all(void)
Definition: if.c:315
#define MAX_INTERFACES
Definition: if.h:25
int set_dev_up(char *dev)
Definition: if.c:223
int ifs_find_devname(interface *ifs, int ifs_n, char *dev_name)
Definition: if.c:65
int dev_idx
Definition: if.h:31
int set_dev_ip(inet_prefix ip, char *dev)
Definition: if.c:327
int scope
Definition: if.c:38
const char * get_dev(int *dev_idx)
Definition: if.c:155
int set_flags(char *dev, u_int flags, u_int mask)
Definition: if.c:195
int family
Definition: if.c:34
void ifs_del_byname(interface *ifs, int *ifs_n, char *dev_name)
Definition: if.c:100
int flags
Definition: if.c:39