Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_var.h
Show First 20 Lines • Show All 623 Lines • ▼ Show 20 Lines | |||||
* Given the index, ifaddr_byindex() returns the one and only | * Given the index, ifaddr_byindex() returns the one and only | ||||
* link-level ifaddr for the interface. You are not supposed to use | * link-level ifaddr for the interface. You are not supposed to use | ||||
* it to traverse the list of addresses associated to the interface. | * it to traverse the list of addresses associated to the interface. | ||||
*/ | */ | ||||
struct ifaddr *ifaddr_byindex(u_short idx); | struct ifaddr *ifaddr_byindex(u_short idx); | ||||
VNET_DECLARE(struct ifnethead, ifnet); | VNET_DECLARE(struct ifnethead, ifnet); | ||||
VNET_DECLARE(struct ifgrouphead, ifg_head); | VNET_DECLARE(struct ifgrouphead, ifg_head); | ||||
VNET_DECLARE(int, if_index); | |||||
VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */ | VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */ | ||||
#define V_ifnet VNET(ifnet) | #define V_ifnet VNET(ifnet) | ||||
#define V_ifg_head VNET(ifg_head) | #define V_ifg_head VNET(ifg_head) | ||||
#define V_if_index VNET(if_index) | |||||
#define V_loif VNET(loif) | #define V_loif VNET(loif) | ||||
#ifdef MCAST_VERBOSE | #ifdef MCAST_VERBOSE | ||||
#define MCDPRINTF printf | #define MCDPRINTF printf | ||||
#else | #else | ||||
#define MCDPRINTF(...) | #define MCDPRINTF(...) | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |