Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_mroute.h
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | struct vif { | ||||
struct in_addr v_lcl_addr; /* local interface address */ | struct in_addr v_lcl_addr; /* local interface address */ | ||||
struct in_addr v_rmt_addr; /* remote address (tunnels only) */ | struct in_addr v_rmt_addr; /* remote address (tunnels only) */ | ||||
struct ifnet *v_ifp; /* pointer to interface */ | struct ifnet *v_ifp; /* pointer to interface */ | ||||
u_long v_pkt_in; /* # pkts in on interface */ | u_long v_pkt_in; /* # pkts in on interface */ | ||||
u_long v_pkt_out; /* # pkts out on interface */ | u_long v_pkt_out; /* # pkts out on interface */ | ||||
u_long v_bytes_in; /* # bytes in on interface */ | u_long v_bytes_in; /* # bytes in on interface */ | ||||
u_long v_bytes_out; /* # bytes out on interface */ | u_long v_bytes_out; /* # bytes out on interface */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define MROUTE_VIF_SYSCTL_LEN __offsetof(struct vif, v_spin) | |||||
struct mtx v_spin; /* Spin mutex for pkt stats */ | struct mtx v_spin; /* Spin mutex for pkt stats */ | ||||
char v_spin_name[32]; | char v_spin_name[32]; | ||||
#endif | #endif | ||||
}; | }; | ||||
#if defined(_KERNEL) || defined (_NETSTAT) | #if defined(_KERNEL) || defined (_NETSTAT) | ||||
/* | /* | ||||
* The kernel's multicast forwarding cache entry structure | * The kernel's multicast forwarding cache entry structure | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |