/linux-4.4.14/net/ethernet/ |
D | eth.c | 86 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/ |
D | ebt_log.c | 91 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()
|
D | ebt_among.c | 72 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()
|
D | nft_reject_bridge.c | 36 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()
|
D | nf_log_bridge.c | 27 switch (eth_hdr(skb)->h_proto) { in nf_log_bridge_packet()
|
D | ebt_snat.c | 29 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in ebt_snat_tg()
|
D | nf_tables_bridge.c | 96 switch (eth_hdr(skb)->h_proto) { in nft_do_chain_bridge()
|
D | ebtables.c | 139 ethproto = h->h_proto; in ebt_basic_match()
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
D | libipw_tx.c | 129 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/ |
D | hsr_forward.c | 99 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()
|
D | hsr_slave.c | 40 if (eth_hdr(skb)->h_proto != htons(ETH_P_PRP)) in hsr_handle_frame()
|
D | hsr_framereg.c | 183 if (ethhdr->h_proto == htons(ETH_P_PRP)) { in hsr_get_node()
|
/linux-4.4.14/drivers/staging/gdm724x/ |
D | gdm_lte.c | 122 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/ |
D | lg-vl600.c | 61 __be16 h_proto; member 194 if (be16_to_cpup(ðhdr->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()
|
D | cdc_mbim.c | 249 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()
|
D | sierra_net.c | 216 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()
|
D | qmi_wwan.c | 110 eth_hdr(skb)->h_proto = proto; in qmi_wwan_rx_fixup()
|
/linux-4.4.14/include/net/ |
D | firewire.h | 22 __be16 h_proto; /* packet type ID field */ member
|
D | llc_pdu.h | 344 dsize = ntohs(eth_hdr(ev_skb)->h_proto) - 3; in llc_pdu_init_as_test_rsp()
|
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_tx.c | 157 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/ |
D | core.c | 349 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()
|
D | netdev.c | 137 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto()
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 150 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/ |
D | xt_AUDIT.c | 145 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/ |
D | ip6t_eui64.c | 36 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6()
|
D | nf_log_ipv6.c | 305 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
D | sta_rx.c | 44 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()
|
D | 11n_aggr.c | 72 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()
|
D | main.c | 707 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()
|
D | wmm.c | 822 if (ntohs(eth_hdr->h_proto) == ETH_P_TDLS) in mwifiex_wmm_add_buf_txqueue()
|
/linux-4.4.14/include/uapi/linux/ |
D | if_ether.h | 141 __be16 h_proto; /* packet type ID field */ member
|
/linux-4.4.14/fs/lockd/ |
D | host.c | 143 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/ |
D | en_rx.c | 110 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/ |
D | multicast.c | 384 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()
|
D | soft-interface.c | 214 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_tx() 416 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_rx()
|
D | main.c | 345 switch (ethhdr->h_proto) { in batadv_skb_set_priority() 1207 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
|
D | send.c | 83 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet()
|
D | gateway_client.c | 685 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
|
D | distributed-arp-table.c | 854 if (ethhdr->h_proto != htons(ETH_P_ARP)) in batadv_arp_get_type()
|
D | bridge_loop_avoidance.c | 889 proto = ethhdr->h_proto; in batadv_bla_process_claim()
|
/linux-4.4.14/net/llc/ |
D | llc_station.c | 81 data_size = ntohs(eth_hdr(skb)->h_proto) - 3; in llc_station_ac_send_test_r()
|
D | llc_input.c | 130 __be16 pdulen = eth_hdr(skb)->h_proto; in llc_fixup_skb()
|
D | llc_s_ac.c | 155 data_size = ntohs(eth_hdr(skb)->h_proto) - 3; in llc_sap_action_send_test_r()
|
/linux-4.4.14/drivers/scsi/fnic/ |
D | fnic_fcs.c | 358 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/ |
D | ethtool.c | 855 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()
|
D | selftest.c | 379 payload->header.h_proto = htons(ETH_P_IP); in efx_iterate_state()
|
D | tx.c | 856 EFX_BUG_ON_PARANOID(((struct ethhdr *)skb->data)->h_proto != in efx_tso_check_protocol()
|
/linux-4.4.14/drivers/staging/rtl8712/ |
D | rtl871x_xmit.c | 203 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/ |
D | en_selftest.c | 70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
|
D | en_ethtool.c | 1272 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/ |
D | dvb_net.c | 154 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/ |
D | psock_tpacket.c | 146 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/ |
D | ip_tunnel_core.c | 103 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/ |
D | net.c | 223 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/ |
D | lockd.h | 50 unsigned short h_proto; /* transport proto */ member
|
/linux-4.4.14/drivers/net/hyperv/ |
D | netvsc_drv.c | 392 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/ |
D | netpoll.c | 440 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()
|
D | flow_dissector.c | 400 proto = eth->h_proto; in __skb_flow_dissect()
|
D | dev.c | 2485 type = eth->h_proto; in skb_network_protocol() 4462 skb->protocol = eth->h_proto; in napi_frags_skb()
|
D | pktgen.c | 2669 eth->h_proto = protocol; in process_ipsec()
|
/linux-4.4.14/drivers/net/wireless/ |
D | ray_cs.c | 954 __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/ |
D | nf_log_ipv4.c | 292 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
D | rtw_xmit.c | 447 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/ |
D | rtw_xmit.c | 427 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/ |
D | rtw_xmit.h | 332 s32 rtw_put_snap(u8 *data, u16 h_proto);
|
/linux-4.4.14/drivers/net/wimax/i2400m/ |
D | netdev.c | 447 eth_hdr->h_proto = protocol; in i2400m_rx_fake_eth_header()
|
/linux-4.4.14/drivers/staging/wilc1000/ |
D | wilc_wlan.c | 349 unsigned short h_proto; in tcp_process() local 362 h_proto = ntohs(*((unsigned short *)ð_hdr_ptr[12])); in tcp_process() 363 if (h_proto == 0x0800) { /* IP */ in tcp_process()
|
D | linux_wlan.c | 1395 if (eth_h->h_proto == 0x8e88) in mac_xmit()
|
/linux-4.4.14/drivers/net/plip/ |
D | plip.c | 563 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/ |
D | gdm_qos.c | 266 if (ethh->h_proto == cpu_to_be16(ETH_P_IP)) { in gdm_qos_send_hci_pkt()
|
/linux-4.4.14/drivers/net/ |
D | vxlan.c | 1474 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()
|
D | macvtap.c | 801 skb->protocol = eth_hdr(skb)->h_proto; in macvtap_get_user()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
D | core.c | 260 if (eh->h_proto == htons(ETH_P_PAE)) in brcmf_netdev_start_xmit() 569 type = ntohs(eh->h_proto); in brcmf_txfinalize()
|
D | fwsignal.c | 1895 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/ |
D | main.c | 389 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/ |
D | actions.c | 164 hdr->h_proto = mpls->mpls_ethertype; in push_mpls() 196 hdr->h_proto = ethertype; in pop_mpls()
|
D | flow.c | 486 else if (eth->h_proto == htons(ETH_P_8021Q)) in key_extract()
|
D | datapath.c | 580 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/ |
D | fcoe_ctlr.c | 407 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()
|
D | fcoe.c | 1679 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit()
|
/linux-4.4.14/net/wireless/ |
D | util.c | 524 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/ |
D | fm10k_main.c | 752 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/ |
D | br_multicast.c | 388 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()
|
D | br_private.h | 586 switch (eth->h_proto) { in br_multicast_querier_exists()
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_core.h | 854 __be16 *p = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_ip_version()
|
D | qeth_core_main.c | 3804 tci = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_priority_queue()
|
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/ |
D | os_intfs.c | 315 u16 eth_type = get_unaligned_be16(ð->h_proto); in rtw_recv_select_queue23a()
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1124 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/ |
D | txrx.c | 133 ether_type = be16_to_cpu(datap->h_proto); in ath6kl_process_uapsdq() 1009 payload_8023_len = ntohs(hdr->h_proto); in aggr_slice_amsdu()
|
D | wmi.c | 177 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/ |
D | ixgbe_fcoe.c | 426 if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) in ixgbe_fcoe_ddp()
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_3ad.c | 791 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()
|
D | bond_main.c | 3096 return ep->h_dest[5] ^ ep->h_source[5] ^ ep->h_proto; in bond_eth_hash()
|
/linux-4.4.14/net/mac80211/ |
D | rx.c | 2059 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/ |
D | vmxnet3_drv.c | 1204 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/ |
D | bnx2fc_fcoe.c | 353 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/ |
D | i40e_fcoe.c | 237 if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) in i40e_fcoe_fc_frame_header()
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_net.c | 1388 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/ |
D | wmi.c | 557 eth->h_proto = cpu_to_be16(ETH_P_PAE); in wmi_evt_eapol_rx()
|
/linux-4.4.14/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_main.c | 107 return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; in xgene_enet_hdr_len()
|
/linux-4.4.14/net/atm/ |
D | mpc.c | 584 if (eth->h_proto != htons(ETH_P_IP)) in mpc_send_packet()
|
/linux-4.4.14/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 530 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum()
|
/linux-4.4.14/net/packet/ |
D | af_packet.c | 1755 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/ |
D | xgbe-drv.c | 2167 netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto)); in xgbe_print_pkt()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 403 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/ |
D | sge.c | 1766 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/ |
D | bnx2x_cmn.c | 1936 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/ |
D | packet_mmap.txt | 877 if (eth->h_proto == htons(ETH_P_IP)) {
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
D | nes_cm.c | 473 ethh->h_proto = htons(0x0800); in form_cm_frame()
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 1026 if (eh->h_proto == htons(ETH_P_IPV6)) { in be_ipv6_exthdr_check()
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 3256 eth->h_proto = type; in ath10k_tx_h_8023()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5639 if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) in e1000_transfer_dhcp_info()
|
/linux-4.4.14/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 2769 protolen = ntohs(((struct ethhdr *)packet)->h_proto); in nv_getlen()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | niu.c | 6572 eth_proto = be16_to_cpu(ehdr->h_proto); in niu_compute_tx_flags()
|