Lines Matching +full:unit +full:- +full:addresses

1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
52 int if_dunit; /* unit or IF_DUNIT_NONE */
55 char if_xname[IFNAMSIZ]; /* external name (name + unit) */
60 int if_drv_flags; /* driver-managed status flags */
65 void *if_linkmib; /* link-type-specific MIB data */
74 uint32_t if_mtu; /* maximum transmission unit */
85 /* Addresses of different protocol families assigned to this if. */
88 * if_addrhead is the list of all addresses associated to
92 * addresses which store the link-level address and the name
97 struct ifaddrhead if_addrhead; /* linked list of addresses per if */
98 struct ifmultihead if_multiaddrs; /* multicast addresses configured */
99 int if_amcount; /* number of all-multicast requests */
100 struct ifaddr *if_addr; /* pointer to link-level address */
101 void *if_hw_addr; /* hardware link-level address */
196 mtx_init(&(ifp)->if_afdata_lock, "if_afdata", NULL, MTX_DEF)
198 #define IF_AFDATA_WLOCK(ifp) mtx_lock(&(ifp)->if_afdata_lock)
199 #define IF_AFDATA_WUNLOCK(ifp) mtx_unlock(&(ifp)->if_afdata_lock)
202 #define IF_AFDATA_TRYLOCK(ifp) mtx_trylock(&(ifp)->if_afdata_lock)
203 #define IF_AFDATA_DESTROY(ifp) mtx_destroy(&(ifp)->if_afdata_lock)
205 #define IF_AFDATA_LOCK_ASSERT(ifp) MPASS(in_epoch(net_epoch_preempt) || mtx_owned(&(ifp)->if_afdata_lock))
206 #define IF_AFDATA_WLOCK_ASSERT(ifp) mtx_assert(&(ifp)->if_afdata_lock, MA_OWNED)
207 #define IF_AFDATA_UNLOCK_ASSERT(ifp) mtx_assert(&(ifp)->if_afdata_lock, MA_NOTOWNED)
210 LLADDR((struct sockaddr_dl *)((ifp)->if_addr->ifa_addr))