Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/net/batman-adv/
Dsoft-interface.c158 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_interface_tx() local
188 if (vhdr->h_vlan_encapsulated_proto != ethertype) { in batadv_interface_tx()
359 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_interface_rx() local
387 if (vhdr->h_vlan_encapsulated_proto != ethertype) in batadv_interface_rx()
Dhard-interface.c373 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_hardif_enable_interface() local
434 hard_iface->batman_adv_ptype.type = ethertype; in batadv_hardif_enable_interface()
/linux-4.1.27/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()
547 u16 ethertype; in ieee80211_indicate_packets() local
558 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_indicate_packets()
561 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_indicate_packets()
899 u16 ethertype; in ieee80211_rx() local
1317 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in ieee80211_rx()
1320 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_rx()
Dieee80211.h1343 u16 ethertype; member
/linux-4.1.27/drivers/staging/ozwpan/
DREADME6 on the network using an ethertype (0x892e) regestered to Ozmo Device Inc.
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_rx.c246 u16 fc, ethertype; in rtllib_is_eapol_frame() local
274 ethertype = (pos[6] << 8) | pos[7]; in rtllib_is_eapol_frame()
275 if (ethertype == ETH_P_PAE) in rtllib_is_eapol_frame()
473 u16 ethertype; in rtllib_indicate_packets() local
482 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_indicate_packets()
485 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in rtllib_indicate_packets()
1199 u16 ethertype; in rtllib_rx_indicate_pkt_legacy() local
1212 ethertype = (sub_skb->data[6] << 8) | sub_skb->data[7]; in rtllib_rx_indicate_pkt_legacy()
1215 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in rtllib_rx_indicate_pkt_legacy()
Drtllib.h1440 u16 ethertype; member
/linux-4.1.27/net/openvswitch/
Dflow.c327 __be16 ethertype; in parse_ethertype() member
352 if (ntohs(llc->ethertype) >= ETH_P_802_3_MIN) in parse_ethertype()
353 return llc->ethertype; in parse_ethertype()
Dactions.c159 const __be16 ethertype) in pop_mpls() argument
180 hdr->h_proto = ethertype; in pop_mpls()
182 skb->protocol = ethertype; in pop_mpls()
/linux-4.1.27/net/mac80211/
Dtx.c1887 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_is_tdls_setup() local
1889 return ethertype == ETH_P_TDLS && in ieee80211_is_tdls_setup()
1995 u16 ethertype, hdrlen, meshhdrlen = 0; in ieee80211_build_hdr() local
2017 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_build_hdr()
2155 cpu_to_be16(ethertype) != sdata->control_port_protocol) { in ieee80211_build_hdr()
2234 (cpu_to_be16(ethertype) != sdata->control_port_protocol || in ieee80211_build_hdr()
2292 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in ieee80211_build_hdr()
2296 } else if (ethertype >= ETH_P_802_3_MIN) { in ieee80211_build_hdr()
Drx.c1125 __be16 ethertype; in ieee80211_rx_h_check() local
1132 skb_copy_bits(rx->skb, hdrlen + 6, &ethertype, 2); in ieee80211_rx_h_check()
1133 if (ethertype == rx->sdata->control_port_protocol) in ieee80211_rx_h_check()
/linux-4.1.27/drivers/crypto/caam/
Dpdb.h232 u16 ethertype; member
/linux-4.1.27/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.1.27/drivers/net/wireless/
Drayctl.h724 UCHAR ethertype[2]; member
Dray_cs.c2285 __be16 type = *(__be16 *) psnap->ethertype; in untranslate()
/linux-4.1.27/drivers/staging/rtl8712/
Dieee80211.h187 u16 ethertype; member
/linux-4.1.27/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.1.27/drivers/staging/rtl8188eu/include/
Dieee80211.h349 u16 ethertype; member
/linux-4.1.27/Documentation/networking/
Dcdc_mbim.txt251 /* verify ethertype */
/linux-4.1.27/drivers/net/ppp/
Dppp_generic.c327 static inline int ethertype_to_npindex(int ethertype) in ethertype_to_npindex() argument
329 switch (ethertype) { in ethertype_to_npindex()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dorinoco_usb.c90 __be16 ethertype; member
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvpp2.c1163 unsigned short ethertype) in mvpp2_prs_match_etype() argument
1165 mvpp2_prs_tcam_data_byte_set(pe, offset + 0, ethertype >> 8, 0xff); in mvpp2_prs_match_etype()
1166 mvpp2_prs_tcam_data_byte_set(pe, offset + 1, ethertype & 0xff, 0xff); in mvpp2_prs_match_etype()