Home
last modified time | relevance | path

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

/net/802/
Dfddi.c67 fddi->hdr.llc_snap.ethertype = htons(type); in fddi_header()
114 type=fddi->hdr.llc_snap.ethertype; in fddi_type_trans()
Dhippi.c76 hip->snap.ethertype = htons(type); in hippi_header()
110 return hip->snap.ethertype; in hippi_type_trans()
Dfc.c53 fcllc->ethertype = htons(type); in fc_header()
/net/sched/
Dcls_flower.c804 __be16 ethertype, in fl_set_key_vlan() argument
823 key_val->vlan_tpid = ethertype; in fl_set_key_vlan()
1084 __be16 ethertype; in fl_set_key() local
1103 ethertype = nla_get_be16(tb[TCA_FLOWER_KEY_ETH_TYPE]); in fl_set_key()
1105 if (eth_type_vlan(ethertype)) { in fl_set_key()
1106 fl_set_key_vlan(tb, ethertype, TCA_FLOWER_KEY_VLAN_ID, in fl_set_key()
1112 ethertype = nla_get_be16(tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE]); in fl_set_key()
1113 if (eth_type_vlan(ethertype)) { in fl_set_key()
1114 fl_set_key_vlan(tb, ethertype, in fl_set_key()
1125 key->basic.n_proto = ethertype; in fl_set_key()
[all …]
/net/mac80211/
Dtx.c2382 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_is_tdls_setup() local
2384 return ethertype == ETH_P_TDLS && in ieee80211_is_tdls_setup()
2484 u16 ethertype, hdrlen, meshhdrlen = 0; in ieee80211_build_hdr() local
2510 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_build_hdr()
2658 cpu_to_be16(ethertype) != sdata->control_port_protocol) { in ieee80211_build_hdr()
2737 (cpu_to_be16(ethertype) != sdata->control_port_protocol || in ieee80211_build_hdr()
2795 if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { in ieee80211_build_hdr()
2799 } else if (ethertype >= ETH_P_802_3_MIN) { in ieee80211_build_hdr()
3454 u16 ethertype = (skb->data[12] << 8) | skb->data[13]; in ieee80211_xmit_fast() local
3466 if (cpu_to_be16(ethertype) == sdata->control_port_protocol) in ieee80211_xmit_fast()
[all …]
Drx.c1503 __be16 ethertype; in ieee80211_rx_h_check() local
1510 skb_copy_bits(rx->skb, hdrlen + 6, &ethertype, 2); in ieee80211_rx_h_check()
1511 if (ethertype == rx->sdata->control_port_protocol) in ieee80211_rx_h_check()
2369 __be16 ethertype; in ieee80211_drop_unencrypted() local
2382 if (skb_copy_bits(rx->skb, ethertype_offset, &ethertype, 2) == 0 && in ieee80211_drop_unencrypted()
2383 ethertype == rx->sdata->control_port_protocol) in ieee80211_drop_unencrypted()
/net/wireless/
Dutil.c719 u16 ethertype; in ieee80211_amsdu_to_8023s() local
775 ethertype = (payload[6] << 8) | payload[7]; in ieee80211_amsdu_to_8023s()
777 ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || in ieee80211_amsdu_to_8023s()
779 eth.h_proto = htons(ethertype); in ieee80211_amsdu_to_8023s()
/net/openvswitch/
Dflow.c374 __be16 ethertype; in parse_ethertype() member
399 if (eth_proto_is_802_3(llc->ethertype)) in parse_ethertype()
400 return llc->ethertype; in parse_ethertype()
Dactions.c179 const __be16 ethertype) in pop_mpls() argument
183 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls()
/net/batman-adv/
Dhard-interface.c742 __be16 ethertype = htons(ETH_P_BATMAN); in batadv_hardif_enable_interface() local
795 hard_iface->batman_adv_ptype.type = ethertype; in batadv_hardif_enable_interface()
/net/core/
Dskbuff.c5636 __be16 ethertype) in skb_mod_eth_type() argument
5639 __be16 diff[] = { ~hdr->h_proto, ethertype }; in skb_mod_eth_type()
5644 hdr->h_proto = ethertype; in skb_mod_eth_type()