Lines Matching refs:_ifp
138 #define VLAN_CAPABILITIES(_ifp) do { \ argument
139 if (if_getvlantrunk(_ifp) != NULL) \
140 (*vlan_trunk_cap_p)(_ifp); \
143 #define VLAN_TRUNKDEV(_ifp) \ argument
144 (if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_trunkdev_p)((_ifp)) : NULL)
145 #define VLAN_TAG(_ifp, _vid) \ argument
146 (if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_tag_p)((_ifp), (_vid)) : EINVAL)
147 #define VLAN_PCP(_ifp, _pcp) \ argument
148 (if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_pcp_p)((_ifp), (_pcp)) : EINVAL)
149 #define VLAN_COOKIE(_ifp) \ argument
150 (if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_cookie_p)((_ifp)) : NULL)
151 #define VLAN_SETCOOKIE(_ifp, _cookie) \ argument
152 (if_gettype(_ifp) == IFT_L2VLAN ? \
153 (*vlan_setcookie_p)((_ifp), (_cookie)) : EINVAL)
154 #define VLAN_DEVAT(_ifp, _vid) \ argument
155 (if_getvlantrunk(_ifp) != NULL ? (*vlan_devat_p)((_ifp), (_vid)) : NULL)