if_gettype
return (if_gettype(ifp) == IFT_L2VLAN);
if (if_gettype(ifp) == IFT_L2VLAN) {
if (if_gettype(rt_ifp) == IFT_ETHER)
else if (if_gettype(rt_ifp) == IFT_L2VLAN) {
} else if (if_gettype(rt_ifp) == IFT_IEEE8023ADLAG)
if (if_gettype(ifp) == IFT_L2VLAN) {
if (if_gettype(ifpo) == IFT_L2VLAN)
if (if_gettype(vifp) == IFT_L2VLAN) {
if (if_gettype(ifpo) == IFT_L2VLAN)
if (if_gettype(ifneto) == IFT_L2VLAN) {
return if_gettype(ndev) == IFT_ETHER &&
if (if_gettype(ifp) == IFT_LOOP) {
int if_gettype(const if_t ifp);
(if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_trunkdev_p)((_ifp)) : NULL)
(if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_tag_p)((_ifp), (_vid)) : EINVAL)
(if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_pcp_p)((_ifp), (_pcp)) : EINVAL)
(if_gettype(_ifp) == IFT_L2VLAN ? (*vlan_cookie_p)((_ifp)) : NULL)
(if_gettype(_ifp) == IFT_L2VLAN ? \
switch (if_gettype(ifp)) {
ifinfo->ifi_type = if_gettype(ifp);
if (attrs->ifi_type != 0 && attrs->ifi_index != if_gettype(ifp))
int dev_type = if_gettype(dev);
if (if_gettype(ifp) != IFT_L2VLAN)
switch (if_gettype(ndev)) {
if (if_gettype(ifp) != IFT_INFINIBAND)
if (if_gettype(ifp) != IFT_INFINIBAND)
if (if_gettype(dev) == IFT_ETHER && if_getpcp(dev) != IFNET_PCP_NONE)
if (if_gettype(dev) != IFT_ETHER || if_getpcp(dev) == IFNET_PCP_NONE)
if (if_gettype(ifp) == IFT_LOOP || interfaces_equal != 0) {
if (ifoff_lo_enabled && if_gettype(ifp) == IFT_LOOP)
if (ifoff_other_enabled && if_gettype(ifp) != IFT_LOOP)
if (ifoff_lo_enabled && if_gettype(ifp) == IFT_LOOP)
if (ifoff_other_enabled && if_gettype(ifp) != IFT_LOOP)
if (if_gettype(ifp) == IFT_LOOP) {
if (if_gettype(ifp) == IFT_LOOP)