Home
last modified time | relevance | path

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

12

/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()
734 int if_type; in lagg_port_create() local
761 switch (sc->sc_ifp->if_type) { in lagg_port_create()
[all …]
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()
1192 ifp->if_type = IFT_L2VLAN; in vlan_clone_create()
1509 } while (p->if_type == IFT_L2VLAN); in vlan_output()
1583 switch (ifp->if_type) { in vlan_input()
1607 __func__, ifp->if_xname, ifp->if_type); in vlan_input()
1683 if (p->if_type != IFT_ETHER && in vlan_config()
[all …]
H A Ddebugnet.h89 ((ifp)->if_debugnet_methods != NULL && (ifp)->if_type == IFT_ETHER)
H A Dif_private.h45 u_char if_alloctype; /* if_type at time of allocation */
70 uint8_t if_type; /* ethernet, tokenring, etc */ member
H A Dif_bridge.c785 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
793 ifp->if_type = IFT_BRIDGE; in bridge_clone_create()
1194 switch (ifs->if_type) { in bridge_delete_member()
1266 switch (ifs->if_type) { in bridge_ioctl_add()
1372 switch (ifs->if_type) { in bridge_ioctl_add()
1817 switch (ifs->if_type) { in bridge_ioctl_addspan()
2227 if (dst_if->if_type == IFT_GIF) in bridge_output()
2653 if ((iface)->if_type == IFT_GIF) \ in bridge_input()
H A Dif_ethersubr.c602 if (ifp->if_type == IFT_IEEE8023ADLAG) { in ether_input_internal()
1392 if (ifp->if_type == IFT_L2VLAN)
1424 if (V_soft_pad && p->if_type == IFT_ETHER) { in ether_8021q_frame()
H A Dif.c544 ifp->if_type = type; in if_alloc_domain()
891 sdl->sdl_type = ifp->if_type; in if_attach_internal()
904 if (ifp->if_type == IFT_ETHER) { in if_attach_internal()
1692 ifd->ifi_type = ifp->if_type; in if_data_copy()
2163 if ((ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) && in do_link_state_change()
3894 switch (ifp->if_type) { in if_setlladdr()
4014 switch (ifp->if_type) { in if_gethwaddr()
5059 return (ifp->if_type); in if_gettype()
/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.c416 if (ifp->if_type != IFT_ETHER && in ng_ether_ifnet_arrival_event()
417 ifp->if_type != IFT_L2VLAN && in ng_ether_ifnet_arrival_event()
418 ifp->if_type != IFT_BRIDGE) 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()
874 ifp->if_type == IFT_BRIDGE) in vnet_ng_ether_init()
H A Dng_gif.c561 if (ifp->if_type == IFT_GIF) in ng_gif_mod_event()
/freebsd/sys/netinet/
H A Dsctp_bsd_addr.c149 switch (ifn->if_type) { in sctp_is_desired_interface_type()
251 ifn->if_type, in sctp_init_ifns_for_vrf()
337 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.c592 if (lc->ifp->if_type == IFT_IEEE8023ADLAG || in _tcp_lro_flush_tcphpts()
593 lc->ifp->if_type == IFT_INFINIBANDLAG) { in _tcp_lro_flush_tcphpts()
H A Din.c852 .sdl_type = ifa->ifa_ifp->if_type, in in_handle_prefix_route()
1548 if (!(nh->nh_flags & NHF_HOST) || nh->nh_ifp->if_type != IFT_ETHER || in in_lltable_rtcheck()
1773 sdl->sdl_type = ifp->if_type; in in_lltable_dump_entry()
H A Dtoecore.c498 if (ifp->if_type == IFT_L2VLAN) { in toe_l2_resolve()
/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 Dnd6.c211 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()
2070 * XXX is it dependent to ifp->if_type? in nd6_cache_lladdr()
2267 switch (ifp->if_type) { in nd6_resolve()
2572 switch (ifp->if_type) { in nd6_need_cache()
H A Din6_ifattach.c270 switch (ifp->if_type) { in in6_get_hw_ifid()
682 switch (ifp->if_type) { in in6_ifattach()
H A Din6.c204 link_init_sdl(ifa->ifa_ifp, (struct sockaddr *)&gateway, ifa->ifa_ifp->if_type); in in6_newaddrmsg()
1187 .sdl_type = ifa->ifa_ifp->if_type, in in6_handle_dstaddr_rtrequest()
2143 switch (ifp->if_type) { in in6_if2idlen()
2172 printf("in6_if2idlen: unknown link type (%d)\n", ifp->if_type); in in6_if2idlen()
2519 sdl->sdl_type = ifp->if_type; in in6_lltable_dump_entry()
2595 switch (ifp->if_type) { in in6_domifattach()
H A Dnd6_nbr.c384 link_init_sdl(ifp, (struct sockaddr *)sdl, ifp->if_type); in nd6_proxy_fill_sdl()
1142 switch (ifp->if_type) { in nd6_ifptomac()
1529 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