Home
last modified time | relevance | path

Searched refs:h_proto (Results 1 – 114 of 114) sorted by relevance

/linux-4.4.14/net/ethernet/
Deth.c86 eth->h_proto = htons(type); in eth_header()
88 eth->h_proto = htons(len); in eth_header()
134 if (!skb_flow_dissect_flow_keys_buf(&keys, data, eth->h_proto, in eth_get_headlen()
183 if (likely(eth_proto_is_802_3(eth->h_proto))) in eth_type_trans()
184 return eth->h_proto; in eth_type_trans()
235 eth->h_proto = type; in eth_header_cache()
428 type = eh->h_proto; in eth_gro_receive()
453 __be16 type = eh->h_proto; in eth_gro_complete()
/linux-4.4.14/net/bridge/netfilter/
Debt_log.c91 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet()
98 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet()
115 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet()
140 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || in ebt_log_packet()
141 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { in ebt_log_packet()
Debt_among.c72 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_dst()
80 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in get_ip_dst()
103 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_src()
111 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in get_ip_src()
Dnft_reject_bridge.c36 eth->h_proto = eth_hdr(oldskb)->h_proto; in nft_reject_br_push_etherhdr()
270 switch (eth_hdr(pkt->skb)->h_proto) { in nft_reject_bridge_eval()
Dnf_log_bridge.c27 switch (eth_hdr(skb)->h_proto) { in nf_log_bridge_packet()
Debt_snat.c29 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in ebt_snat_tg()
Dnf_tables_bridge.c96 switch (eth_hdr(skb)->h_proto) { in nft_do_chain_bridge()
Debtables.c139 ethproto = h->h_proto; in ebt_basic_match()
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c129 static int libipw_copy_snap(u8 * data, __be16 h_proto) in libipw_copy_snap() argument
139 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) in libipw_copy_snap()
147 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap()
229 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify()
295 ether_type = ((struct ethhdr *)skb->data)->h_proto; in libipw_xmit()
/linux-4.4.14/net/hsr/
Dhsr_forward.c99 skb->protocol = eth_hdr(skb)->h_proto; in create_stripped_skb()
133 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
134 hsr_ethhdr->ethhdr.h_proto = htons(ETH_P_PRP); in hsr_fill_tag()
318 if (ethhdr->h_proto == htons(ETH_P_8021Q)) { in hsr_fill_frame_info()
323 if (ethhdr->h_proto == htons(ETH_P_PRP)) { in hsr_fill_frame_info()
Dhsr_slave.c40 if (eth_hdr(skb)->h_proto != htons(ETH_P_PRP)) in hsr_handle_frame()
Dhsr_framereg.c183 if (ethhdr->h_proto == htons(ETH_P_PRP)) { in hsr_get_node()
/linux-4.4.14/drivers/staging/gdm724x/
Dgdm_lte.c122 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
171 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp()
247 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp()
255 if (ntohs(eth.h_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp()
337 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp()
363 if (ntohs(eth->h_proto) == ETH_P_8021Q) { in gdm_lte_tx_nic_type()
369 mac_proto = ntohs(eth->h_proto); in gdm_lte_tx_nic_type()
653 eth.h_proto = htons(ETH_P_ARP); in gdm_lte_netif_rx()
658 eth.h_proto = htons(ETH_P_IP); in gdm_lte_netif_rx()
661 eth.h_proto = htons(ETH_P_IPV6); in gdm_lte_netif_rx()
[all …]
/linux-4.4.14/drivers/net/usb/
Dlg-vl600.c61 __be16 h_proto; member
194 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup()
213 ethhdr->h_proto = htons(ETH_P_IPV6); in vl600_rx_fixup()
303 packet->h_proto = htons(ETH_P_IP); in vl600_tx_fixup()
Dcdc_mbim.c249 is_ip = is_ip_proto(eth_hdr(skb)->h_proto); in cdc_mbim_tx_fixup()
396 eth_hdr(skb)->h_proto = proto; in cdc_mbim_process_dgram()
Dsierra_net.c216 skb->protocol = eth_hdr(skb)->h_proto; in check_ethip_packet()
706 eth->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_bind()
Dqmi_wwan.c110 eth_hdr(skb)->h_proto = proto; in qmi_wwan_rx_fixup()
/linux-4.4.14/include/net/
Dfirewire.h22 __be16 h_proto; /* packet type ID field */ member
Dllc_pdu.h344 dsize = ntohs(eth_hdr(ev_skb)->h_proto) - 3; in llc_pdu_init_as_test_rsp()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c157 static inline int ieee80211_put_snap(u8 *data, u16 h_proto) in ieee80211_put_snap() argument
167 if (h_proto == 0x8137 || h_proto == 0x80f3) in ieee80211_put_snap()
175 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
280 if (eth->h_proto != htons(ETH_P_IP)) in ieee80211_classify()
640 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in ieee80211_xmit()
/linux-4.4.14/net/bluetooth/bnep/
Dcore.c349 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); in bnep_rx_frame()
358 if (ntohs(s->eh.h_proto) == ETH_P_8021Q) { in bnep_rx_frame()
361 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); in bnep_rx_frame()
383 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
396 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
Dnetdev.c137 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto()
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_tx.c150 static int rtllib_put_snap(u8 *data, u16 h_proto) in rtllib_put_snap() argument
160 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtllib_put_snap()
168 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtllib_put_snap()
256 if (eth->h_proto != htons(ETH_P_IP)) in rtllib_classify()
615 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in rtllib_xmit_inter()
/linux-4.4.14/net/netfilter/
Dxt_AUDIT.c145 ntohs(eth_hdr(skb)->h_proto)); in audit_tg()
148 switch (eth_hdr(skb)->h_proto) { in audit_tg()
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_eui64.c36 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6()
Dnf_log_ipv6.c305 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dsta_rx.c44 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp()
150 ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) { in mwifiex_process_rx_packet()
D11n_aggr.c72 snap.snap_type = ((struct ethhdr *)skb_src->data)->h_proto; in mwifiex_11n_form_amsdu_pkt()
81 tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN); in mwifiex_11n_form_amsdu_pkt()
Dmain.c707 if (ntohs(eth_hdr->h_proto) == ETH_P_PAE || in mwifiex_bypass_tx_queue()
711 (ntohs(eth_hdr->h_proto) == ETH_P_TDLS))) { in mwifiex_bypass_tx_queue()
714 ntohs(eth_hdr->h_proto), in mwifiex_bypass_tx_queue()
Dwmm.c822 if (ntohs(eth_hdr->h_proto) == ETH_P_TDLS) in mwifiex_wmm_add_buf_txqueue()
/linux-4.4.14/include/uapi/linux/
Dif_ether.h141 __be16 h_proto; /* packet type ID field */ member
/linux-4.4.14/fs/lockd/
Dhost.c143 host->h_proto = ni->protocol; in nlm_alloc_host()
251 if (host->h_proto != protocol) in nlmclnt_lookup_host()
363 if (host->h_proto != ni.protocol) in nlmsvc_lookup_host()
449 .protocol = host->h_proto, in nlm_bind_host()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c110 if (eth->h_proto == htons(ETH_P_IP)) { in mlx5e_lro_update_hdr()
156 __be16 ethertype = ((struct ethhdr *)skb->data)->h_proto; in is_first_ethertype_ip()
/linux-4.4.14/net/batman-adv/
Dmulticast.c384 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check()
408 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count()
502 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_ip_node_get()
Dsoft-interface.c214 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_tx()
416 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_rx()
Dmain.c345 switch (ethhdr->h_proto) { in batadv_skb_set_priority()
1207 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
Dsend.c83 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet()
Dgateway_client.c685 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
Ddistributed-arp-table.c854 if (ethhdr->h_proto != htons(ETH_P_ARP)) in batadv_arp_get_type()
Dbridge_loop_avoidance.c889 proto = ethhdr->h_proto; in batadv_bla_process_claim()
/linux-4.4.14/net/llc/
Dllc_station.c81 data_size = ntohs(eth_hdr(skb)->h_proto) - 3; in llc_station_ac_send_test_r()
Dllc_input.c130 __be16 pdulen = eth_hdr(skb)->h_proto; in llc_fixup_skb()
Dllc_s_ac.c155 data_size = ntohs(eth_hdr(skb)->h_proto) - 3; in llc_sap_action_send_test_r()
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_fcs.c358 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req()
595 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_handle_fip_frame()
638 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt()
643 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt()
658 if (eh->h_proto != htons(ETH_P_FCOE)) in fnic_import_rq_eth_pkt()
1004 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send()
1076 eth_hdr->h_proto = htons(ETH_P_FCOE); in fnic_send_frame()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dethtool.c855 mac_entry->h_proto = spec.ether_type; in efx_ethtool_get_class_rule()
856 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in efx_ethtool_get_class_rule()
1032 if (mac_mask->h_proto) { in efx_ethtool_set_class_rule()
1033 if (mac_mask->h_proto != ETHER_TYPE_FULL_MASK) in efx_ethtool_set_class_rule()
1036 spec.ether_type = mac_entry->h_proto; in efx_ethtool_set_class_rule()
Dselftest.c379 payload->header.h_proto = htons(ETH_P_IP); in efx_iterate_state()
Dtx.c856 EFX_BUG_ON_PARANOID(((struct ethhdr *)skb->data)->h_proto != in efx_tso_check_protocol()
/linux-4.4.14/drivers/staging/rtl8712/
Drtl871x_xmit.c203 pattrib->ether_type = ntohs(etherhdr.h_proto); in r8712_update_attrib()
555 static sint r8712_put_snap(u8 *data, u16 h_proto) in r8712_put_snap() argument
564 if (h_proto == 0x8137 || h_proto == 0x80f3) in r8712_put_snap()
571 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in r8712_put_snap()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
Den_ethtool.c1272 if (!all_zeros_or_all_ones(eth_mask->h_proto)) in mlx4_en_validate_flow()
1472 spec_l2->eth.ether_type = eth_spec->h_proto; in mlx4_en_ethtool_to_net_trans_rule()
1473 if (eth_spec->h_proto) in mlx4_en_ethtool_to_net_trans_rule()
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_net.c154 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in dvb_net_eth_type_trans()
155 return eth->h_proto; in dvb_net_eth_type_trans()
197 if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) { in ule_bridged_sndu()
200 if(framelen != ntohs(hdr->h_proto)) { in ule_bridged_sndu()
717 ethh->h_proto = htons(priv->ule_sndu_type); in dvb_net_ule()
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c146 if (eth->h_proto != htons(ETH_P_IP)) { in test_payload()
148 "type: 0x%x!\n", ntohs(eth->h_proto)); in test_payload()
166 eth->h_proto = htons(ETH_P_IP); in create_payload()
/linux-4.4.14/net/ipv4/
Dip_tunnel_core.c103 if (likely(eth_proto_is_802_3(eh->h_proto))) in iptunnel_pull_header()
104 skb->protocol = eh->h_proto; in iptunnel_pull_header()
/linux-4.4.14/drivers/firewire/
Dnet.c223 put_unaligned_be16(type, &h->h_proto); in fwnet_header_create()
250 h->h_proto = type; in fwnet_header_cache()
533 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { in fwnet_finish_incoming_packet()
534 protocol = eth->h_proto; in fwnet_finish_incoming_packet()
1249 proto = hdr_buf.h_proto; in fwnet_tx()
/linux-4.4.14/include/linux/lockd/
Dlockd.h50 unsigned short h_proto; /* transport proto */ member
/linux-4.4.14/drivers/net/hyperv/
Dnetvsc_drv.c392 if ((eth_hdr(skb)->h_proto != htons(ETH_P_IP)) && in get_net_transport_info()
393 (eth_hdr(skb)->h_proto != htons(ETH_P_IPV6))) { in get_net_transport_info()
399 if ((eth_hdr(skb)->h_proto == htons(ETH_P_IP))) { in get_net_transport_info()
/linux-4.4.14/net/core/
Dnetpoll.c440 skb->protocol = eth->h_proto = htons(ETH_P_IPV6); in netpoll_send_udp()
469 skb->protocol = eth->h_proto = htons(ETH_P_IP); in netpoll_send_udp()
Dflow_dissector.c400 proto = eth->h_proto; in __skb_flow_dissect()
Ddev.c2485 type = eth->h_proto; in skb_network_protocol()
4462 skb->protocol = eth->h_proto; in napi_frags_skb()
Dpktgen.c2669 eth->h_proto = protocol; in process_ipsec()
/linux-4.4.14/drivers/net/wireless/
Dray_cs.c954 __be16 proto = ((struct ethhdr *)data)->h_proto; in translate_frame()
2316 peth->h_proto = htons(len - RX_MAC_HEADER_LENGTH); in untranslate()
2324 peth->h_proto = type; in untranslate()
2332 peth->h_proto = in untranslate()
2340 peth->h_proto = type; in untranslate()
2347 peth->h_proto = type; in untranslate()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_log_ipv4.c292 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_xmit.c447 pattrib->ether_type = ntohs(etherhdr.h_proto); in update_attrib()
1134 s32 rtw_put_snap(u8 *data, u16 h_proto) in rtw_put_snap() argument
1145 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtw_put_snap()
1154 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap()
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_xmit.c427 pattrib->ether_type = ntohs(ehdr->h_proto); in update_attrib()
1040 static int rtw_put_snap(u8 *data, u16 h_proto) in rtw_put_snap() argument
1042 if (h_proto == ETH_P_IPX || h_proto == ETH_P_AARP) in rtw_put_snap()
1048 put_unaligned_be16(h_proto, data); in rtw_put_snap()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtw_xmit.h332 s32 rtw_put_snap(u8 *data, u16 h_proto);
/linux-4.4.14/drivers/net/wimax/i2400m/
Dnetdev.c447 eth_hdr->h_proto = protocol; in i2400m_rx_fake_eth_header()
/linux-4.4.14/drivers/staging/wilc1000/
Dwilc_wlan.c349 unsigned short h_proto; in tcp_process() local
362 h_proto = ntohs(*((unsigned short *)&eth_hdr_ptr[12])); in tcp_process()
363 if (h_proto == 0x0800) { /* IP */ in tcp_process()
Dlinux_wlan.c1395 if (eth_h->h_proto == 0x8e88) in mac_xmit()
/linux-4.4.14/drivers/net/plip/
Dplip.c563 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in plip_type_trans()
564 return eth->h_proto; in plip_type_trans()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_qos.c266 if (ethh->h_proto == cpu_to_be16(ETH_P_IP)) { in gdm_qos_send_hci_pkt()
/linux-4.4.14/drivers/net/
Dvxlan.c1474 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in vxlan_na_create()
1600 switch (ntohs(eth_hdr(skb)->h_proto)) { in route_shortcircuit()
2153 if (ntohs(eth->h_proto) == ETH_P_ARP) in vxlan_xmit()
2156 else if (ntohs(eth->h_proto) == ETH_P_IPV6 && in vxlan_xmit()
2181 (ntohs(eth->h_proto) == ETH_P_IP || in vxlan_xmit()
2182 ntohs(eth->h_proto) == ETH_P_IPV6)) { in vxlan_xmit()
Dmacvtap.c801 skb->protocol = eth_hdr(skb)->h_proto; in macvtap_get_user()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dcore.c260 if (eh->h_proto == htons(ETH_P_PAE)) in brcmf_netdev_start_xmit()
569 type = ntohs(eh->h_proto); in brcmf_txfinalize()
Dfwsignal.c1895 brcmf_dbg(DATA, "tx proto=0x%X\n", ntohs(eh->h_proto)); in brcmf_fws_process_skb()
/linux-4.4.14/drivers/net/wireless/orinoco/
Dmain.c389 if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */ in orinoco_process_xmit_skb()
406 hdr.eth.h_proto = htons(len); in orinoco_process_xmit_skb()
1052 hdr->h_proto = htons(length); in orinoco_rx()
/linux-4.4.14/net/openvswitch/
Dactions.c164 hdr->h_proto = mpls->mpls_ethertype; in push_mpls()
196 hdr->h_proto = ethertype; in pop_mpls()
Dflow.c486 else if (eth->h_proto == htons(ETH_P_8021Q)) in key_extract()
Ddatapath.c580 if (eth_proto_is_802_3(eth->h_proto)) in ovs_packet_cmd_execute()
581 packet->protocol = eth->h_proto; in ovs_packet_cmd_execute()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_ctlr.c407 sol->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_solicit()
563 kal->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_send_keep_alive()
645 cap->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_encaps()
2028 frame->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_vn_send()
Dfcoe.c1679 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit()
/linux-4.4.14/net/wireless/
Dutil.c524 ehdr->h_proto = len; in ieee80211_data_to_8023()
675 __be16 len = eth->h_proto; in ieee80211_amsdu_to_8023s()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c752 switch (eth_hdr->h_proto) { in fm10k_tx_encap_offload()
781 return eth_hdr->h_proto; in fm10k_tx_encap_offload()
/linux-4.4.14/net/bridge/
Dbr_multicast.c388 eth->h_proto = htons(ETH_P_IP); in br_ip4_multicast_alloc_query()
452 eth->h_proto = htons(ETH_P_IPV6); in br_ip6_multicast_alloc_query()
2101 eth.h_proto = htons(proto); in br_multicast_has_querier_anywhere()
Dbr_private.h586 switch (eth->h_proto) { in br_multicast_querier_exists()
/linux-4.4.14/drivers/s390/net/
Dqeth_core.h854 __be16 *p = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_ip_version()
Dqeth_core_main.c3804 tci = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_priority_queue()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c315 u16 eth_type = get_unaligned_be16(&eth->h_proto); in rtw_recv_select_queue23a()
/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1124 gfar_set_attribute(be16_to_cpu(value->h_proto), in gfar_set_ether()
1125 be16_to_cpu(mask->h_proto), in gfar_set_ether()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dtxrx.c133 ether_type = be16_to_cpu(datap->h_proto); in ath6kl_process_uapsdq()
1009 payload_8023_len = ntohs(hdr->h_proto); in aggr_slice_amsdu()
Dwmi.c177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
190 eth_hdr->h_proto = cpu_to_be16(new_len); in ath6kl_wmi_dix_2_dot3()
420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove()
468 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot3_2_dix()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c426 if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) in ixgbe_fcoe_ddp()
/linux-4.4.14/drivers/net/bonding/
Dbond_3ad.c791 lacpdu_header->hdr.h_proto = PKT_TYPE_LACPDU; in ad_lacpdu_send()
833 marker_header->hdr.h_proto = PKT_TYPE_LACPDU; in ad_marker_send()
Dbond_main.c3096 return ep->h_dest[5] ^ ep->h_source[5] ^ ep->h_proto; in bond_eth_hash()
/linux-4.4.14/net/mac80211/
Drx.c2059 if (ehdr->h_proto == rx->sdata->control_port_protocol) in __ieee80211_data_to_8023()
2080 if (ehdr->h_proto == rx->sdata->control_port_protocol && in ieee80211_frame_allowed()
2427 if (unlikely(((struct ethhdr *)rx->skb->data)->h_proto == in ieee80211_rx_h_data()
/linux-4.4.14/drivers/net/vmxnet3/
Dvmxnet3_drv.c1204 BUG_ON(hdr.eth->h_proto != htons(ETH_P_IP)); in vmxnet3_get_hdr_len()
1210 BUG_ON(hdr.eth->h_proto != htons(ETH_P_IPV6)); in vmxnet3_get_hdr_len()
3421 ehdr->h_proto = htons(ETH_P_ARP); in vmxnet3_suspend()
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c353 eh->h_proto = htons(ETH_P_FCOE); in bnx2fc_xmit()
434 if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) { in bnx2fc_rcv()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c237 if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) in i40e_fcoe_fc_frame_header()
/linux-4.4.14/drivers/isdn/i4l/
Disdn_net.c1388 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in isdn_net_type_trans()
1389 return eth->h_proto; in isdn_net_type_trans()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dwmi.c557 eth->h_proto = cpu_to_be16(ETH_P_PAE); in wmi_evt_eapol_rx()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c107 return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; in xgene_enet_hdr_len()
/linux-4.4.14/net/atm/
Dmpc.c584 if (eth->h_proto != htons(ETH_P_IP)) in mpc_send_packet()
/linux-4.4.14/drivers/net/ethernet/sgi/
Dioc3-eth.c530 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum()
/linux-4.4.14/net/packet/
Daf_packet.c1755 return likely(eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)); in packet_extra_vlan_len_allowed()
2338 skb->protocol = eth_hdr(skb)->h_proto; in tpacket_set_protocol()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c2167 netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto)); in xgbe_print_pkt()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dd3.c403 pkt->eth.h_proto = cpu_to_be16(ETH_P_IP), in iwl_mvm_build_tcp_packet()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1766 return e->h_proto == htons(ETH_P_8021Q) ? VLAN_ETH_HLEN : ETH_HLEN; in eth_hdr_len()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c1936 u16 ether_type = ntohs(hdr->h_proto); in bnx2x_select_queue()
3949 cpu_to_le16(ntohs(eth->h_proto)); in bnx2x_start_xmit()
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt877 if (eth->h_proto == htons(ETH_P_IP)) {
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_cm.c473 ethh->h_proto = htons(0x0800); in form_cm_frame()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c1026 if (eh->h_proto == htons(ETH_P_IPV6)) { in be_ipv6_exthdr_check()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dmac.c3256 eth->h_proto = type; in ath10k_tx_h_8023()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dnetdev.c5639 if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) in e1000_transfer_dhcp_info()
/linux-4.4.14/drivers/net/ethernet/nvidia/
Dforcedeth.c2769 protolen = ntohs(((struct ethhdr *)packet)->h_proto); in nv_getlen()
/linux-4.4.14/drivers/net/ethernet/sun/
Dniu.c6572 eth_proto = be16_to_cpu(ehdr->h_proto); in niu_compute_tx_flags()