version 1.1.1.1, 2017/08/22 12:33:54
|
version 1.1.1.2, 2021/03/17 19:50:23
|
Line 34 struct iface {
|
Line 34 struct iface {
|
unsigned flags; |
unsigned flags; |
unsigned mtu; |
unsigned mtu; |
unsigned index; /* OS-dependent interface index */ |
unsigned index; /* OS-dependent interface index */ |
|
unsigned master_index; /* Interface index of master iface */ |
list addrs; /* Addresses assigned to this interface */ |
list addrs; /* Addresses assigned to this interface */ |
struct ifa *addr; /* Primary address */ |
struct ifa *addr; /* Primary address */ |
|
#ifdef IPV6 |
|
struct ifa *llv6; /* Selected IPv6 link-local address */ |
|
#endif |
|
struct iface *master; /* Master iface (e.g. for VRF) */ |
list neighbors; /* All neighbors on this interface */ |
list neighbors; /* All neighbors on this interface */ |
}; |
}; |
|
|
Line 100 struct iface *if_find_by_index(unsigned);
|
Line 105 struct iface *if_find_by_index(unsigned);
|
struct iface *if_find_by_name(char *); |
struct iface *if_find_by_name(char *); |
struct iface *if_get_by_name(char *); |
struct iface *if_get_by_name(char *); |
void ifa_recalc_all_primary_addresses(void); |
void ifa_recalc_all_primary_addresses(void); |
|
|
|
static inline struct ifa * |
|
ifa_llv6(struct iface *i UNUSED4) |
|
{ |
|
#ifdef IPV6 |
|
return i->llv6; |
|
#else |
|
return NULL; |
|
#endif |
|
} |
|
|
|
|
/* The Neighbor Cache */ |
/* The Neighbor Cache */ |