Home
last modified time | relevance | path

Searched refs:ethertype (Results 1 – 38 of 38) sorted by relevance

/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_80211_tx.c67 u16 fc, ethertype = 0; in hostap_data_start_xmit() local
121 ethertype = (skb->data[12] << 8) | skb->data[13]; in hostap_data_start_xmit()
129 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in hostap_data_start_xmit()
133 } else if (ethertype >= 0x600) { in hostap_data_start_xmit()
257 meta->ethertype = ethertype; in hostap_data_start_xmit()
302 meta->ethertype = (pos[0] << 8) | pos[1]; in hostap_mgmt_start_xmit()
443 meta->ethertype != ETH_P_PAE && in hostap_master_start_xmit()
447 dev->name, meta->ethertype); in hostap_master_start_xmit()
485 if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && in hostap_master_start_xmit()
504 meta->ethertype != ETH_P_PAE) { in hostap_master_start_xmit()
Dhostap_80211_rx.c612 u16 fc, ethertype; in hostap_is_eapol_frame() local
640 ethertype = (pos[6] << 8) | pos[7]; in hostap_is_eapol_frame()
641 if (ethertype == ETH_P_PAE) in hostap_is_eapol_frame()
729 u16 ethertype; in hostap_80211_rx() local
1009 ethertype = (payload[6] << 8) | payload[7]; in hostap_80211_rx()
1014 if (ethertype == ETH_P_PAE) { in hostap_80211_rx()
1030 dev->name, ethertype); in hostap_80211_rx()
1038 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in hostap_80211_rx()
Dhostap_wlan.h934 unsigned short ethertype; member
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_flow_table.c304 outer_headers.ethertype); in __mlx5e_add_eth_addr_rule()
308 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
323 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
343 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
358 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
376 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
391 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
409 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
424 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
442 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
[all …]
Den_rx.c156 __be16 ethertype = ((struct ethhdr *)skb->data)->h_proto; in is_first_ethertype_ip() local
158 return (ethertype == htons(ETH_P_IP) || ethertype == htons(ETH_P_IPV6)); in is_first_ethertype_ip()
/linux-4.4.14/net/wireless/
Dutil.c416 u16 hdrlen, ethertype; in ieee80211_data_to_8023() local
505 ethertype = (payload[6] << 8) | payload[7]; in ieee80211_data_to_8023()
508 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_data_to_8023()
535 u16 hdrlen, ethertype; in ieee80211_data_from_8023() local
550 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_data_from_8023()
595 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in ieee80211_data_from_8023()
599 } else if (ethertype >= ETH_P_802_3_MIN) { in ieee80211_data_from_8023()
654 u16 ethertype; in ieee80211_amsdu_to_8023s() local
718 ethertype = (payload[6] << 8) | payload[7]; in ieee80211_amsdu_to_8023s()
721 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_amsdu_to_8023s()
/linux-4.4.14/net/802/
Dhippi.c80 hip->snap.ethertype = htons(type); in hippi_header()
114 return hip->snap.ethertype; in hippi_type_trans()
Dfddi.c71 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
118 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
Dfc.c57 fcllc->ethertype = htons(type); in fc_header()
/linux-4.4.14/net/openvswitch/
Dactions.c175 const __be16 ethertype) in pop_mpls() argument
196 hdr->h_proto = ethertype; in pop_mpls()
198 skb->protocol = ethertype; in pop_mpls()
681 struct sk_buff *skb, u16 mru, __be16 ethertype) in ovs_fragment() argument
688 if (ethertype == htons(ETH_P_IP)) { in ovs_fragment()
703 } else if (ethertype == htons(ETH_P_IPV6)) { in ovs_fragment()
726 ovs_vport_name(vport), ntohs(ethertype), mru, in ovs_fragment()
748 __be16 ethertype = key->eth.type; in do_output() local
752 ethertype = skb->inner_protocol; in do_output()
754 ethertype = vlan_get_protocol(skb); in do_output()
[all …]
Dflow.c334 __be16 ethertype; in parse_ethertype() member
359 if (eth_proto_is_802_3(llc->ethertype)) in parse_ethertype()
360 return llc->ethertype; in parse_ethertype()
/linux-4.4.14/include/uapi/linux/
Dif_fc.h48 __be16 ethertype; /* ether type field */ member
Dif_fddi.h90 __be16 ethertype; /* packet type ID field */ member
Dif_hippi.h144 __be16 ethertype; /* packet type ID field */ member
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dlibipw_rx.c235 u16 fc, ethertype; in libipw_is_eapol_frame() local
263 ethertype = (pos[6] << 8) | pos[7]; in libipw_is_eapol_frame()
264 if (ethertype == ETH_P_PAE) in libipw_is_eapol_frame()
341 u16 ethertype; in libipw_rx() local
711 ethertype = (payload[6] << 8) | payload[7]; in libipw_rx()
717 if (ethertype == ETH_P_PAE) { in libipw_rx()
732 "ethertype=0x%04x\n", dev->name, ethertype); in libipw_rx()
741 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in libipw_rx()
/linux-4.4.14/net/batman-adv/
Dsoft-interface.c188 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_interface_tx() local
218 if (vhdr->h_vlan_encapsulated_proto != ethertype) { in batadv_interface_tx()
389 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_interface_rx() local
423 if (vhdr->h_vlan_encapsulated_proto != ethertype) in batadv_interface_rx()
Dhard-interface.c425 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_hardif_enable_interface() local
486 hard_iface->batman_adv_ptype.type = ethertype; in batadv_hardif_enable_interface()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c300 u16 fc, ethertype; in ieee80211_is_eapol_frame() local
329 ethertype = (pos[6] << 8) | pos[7]; in ieee80211_is_eapol_frame()
330 if (ethertype == ETH_P_PAE) in ieee80211_is_eapol_frame()
542 u16 ethertype; in ieee80211_indicate_packets() local
553 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_indicate_packets()
556 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_indicate_packets()
891 u16 ethertype; in ieee80211_rx() local
1305 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_rx()
1308 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_rx()
Dieee80211.h1205 u16 ethertype; member
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_rx.c254 u16 fc, ethertype; in rtllib_is_eapol_frame() local
282 ethertype = (pos[6] << 8) | pos[7]; in rtllib_is_eapol_frame()
283 if (ethertype == ETH_P_PAE) in rtllib_is_eapol_frame()
487 u16 ethertype; in rtllib_indicate_packets() local
496 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets()
500 ethertype != ETH_P_AARP && in rtllib_indicate_packets()
501 ethertype != ETH_P_IPX) || in rtllib_indicate_packets()
1246 u16 ethertype; in rtllib_rx_indicate_pkt_legacy() local
1261 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_rx_indicate_pkt_legacy()
1264 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in rtllib_rx_indicate_pkt_legacy()
Drtllib.h1062 u16 ethertype; member
/linux-4.4.14/net/mac80211/
Dtx.c1900 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_is_tdls_setup() local
1902 return ethertype == ETH_P_TDLS && in ieee80211_is_tdls_setup()
2008 u16 ethertype, hdrlen, meshhdrlen = 0; in ieee80211_build_hdr() local
2030 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_build_hdr()
2168 cpu_to_be16(ethertype) != sdata->control_port_protocol) { in ieee80211_build_hdr()
2247 (cpu_to_be16(ethertype) != sdata->control_port_protocol || in ieee80211_build_hdr()
2305 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in ieee80211_build_hdr()
2309 } else if (ethertype >= ETH_P_802_3_MIN) { in ieee80211_build_hdr()
2698 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_xmit_fast() local
2710 if (cpu_to_be16(ethertype) == sdata->control_port_protocol) in ieee80211_xmit_fast()
[all …]
Drx.c1162 __be16 ethertype; in ieee80211_rx_h_check() local
1169 skb_copy_bits(rx->skb, hdrlen + 6, &ethertype, 2); in ieee80211_rx_h_check()
1170 if (ethertype == rx->sdata->control_port_protocol) in ieee80211_rx_h_check()
/linux-4.4.14/drivers/crypto/caam/
Dpdb.h232 u16 ethertype; member
/linux-4.4.14/drivers/message/fusion/
Dmptlan.c1535 (fcllc->ethertype == htons(ETH_P_IP) || in mpt_lan_type_trans()
1536 fcllc->ethertype == htons(ETH_P_ARP))) { in mpt_lan_type_trans()
1538 return fcllc->ethertype; in mpt_lan_type_trans()
/linux-4.4.14/drivers/net/wireless/
Drayctl.h724 UCHAR ethertype[2]; member
Dray_cs.c2285 __be16 type = *(__be16 *) psnap->ethertype; in untranslate()
/linux-4.4.14/drivers/staging/rtl8712/
Dieee80211.h188 u16 ethertype; member
/linux-4.4.14/drivers/net/wireless/cw1200/
Dtxrx.c602 __be16 *ethertype = (__be16 *)&payload[6]; in cw1200_tx_h_bt() local
603 if (be16_to_cpu(*ethertype) == ETH_P_PAE) in cw1200_tx_h_bt()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Dieee80211.h349 u16 ethertype; member
/linux-4.4.14/Documentation/networking/
Dcdc_mbim.txt251 /* verify ethertype */
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c144 MLXSW_ITEM32(emad, eth_hdr, ethertype, 0x0C, 16, 16);
/linux-4.4.14/drivers/net/ppp/
Dppp_generic.c329 static inline int ethertype_to_npindex(int ethertype) in ethertype_to_npindex() argument
331 switch (ethertype) { in ethertype_to_npindex()
/linux-4.4.14/drivers/net/wireless/orinoco/
Dorinoco_usb.c90 __be16 ethertype; member
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvpp2.c1182 unsigned short ethertype) in mvpp2_prs_match_etype() argument
1184 mvpp2_prs_tcam_data_byte_set(pe, offset + 0, ethertype >> 8, 0xff); in mvpp2_prs_match_etype()
1185 mvpp2_prs_tcam_data_byte_set(pe, offset + 1, ethertype & 0xff, 0xff); in mvpp2_prs_match_etype()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h3090 __be16 ethertype; member
Dbnxt.c2825 req.ethertype = htons(ETH_P_IP); in bnxt_hwrm_cfa_ntuple_filter_alloc()
/linux-4.4.14/include/linux/mlx5/
Dmlx5_ifc.h298 u8 ethertype[0x10]; member