Home
last modified time | relevance | path

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

12

/freebsd/sys/compat/linux/
H A Dlinux_if.c61 if (ifp->if_type == IFT_ETHER) in linux_ifnet_arrival()
68 if (ifp->if_type == IFT_ETHER) in linux_ifnet_departure()
154 if (ifp->if_type == IFT_LOOP && in ifname_bsd_to_linux_ifp()
159 if (ifp->if_type != IFT_ETHER || use_real_ifnames) in ifname_bsd_to_linux_ifp()
194 if (cbs->is_eth && ifp->if_type == IFT_ETHER && in ifname_linux_to_ifp_cb()
197 if (cbs->is_lo && ifp->if_type == IFT_LOOP) in ifname_linux_to_ifp_cb()
314 if (ifp->if_type == IFT_LOOP) { in linux_ifhwaddr()
319 if (ifp->if_type != IFT_ETHER) in linux_ifhwaddr()
/freebsd/sys/net/
H A Dif_lagg.c514 int if_type; in lagg_clone_create() local
525 if_type = IFT_ETHER; in lagg_clone_create()
528 if_type = IFT_INFINIBAND; in lagg_clone_create()
534 if_type = IFT_ETHER; in lagg_clone_create()
538 ifp = sc->sc_ifp = if_alloc(if_type); in lagg_clone_create()
558 switch (if_type) { in lagg_clone_create()
592 switch (if_type) { in lagg_clone_create()
640 switch (ifp->if_type) { in lagg_clone_destroy()
738 int if_type; in lagg_port_create() local
765 switch (sc->sc_ifp->if_type) { in lagg_port_create()
[all …]
H A Dbpf_ifnet.c77 switch (ifp->if_type) { in bpf_ifnet_write()
143 ifp, ifp->if_type)); in bpf_ifnet_write()
H A Dif_vlan.c785 if (ifp->if_type != IFT_L2VLAN) in vlan_trunkdev()
807 if (ifp->if_type != IFT_L2VLAN) in vlan_tag()
819 if (ifp->if_type != IFT_L2VLAN) in vlan_pcp()
835 if (ifp->if_type != IFT_L2VLAN) in vlan_cookie()
850 if (ifp->if_type != IFT_L2VLAN) in vlan_setcookie()
1167 ifp->if_type = IFT_L2VLAN; in vlan_clone_create()
1496 } while (p->if_type == IFT_L2VLAN); in vlan_output()
1570 switch (ifp->if_type) { in vlan_input()
1594 __func__, ifp->if_xname, ifp->if_type); in vlan_input()
1670 if (p->if_type != IFT_ETHER && in vlan_config()
[all …]
H A Dif_private.h71 uint8_t if_type; /* ethernet, tokenring, etc */ member
H A Ddebugnet.h89 ((ifp)->if_debugnet_methods != NULL && (ifp)->if_type == IFT_ETHER)
H A Dif_bridge.c887 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
1292 switch (ifs->if_type) { in bridge_delete_member()
1358 if (ifs->if_type == IFT_L2VLAN) { in bridge_ioctl_add()
1369 is_bridge = (parent != NULL && parent->if_type == IFT_BRIDGE); in bridge_ioctl_add()
1393 switch (ifs->if_type) { in bridge_ioctl_add()
1448 if (ifs->if_type != IFT_GIF) { in bridge_ioctl_add()
1535 switch (ifs->if_type) { in bridge_ioctl_add()
2056 switch (ifs->if_type) { in bridge_ioctl_addspan()
2442 if (dst_ifp->if_type == IFT_GIF) in bridge_enqueue()
2567 if (dst_if->if_type == IFT_GIF) in bridge_output()
[all …]
H A Dif_ethersubr.c557 if (ifp->if_type == IFT_IEEE8023ADLAG) { in ether_input_internal()
1318 if (ifp->if_type == IFT_L2VLAN) in ether_do_pcp()
1350 if (V_soft_pad && p->if_type == IFT_ETHER) { in ether_8021q_frame()
/freebsd/sys/dev/ocs_fc/
H A Dsli4.c260 const sli4_reg_t *r = &(regmap[reg][sli->if_type]); in sli_reg_read()
263 ocs_log_err(sli->os, "regname %d not defined for if_type %d\n", reg, sli->if_type); in sli_reg_read()
282 const sli4_reg_t *r = &(regmap[reg][sli->if_type]); in sli_reg_write()
285 ocs_log_err(sli->os, "regname %d not defined for if_type %d\n", reg, sli->if_type); in sli_reg_write()
1817 uint32_t if_type = sli4->if_type; in sli_cmd_common_create_cq() local
1825 switch (if_type) in sli_cmd_common_create_cq()
1853 ocs_log_test(sli4->os, "unsupported IF_TYPE %d\n", if_type); in sli_cmd_common_create_cq()
1868 switch (if_type) in sli_cmd_common_create_cq()
1917 if (if_type == SLI4_IF_TYPE_LANCER_G7) in sli_cmd_common_create_cq()
2092 if (sli4->if_type == SLI4_IF_TYPE_LANCER_G7) { in sli_cmd_common_create_eq()
[all …]
H A Docs_ioctl.c1077 uint32_t rev, if_type, family, i; in ocs_sysctl_init() local
1103 ocs_hw_get(&ocs->hw, OCS_HW_IF_TYPE, &if_type); in ocs_sysctl_init()
1109 rev, if_type, family); in ocs_sysctl_init()
/freebsd/sys/netgraph/
H A Dng_ether.c304 if ((ifp)->if_type != IFT_ETHER && in ng_ether_attach()
305 (ifp)->if_type != IFT_L2VLAN && in ng_ether_attach()
306 (ifp)->if_type != IFT_BRIDGE) in ng_ether_attach()
350 if ((ifp)->if_type != IFT_ETHER && \
351 (ifp)->if_type != IFT_L2VLAN && \
352 (ifp)->if_type != IFT_BRIDGE) \
H A Dng_gif.c561 if (ifp->if_type == IFT_GIF) in ng_gif_mod_event()
/freebsd/sys/netinet/
H A Dsctp_bsd_addr.c150 switch (ifn->if_type) { in sctp_is_desired_interface_type()
253 ifn->if_type, in sctp_init_ifns_for_vrf()
339 ifa->ifa_ifp->if_index, ifa->ifa_ifp->if_type, ifa->ifa_ifp->if_xname, in sctp_addr_change()
H A Dsctp_os_bsd.h202 …ro_nh->nh_ifa && (ro)->ro_nh->nh_ifa->ifa_ifp && (ro)->ro_nh->nh_ifa->ifa_ifp->if_type == IFT_LOOP)
346 …->m_flags & M_PKTHDR) && ((m->m_pkthdr.rcvif == NULL) || (m->m_pkthdr.rcvif->if_type == IFT_LOOP)))
H A Dtcp_lro_hpts.c594 if (lc->ifp->if_type == IFT_IEEE8023ADLAG || in _tcp_lro_flush_tcphpts()
595 lc->ifp->if_type == IFT_INFINIBANDLAG) { in _tcp_lro_flush_tcphpts()
H A Din.c524 if (ifp->if_bridge != NULL && ifp->if_type != IFT_GIF && in in_aifaddr_ioctl()
888 .sdl_type = ifa->ifa_ifp->if_type, in in_handle_prefix_route()
1616 if (!(nh->nh_flags & NHF_HOST) || nh->nh_ifp->if_type != IFT_ETHER || in in_lltable_rtcheck()
1841 sdl->sdl_type = ifp->if_type; in in_lltable_dump_entry()
/freebsd/usr.sbin/ndp/
H A Dndp.h18 bool valid_type(int if_type);
/freebsd/sbin/route/
H A Droute_netlink.c739 int if_type = link.ifi_type; in print_nlmsg_neigh() local
741 if ((if_type == IFT_ETHER || if_type == IFT_L2VLAN || if_type == IFT_BRIDGE) && in print_nlmsg_neigh()
752 .sdl_type = if_type, in print_nlmsg_neigh()
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dp2p.h151 enum brcmf_fil_p2p_if_types if_type);
/freebsd/sys/net/route/
H A Droute_ifaddrs.c157 link_init_sdl(ifp, (struct sockaddr *)&null_sdl, ifp->if_type); in ifa_maintain_loopback_route()
/freebsd/sys/netinet6/
H A Din6.c204 link_init_sdl(ifa->ifa_ifp, (struct sockaddr *)&gateway, ifa->ifa_ifp->if_type); in in6_newaddrmsg()
1182 .sdl_type = ifa->ifa_ifp->if_type, in in6_handle_dstaddr_rtrequest()
1235 if (ifp->if_bridge != NULL && ifp->if_type != IFT_GIF && in in6_addifaddr()
2154 switch (ifp->if_type) { in in6_if2idlen()
2183 printf("in6_if2idlen: unknown link type (%d)\n", ifp->if_type); in in6_if2idlen()
2528 sdl->sdl_type = ifp->if_type; in in6_lltable_dump_entry()
2602 switch (ifp->if_type) { in in6_ifarrival()
H A Dnd6.c206 gw.sdl_type = ifp->if_type; in nd6_lle_event()
324 if ((V_ip6_auto_linklocal && ifp->if_type != IFT_BRIDGE && in nd6_ifattach()
325 ifp->if_type != IFT_WIREGUARD) || (ifp->if_flags & IFF_LOOPBACK)) in nd6_ifattach()
336 (ifp->if_type != IFT_BRIDGE)) { in nd6_ifattach()
2281 switch (ifp->if_type) { in nd6_resolve()
2587 switch (ifp->if_type) { in nd6_need_cache()
H A Din6_ifattach.c207 switch (ifp->if_type) { in in6_get_interface_hwaddr()
790 switch (ifp->if_type) { in in6_ifattach()
H A Dnd6_nbr.c407 link_init_sdl(ifp, (struct sockaddr *)sdl, ifp->if_type); in nd6_proxy_fill_sdl()
1147 switch (ifp->if_type) { in nd6_ifptomac()
1564 switch (ifp->if_type) { in nd6_dad_duplicated()
/freebsd/contrib/wpa/wpa_supplicant/
H A Ddriver_i.h972 enum wpa_driver_if_type if_type, in wpa_drv_get_pref_freq_list() argument
979 wpa_s, if_type, num, freq_list); in wpa_drv_get_pref_freq_list()
983 return wpa_s->driver->get_pref_freq_list(wpa_s->drv_priv, if_type, in wpa_drv_get_pref_freq_list()

12