Home
last modified time | relevance | path

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

123

/freebsd-12.1/sys/net/
H A Dif_vlan_var.h132 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_trunkdev_p)((_ifp)) : NULL)
134 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_tag_p)((_ifp), (_vid)) : EINVAL)
136 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_pcp_p)((_ifp), (_pcp)) : EINVAL)
138 ((_ifp)->if_type == IFT_L2VLAN ? (*vlan_cookie_p)((_ifp)) : NULL)
140 ((_ifp)->if_type == IFT_L2VLAN ? \
H A Dif_vlan.c694 if (ifp->if_type != IFT_L2VLAN) in vlan_trunkdev()
718 if (ifp->if_type != IFT_L2VLAN) in vlan_tag()
730 if (ifp->if_type != IFT_L2VLAN) in vlan_pcp()
746 if (ifp->if_type != IFT_L2VLAN) in vlan_cookie()
761 if (ifp->if_type != IFT_L2VLAN) in vlan_setcookie()
1059 ifp->if_type = IFT_L2VLAN; in vlan_clone_create()
1209 switch (ifp->if_type) { in vlan_input()
1234 __func__, ifp->if_xname, ifp->if_type); in vlan_input()
1312 if (p->if_type != IFT_ETHER && in vlan_config()
H A Dif_bridge.c660 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
702 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
1043 switch (ifs->if_type) { in bridge_delete_member()
1114 switch (ifs->if_type) { in bridge_ioctl_add()
1214 switch (ifs->if_type) { in bridge_ioctl_add()
1644 switch (ifs->if_type) { in bridge_ioctl_addspan()
2053 if (dst_if->if_type == IFT_GIF) in bridge_output()
2419 if ((iface)->if_type == IFT_GIF) \ in bridge_input()
2425 if ((iface)->if_type == IFT_BRIDGE) { \ in bridge_input()
H A Dif_lagg.c661 if (ifp->if_type != IFT_ETHER && ifp->if_type != IFT_L2VLAN) in lagg_port_create()
734 lp->lp_iftype = ifp->if_type; in lagg_port_create()
735 ifp->if_type = IFT_IEEE8023ADLAG; in lagg_port_create()
835 ifp->if_type = lp->lp_iftype; in lagg_port_destroy()
904 if (ifp->if_type != IFT_IEEE8023ADLAG || in lagg_port_ioctl()
H A Dif_ethersubr.c469 if (pcp != IFNET_PCP_NONE && ifp->if_type != IFT_L2VLAN && in ether_output_frame()
568 if (ifp->if_type == IFT_IEEE8023ADLAG) { in ether_input_internal()
1337 if (V_soft_pad && p->if_type == IFT_ETHER) { in ether_8021q_frame()
H A Dif.c619 ifp->if_type = type; in if_alloc()
906 sdl->sdl_type = ifp->if_type; in if_attach_internal()
920 if (ifp->if_type == IFT_ETHER) { in if_attach_internal()
1789 ifd->ifi_type = ifp->if_type; in if_data_copy()
1978 link_init_sdl(ifp, (struct sockaddr *)&null_sdl, ifp->if_type); in ifa_maintain_loopback_route()
2434 if ((ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) && in do_link_state_change()
3942 switch (ifp->if_type) { in if_setlladdr()
4068 switch (ifp->if_type) { in if_gethwaddr()
H A Dif_tap.c760 if (ifp->if_type != tapp->type) in tapioctl()
783 tapp->type = ifp->if_type; in tapioctl()
/freebsd-12.1/sys/security/mac_ifoff/
H A Dmac_ifoff.c92 if (ifoff_lo_enabled && ifp->if_type == IFT_LOOP) in ifnet_check_outgoing()
95 if (ifoff_other_enabled && ifp->if_type != IFT_LOOP) in ifnet_check_outgoing()
107 if (ifoff_lo_enabled && ifp->if_type == IFT_LOOP) in ifnet_check_incoming()
110 if (ifoff_other_enabled && ifp->if_type != IFT_LOOP) in ifnet_check_incoming()
/freebsd-12.1/sys/compat/linux/
H A Dlinux.h38 #define IFP_IS_ETH(ifp) (ifp->if_type == IFT_ETHER)
39 #define IFP_IS_LOOP(ifp) (ifp->if_type == IFT_LOOP)
/freebsd-12.1/sys/dev/ocs_fc/
H A Dsli4.c209 const sli4_reg_t *r = &(regmap[reg][sli->if_type]); in sli_reg_read()
231 const sli4_reg_t *r = &(regmap[reg][sli->if_type]); in sli_reg_write()
1729 uint32_t if_type = sli4->if_type; in sli_cmd_common_create_cq() local
1737 switch (if_type) in sli_cmd_common_create_cq()
1780 switch (if_type) in sli_cmd_common_create_cq()
2449 switch (sli4->if_type) { in sli_cmd_common_get_port_name()
3302 switch (sli4->if_type) { in sli_fw_init()
3356 if (sli4->if_type == SLI4_IF_TYPE_BE3_SKH_PF || in sli_fw_term()
3357 sli4->if_type == SLI4_IF_TYPE_BE3_SKH_VF) { in sli_fw_term()
4005 sli4->if_type = sli_intf_if_type(sli_intf); in sli_setup()
[all …]
H A Docs_ioctl.c1084 uint32_t rev, if_type, family, i; in ocs_sysctl_init() local
1110 ocs_hw_get(&ocs->hw, OCS_HW_IF_TYPE, &if_type); in ocs_sysctl_init()
1116 rev, if_type, family); in ocs_sysctl_init()
H A Docs_ddump.c178 ocs_ddump_value(textbuf, "if_type", "%d", sli4->if_type); in ocs_ddump_sli()
421 switch(hw->sli.if_type) { in ocs_ddump_hw()
/freebsd-12.1/sys/netinet/
H A Dsctp_bsd_addr.c154 switch (ifn->if_type) { in sctp_is_desired_interface_type()
258 ifn->if_type, in sctp_init_ifns_for_vrf()
344 ifa->ifa_ifp->if_index, ifa->ifa_ifp->if_type, ifa->ifa_ifp->if_xname, in sctp_addr_change()
H A Dsctp_os_bsd.h205 …ro_rt->rt_ifa && (ro)->ro_rt->rt_ifa->ifa_ifp && (ro)->ro_rt->rt_ifa->ifa_ifp->if_type == IFT_LOOP)
362 …->m_flags & M_PKTHDR) && ((m->m_pkthdr.rcvif == NULL) || (m->m_pkthdr.rcvif->if_type == IFT_LOOP)))
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dif_vlan.h47 return (ifp->if_type == IFT_L2VLAN); in is_vlan_dev()
/freebsd-12.1/sys/dev/cxgbe/tom/
H A Dt4_connect.c246 if (rt_ifp->if_type == IFT_ETHER) in t4_connect()
248 else if (rt_ifp->if_type == IFT_L2VLAN) { in t4_connect()
254 } else if (rt_ifp->if_type == IFT_IEEE8023ADLAG) in t4_connect()
/freebsd-12.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()
872 if (ifp->if_type == IFT_ETHER in vnet_ng_ether_init()
873 || ifp->if_type == IFT_L2VLAN) in vnet_ng_ether_init()
H A Dng_gif.c562 if (ifp->if_type == IFT_GIF) in ng_gif_mod_event()
/freebsd-12.1/sys/ofed/include/rdma/
H A Dib_addr.h170 if (dev->if_type == IFT_ETHER && dev->if_pcp != IFNET_PCP_NONE) in rdma_vlan_dev_vlan_id()
357 if (dev->if_type == IFT_ETHER && dev->if_pcp != IFNET_PCP_NONE) in rdma_vlan_dev_real_dev()
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_roce_gid_mgmt.c190 if (idev->if_type != IFT_L2VLAN) in roce_gid_update_addr_callback()
320 switch (ndev->if_type) { in roce_gid_queue_scan_event()
H A Dib_addr.c151 } else if (dev->if_type == IFT_INFINIBAND) in rdma_copy_addr()
153 else if (dev->if_type == IFT_ETHER) in rdma_copy_addr()
/freebsd-12.1/sys/netinet6/
H A Din6_ifattach.c273 switch (ifp->if_type) { in in6_get_hw_ifid()
692 switch (ifp->if_type) { in in6_ifattach()
H A Dnd6.c191 gw.sdl_type = ifp->if_type; in nd6_lle_event()
275 if ((V_ip6_auto_linklocal && ifp->if_type != IFT_BRIDGE) || in nd6_ifattach()
287 (ifp->if_type != IFT_BRIDGE)) in nd6_ifattach()
2262 switch (ifp->if_type) { in nd6_resolve()
2520 switch (ifp->if_type) { in nd6_need_cache()
H A Din6.c1992 switch (ifp->if_type) { in in6_if2idlen()
2021 printf("in6_if2idlen: unknown link type (%d)\n", ifp->if_type); in in6_if2idlen()
2385 sdl->sdl_type = ifp->if_type; in in6_lltable_dump_entry()
2441 switch (ifp->if_type) { in in6_domifattach()
/freebsd-12.1/contrib/wpa/wpa_supplicant/
H A Ddriver_i.h935 enum wpa_driver_if_type if_type, in wpa_drv_get_pref_freq_list() argument
942 wpa_s, if_type, num, freq_list); in wpa_drv_get_pref_freq_list()
946 return wpa_s->driver->get_pref_freq_list(wpa_s->drv_priv, if_type, in wpa_drv_get_pref_freq_list()

123