Home
last modified time | relevance | path

Searched refs:if_type (Results 1 – 25 of 45) 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()
153 if (ifp->if_type == IFT_LOOP && in ifname_bsd_to_linux_ifp()
158 if (ifp->if_type != IFT_ETHER || use_real_ifnames) in ifname_bsd_to_linux_ifp()
193 if (cbs->is_eth && ifp->if_type == IFT_ETHER && in ifname_linux_to_ifp_cb()
196 if (cbs->is_lo && ifp->if_type == IFT_LOOP) in ifname_linux_to_ifp_cb()
313 if (ifp->if_type == IFT_LOOP) { in linux_ifhwaddr()
318 if (ifp->if_type != IFT_ETHER) in linux_ifhwaddr()
/freebsd/sys/net/
H A Dif_lagg.c513 int if_type; in lagg_clone_create() local
524 if_type = IFT_ETHER; in lagg_clone_create()
527 if_type = IFT_INFINIBAND; in lagg_clone_create()
533 if_type = IFT_ETHER; in lagg_clone_create()
537 ifp = sc->sc_ifp = if_alloc(if_type); in lagg_clone_create()
557 switch (if_type) { in lagg_clone_create()
591 switch (if_type) { in lagg_clone_create()
639 switch (ifp->if_type) { in lagg_clone_destroy()
737 int if_type; in lagg_port_create() local
764 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.c798 if (ifp->if_type != IFT_L2VLAN) in vlan_trunkdev()
820 if (ifp->if_type != IFT_L2VLAN) in vlan_tag()
832 if (ifp->if_type != IFT_L2VLAN) in vlan_pcp()
848 if (ifp->if_type != IFT_L2VLAN) in vlan_cookie()
863 if (ifp->if_type != IFT_L2VLAN) in vlan_setcookie()
1180 ifp->if_type = IFT_L2VLAN; in vlan_clone_create()
1508 } while (p->if_type == IFT_L2VLAN); in vlan_output()
1582 switch (ifp->if_type) { in vlan_input()
1606 __func__, ifp->if_xname, ifp->if_type); in vlan_input()
1682 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()
1297 switch (ifs->if_type) { in bridge_delete_member()
1363 if (ifs->if_type == IFT_L2VLAN) { in bridge_ioctl_add()
1374 is_bridge = (parent != NULL && parent->if_type == IFT_BRIDGE); in bridge_ioctl_add()
1398 switch (ifs->if_type) { in bridge_ioctl_add()
1453 if (ifs->if_type != IFT_GIF) { in bridge_ioctl_add()
1540 switch (ifs->if_type) { in bridge_ioctl_add()
2064 switch (ifs->if_type) { in bridge_ioctl_addspan()
2452 if (dst_ifp->if_type == IFT_GIF) in bridge_enqueue()
2577 if (dst_if->if_type == IFT_GIF) in bridge_output()
[all …]
H A Dif_ethersubr.c596 if (ifp->if_type == IFT_IEEE8023ADLAG) { in ether_input_internal()
1357 if (ifp->if_type == IFT_L2VLAN) in ether_do_pcp()
1389 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()
H A Docs_ddump.c174 ocs_ddump_value(textbuf, "if_type", "%d", sli4->if_type); in ocs_ddump_sli()
415 switch(hw->sli.if_type) { in ocs_ddump_hw()
/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()
252 ifn->if_type, in sctp_init_ifns_for_vrf()
338 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.c679 int if_type = link.ifi_type; in print_nlmsg_neigh() local
681 if ((if_type == IFT_ETHER || if_type == IFT_L2VLAN || if_type == IFT_BRIDGE) && in print_nlmsg_neigh()
692 .sdl_type = if_type, in print_nlmsg_neigh()
/freebsd/sys/net/route/
H A Droute_ifaddrs.c159 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()
1185 .sdl_type = ifa->ifa_ifp->if_type, in in6_handle_dstaddr_rtrequest()
1238 if (ifp->if_bridge != NULL && ifp->if_type != IFT_GIF && in in6_addifaddr()
2132 switch (ifp->if_type) { in in6_if2idlen()
2161 printf("in6_if2idlen: unknown link type (%d)\n", ifp->if_type); in in6_if2idlen()
2506 sdl->sdl_type = ifp->if_type; in in6_lltable_dump_entry()
2580 switch (ifp->if_type) { in in6_ifarrival()
H A Dnd6.c210 gw.sdl_type = ifp->if_type; in nd6_lle_event()
304 if ((V_ip6_auto_linklocal && ifp->if_type != IFT_BRIDGE && in nd6_ifattach()
305 ifp->if_type != IFT_WIREGUARD) || (ifp->if_flags & IFF_LOOPBACK)) in nd6_ifattach()
316 (ifp->if_type != IFT_BRIDGE)) { in nd6_ifattach()
2269 switch (ifp->if_type) { in nd6_resolve()
2575 switch (ifp->if_type) { in nd6_need_cache()
H A Din6_ifattach.c207 switch (ifp->if_type) { in in6_get_interface_hwaddr()
794 switch (ifp->if_type) { in in6_ifattach()
H A Dnd6_nbr.c383 link_init_sdl(ifp, (struct sockaddr *)sdl, ifp->if_type); in nd6_proxy_fill_sdl()
1131 switch (ifp->if_type) { in nd6_ifptomac()
1542 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