Home
last modified time | relevance | path

Searched refs:if_type (Results 1 – 25 of 57) sorted by relevance

123

/freebsd-13.1/sys/net/
H A Dif_vlan_var.h146 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_trunkdev_p)((_ifp)) : NULL)
148 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_tag_p)((_ifp), (_vid)) : EINVAL)
150 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_pcp_p)((_ifp), (_pcp)) : EINVAL)
152 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_cookie_p)((_ifp)) : NULL)
154 ((_ifp)->if_type == IFT_L2VLAN ? \
H A Dif_lagg.c512 int if_type; in lagg_clone_create() local
523 if_type = IFT_ETHER; in lagg_clone_create()
526 if_type = IFT_INFINIBAND; in lagg_clone_create()
532 if_type = IFT_ETHER; in lagg_clone_create()
560 switch (if_type) { in lagg_clone_create()
598 switch (if_type) { in lagg_clone_create()
645 switch (ifp->if_type) { in lagg_clone_destroy()
729 int if_type; in lagg_port_create() local
759 if (ifp->if_type != IFT_ETHER && ifp->if_type != IFT_L2VLAN) in lagg_port_create()
844 ifp->if_type = if_type; in lagg_port_create()
[all …]
H A Dif_vlan.c731 if (ifp->if_type != IFT_L2VLAN) in vlan_trunkdev()
753 if (ifp->if_type != IFT_L2VLAN) in vlan_tag()
765 if (ifp->if_type != IFT_L2VLAN) in vlan_pcp()
781 if (ifp->if_type != IFT_L2VLAN) in vlan_cookie()
796 if (ifp->if_type != IFT_L2VLAN) in vlan_setcookie()
1127 ifp->if_type = IFT_L2VLAN; in vlan_clone_create()
1284 } while (p->if_type == IFT_L2VLAN); in vlan_output()
1358 switch (ifp->if_type) { in vlan_input()
1382 __func__, ifp->if_xname, ifp->if_type); in vlan_input()
1458 if (p->if_type != IFT_ETHER && in vlan_config()
[all …]
H A Ddebugnet.h91 ((ifp)->if_debugnet_methods != NULL && (ifp)->if_type == IFT_ETHER)
H A Dif_bridge.c744 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
752 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
1133 switch (ifs->if_type) { in bridge_delete_member()
1205 switch (ifs->if_type) { in bridge_ioctl_add()
1299 switch (ifs->if_type) { in bridge_ioctl_add()
1739 switch (ifs->if_type) { in bridge_ioctl_addspan()
2148 if (dst_if->if_type == IFT_GIF) in bridge_output()
2534 if ((iface)->if_type == IFT_GIF) \ in bridge_input()
H A Dif_ethersubr.c471 if (pcp != IFNET_PCP_NONE && ifp->if_type != IFT_L2VLAN && in ether_output_frame()
608 if (ifp->if_type == IFT_IEEE8023ADLAG) { in ether_input_internal()
1381 if (V_soft_pad && p->if_type == IFT_ETHER) { in ether_8021q_frame()
H A Dif.c619 ifp->if_type = type; in if_alloc_domain()
933 sdl->sdl_type = ifp->if_type; in if_attach_internal()
946 if (ifp->if_type == IFT_ETHER) { in if_attach_internal()
1800 ifd->ifi_type = ifp->if_type; in if_data_copy()
2311 if ((ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) && in do_link_state_change()
3829 switch (ifp->if_type) { in if_setlladdr()
3951 switch (ifp->if_type) { in if_gethwaddr()
/freebsd-13.1/sys/security/mac_ifoff/
H A Dmac_ifoff.c93 if (ifoff_lo_enabled && ifp->if_type == IFT_LOOP) in ifnet_check_outgoing()
96 if (ifoff_other_enabled && ifp->if_type != IFT_LOOP) in ifnet_check_outgoing()
108 if (ifoff_lo_enabled && ifp->if_type == IFT_LOOP) in ifnet_check_incoming()
111 if (ifoff_other_enabled && ifp->if_type != IFT_LOOP) in ifnet_check_incoming()
/freebsd-13.1/sys/dev/ocs_fc/
H A Dsli4.c1819 uint32_t if_type = sli4->if_type; in sli_cmd_common_create_cq() local
1827 switch (if_type) in sli_cmd_common_create_cq()
1870 switch (if_type) in sli_cmd_common_create_cq()
1919 if (if_type == SLI4_IF_TYPE_LANCER_G7) in sli_cmd_common_create_cq()
2543 switch (sli4->if_type) { in sli_cmd_common_get_port_name()
3390 switch (sli4->if_type) { in sli_fw_init()
3494 if (sli4->if_type == SLI4_IF_TYPE_LANCER_G7) in sli_queue_doorbell()
4113 sli4->if_type = sli_intf_if_type(sli_intf); in sli_setup()
4300 switch(sli4->if_type) { in sli_fw_reset()
4833 if (sli4->if_type == SLI4_IF_TYPE_LANCER_G7) in sli_cq_alloc_set()
[all …]
H A Docs_ioctl.c1063 uint32_t rev, if_type, family, i; in ocs_sysctl_init() local
1089 ocs_hw_get(&ocs->hw, OCS_HW_IF_TYPE, &if_type); in ocs_sysctl_init()
1095 rev, if_type, family); in ocs_sysctl_init()
/freebsd-13.1/sys/netgraph/
H A Dng_ether.c417 if (ifp->if_type != IFT_ETHER && in ng_ether_ifnet_arrival_event()
418 ifp->if_type != IFT_L2VLAN && in ng_ether_ifnet_arrival_event()
419 ifp->if_type != IFT_BRIDGE) in ng_ether_ifnet_arrival_event()
873 if (ifp->if_type == IFT_ETHER || in vnet_ng_ether_init()
874 ifp->if_type == IFT_L2VLAN || in vnet_ng_ether_init()
875 ifp->if_type == IFT_BRIDGE) in vnet_ng_ether_init()
H A Dng_gif.c562 if (ifp->if_type == IFT_GIF) in ng_gif_mod_event()
/freebsd-13.1/sys/compat/linuxkpi/common/include/linux/
H A Dif_vlan.h47 return (ifp->if_type == IFT_L2VLAN); in is_vlan_dev()
/freebsd-13.1/sys/netinet/
H A Dsctp_bsd_addr.c152 switch (ifn->if_type) { in sctp_is_desired_interface_type()
254 ifn->if_type, in sctp_init_ifns_for_vrf()
340 ifa->ifa_ifp->if_index, ifa->ifa_ifp->if_type, ifa->ifa_ifp->if_xname, in sctp_addr_change()
H A Dsctp_os_bsd.h206 …ro_nh->nh_ifa && (ro)->ro_nh->nh_ifa->ifa_ifp && (ro)->ro_nh->nh_ifa->ifa_ifp->if_type == IFT_LOOP)
357 …->m_flags & M_PKTHDR) && ((m->m_pkthdr.rcvif == NULL) || (m->m_pkthdr.rcvif->if_type == IFT_LOOP)))
/freebsd-13.1/sys/compat/linux/
H A Dlinux_util.h133 #define IFP_IS_ETH(ifp) ((ifp)->if_type == IFT_ETHER)
134 #define IFP_IS_LOOP(ifp) ((ifp)->if_type == IFT_LOOP)
/freebsd-13.1/sys/dev/cxgbe/tom/
H A Dt4_connect.c256 if (rt_ifp->if_type == IFT_ETHER) in t4_connect()
258 else if (rt_ifp->if_type == IFT_L2VLAN) { in t4_connect()
264 } else if (rt_ifp->if_type == IFT_IEEE8023ADLAG) in t4_connect()
/freebsd-13.1/sys/ofed/include/rdma/
H A Dib_addr.h183 if (dev->if_type == IFT_ETHER && dev->if_pcp != IFNET_PCP_NONE) in rdma_vlan_dev_vlan_id()
373 if (dev->if_type != IFT_ETHER || dev->if_pcp == IFNET_PCP_NONE) in rdma_vlan_dev_real_dev()
/freebsd-13.1/sys/ofed/drivers/infiniband/core/
H A Dib_roce_gid_mgmt.c193 if (idev->if_type != IFT_L2VLAN) in roce_gid_update_addr_callback()
323 switch (ndev->if_type) { in roce_gid_queue_scan_event()
H A Dib_addr.c154 } else if (dev->if_type == IFT_INFINIBAND) in rdma_copy_addr()
156 else if (dev->if_type == IFT_ETHER) in rdma_copy_addr()
/freebsd-13.1/sys/net/route/
H A Droute_ifaddrs.c161 link_init_sdl(ifp, (struct sockaddr *)&null_sdl, ifp->if_type); in ifa_maintain_loopback_route()
/freebsd-13.1/sys/netinet6/
H A Din6.c186 link_init_sdl(ifa->ifa_ifp, (struct sockaddr *)&gateway, ifa->ifa_ifp->if_type); in in6_newaddrmsg()
1270 .sdl_type = ifa->ifa_ifp->if_type, in in6_handle_dstaddr_rtrequest()
2043 switch (ifp->if_type) { in in6_if2idlen()
2072 printf("in6_if2idlen: unknown link type (%d)\n", ifp->if_type); in in6_if2idlen()
2415 sdl->sdl_type = ifp->if_type; in in6_lltable_dump_entry()
2482 switch (ifp->if_type) { in in6_domifattach()
H A Din6_ifattach.c272 switch (ifp->if_type) { in in6_get_hw_ifid()
684 switch (ifp->if_type) { in in6_ifattach()
H A Dnd6.c194 gw.sdl_type = ifp->if_type; in nd6_lle_event()
287 if ((V_ip6_auto_linklocal && ifp->if_type != IFT_BRIDGE) || in nd6_ifattach()
299 (ifp->if_type != IFT_BRIDGE)) { in nd6_ifattach()
2297 switch (ifp->if_type) { in nd6_resolve()
2618 switch (ifp->if_type) { in nd6_need_cache()
/freebsd-13.1/contrib/wpa/wpa_supplicant/
H A Ddriver_i.h965 enum wpa_driver_if_type if_type, in wpa_drv_get_pref_freq_list() argument
972 wpa_s, if_type, num, freq_list); in wpa_drv_get_pref_freq_list()
976 return wpa_s->driver->get_pref_freq_list(wpa_s->drv_priv, if_type, in wpa_drv_get_pref_freq_list()

123