h_proto 156 arch/powerpc/platforms/ps3/gelic_udbg.c h_eth->h_proto= ETH_P_8021Q; h_proto 164 arch/powerpc/platforms/ps3/gelic_udbg.c h_eth->h_proto= 0x0800; h_proto 224 drivers/firewire/net.c put_unaligned_be16(type, &h->h_proto); h_proto 251 drivers/firewire/net.c h->h_proto = type; h_proto 538 drivers/firewire/net.c if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { h_proto 539 drivers/firewire/net.c protocol = eth->h_proto; h_proto 1271 drivers/firewire/net.c proto = hdr_buf.h_proto; h_proto 2824 drivers/infiniband/hw/bnxt_re/ib_verbs.c eth_type = ntohs(eth_hdr->h_proto); h_proto 443 drivers/infiniband/hw/i40iw/i40iw_cm.c ethh->h_proto = htons(ETH_P_IP); h_proto 472 drivers/infiniband/hw/i40iw/i40iw_cm.c ethh->h_proto = htons(ETH_P_IPV6); h_proto 1467 drivers/infiniband/hw/i40iw/i40iw_utils.c if (ethh->h_proto == htons(0x8100)) { h_proto 145 drivers/media/dvb-core/dvb_net.c if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) h_proto 146 drivers/media/dvb-core/dvb_net.c return eth->h_proto; h_proto 188 drivers/media/dvb-core/dvb_net.c if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) { h_proto 191 drivers/media/dvb-core/dvb_net.c if(framelen != ntohs(hdr->h_proto)) { h_proto 737 drivers/media/dvb-core/dvb_net.c h->ethh->h_proto = htons(h->priv->ule_sndu_type); h_proto 857 drivers/net/bonding/bond_3ad.c lacpdu_header->hdr.h_proto = PKT_TYPE_LACPDU; h_proto 910 drivers/net/bonding/bond_3ad.c marker_header->hdr.h_proto = PKT_TYPE_LACPDU; h_proto 3248 drivers/net/bonding/bond_main.c return ep->h_dest[5] ^ ep->h_source[5] ^ ep->h_proto; h_proto 2989 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto)); h_proto 171 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; h_proto 661 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (ntohs(eth_hdr(skb)->h_proto) < 46) h_proto 137 drivers/net/ethernet/aquantia/atlantic/aq_filters.c fsp->m_u.ether_spec.h_proto == 0U) { h_proto 315 drivers/net/ethernet/aquantia/atlantic/aq_filters.c data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto); h_proto 1921 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c u16 ether_type = ntohs(hdr->h_proto); h_proto 3906 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c cpu_to_le16(ntohs(eth->h_proto)); h_proto 1764 drivers/net/ethernet/chelsio/cxgb/sge.c return e->h_proto == htons(ETH_P_8021Q) ? VLAN_ETH_HLEN : ETH_HLEN; h_proto 306 drivers/net/ethernet/cisco/enic/enic_main.c switch (eth->h_proto) { h_proto 667 drivers/net/ethernet/cisco/enic/enic_main.c switch (eth->h_proto) { h_proto 1097 drivers/net/ethernet/emulex/benet/be_main.c if (eh->h_proto == htons(ETH_P_IPV6)) { h_proto 279 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (eth_mask->h_proto) { h_proto 281 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = eth_value->h_proto; h_proto 282 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = eth_mask->h_proto; h_proto 367 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rfse.ethtype_h = ntohs(eth_h->h_proto); h_proto 368 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rfse.ethtype_m = ntohs(eth_m->h_proto); h_proto 1057 drivers/net/ethernet/freescale/gianfar_ethtool.c gfar_set_attribute(be16_to_cpu(value->h_proto), h_proto 1058 drivers/net/ethernet/freescale/gianfar_ethtool.c be16_to_cpu(mask->h_proto), h_proto 1549 drivers/net/ethernet/hisilicon/hns/hns_enet.c ethhdr->h_proto = htons(ETH_P_IP); h_proto 165 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ethh->h_proto = htons(ETH_P_ARP); h_proto 5265 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (!ether_spec->h_proto) h_proto 5479 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->h_u.ether_spec.h_proto); h_proto 5481 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->m_u.ether_spec.h_proto); h_proto 5927 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.ether_spec.h_proto = h_proto 5929 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.ether_spec.h_proto = h_proto 5732 drivers/net/ethernet/intel/e1000e/netdev.c if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) h_proto 721 drivers/net/ethernet/intel/fm10k/fm10k_main.c switch (eth_hdr->h_proto) { h_proto 750 drivers/net/ethernet/intel/fm10k/fm10k_main.c return eth_hdr->h_proto; h_proto 2472 drivers/net/ethernet/intel/igb/igb_ethtool.c fsp->h_u.ether_spec.h_proto = rule->filter.etype; h_proto 2473 drivers/net/ethernet/intel/igb/igb_ethtool.c fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; h_proto 2947 drivers/net/ethernet/intel/igb/igb_ethtool.c if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { h_proto 2948 drivers/net/ethernet/intel/igb/igb_ethtool.c input->filter.etype = fsp->h_u.ether_spec.h_proto; h_proto 899 drivers/net/ethernet/intel/igc/igc_ethtool.c fsp->h_u.ether_spec.h_proto = rule->filter.etype; h_proto 900 drivers/net/ethernet/intel/igc/igc_ethtool.c fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; h_proto 1382 drivers/net/ethernet/intel/igc/igc_ethtool.c if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { h_proto 1383 drivers/net/ethernet/intel/igc/igc_ethtool.c input->filter.etype = fsp->h_u.ether_spec.h_proto; h_proto 402 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) h_proto 1366 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (!all_zeros_or_all_ones(eth_mask->h_proto)) h_proto 1566 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l2->eth.ether_type = eth_spec->h_proto; h_proto 1567 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (eth_spec->h_proto) h_proto 70 drivers/net/ethernet/mellanox/mlx4/en_selftest.c ethh->h_proto = htons(ETH_P_ARP); h_proto 197 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c eth->h_proto = vlan_dev_vlan_proto(dev); h_proto 201 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c eth->h_proto = htons(proto); h_proto 103 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c eth->h_proto = cpu_to_be16(MLX5E_METADATA_ETHER_TYPE); h_proto 94 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c eth->h_proto = cpu_to_be16(MLX5E_METADATA_ETHER_TYPE); h_proto 301 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); h_proto 302 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto)); h_proto 508 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (eth_mask->h_proto) h_proto 738 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c proto = __vlan_get_protocol(skb, eth->h_proto, &network_depth); h_proto 794 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c *proto = ((struct ethhdr *)skb->data)->h_proto; h_proto 134 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c ethh->h_proto = htons(ETH_P_IP); h_proto 2295 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c OFFLOAD(ETHERTYPE, 2, eth.h_proto, 0, ethertype), h_proto 2819 drivers/net/ethernet/nvidia/forcedeth.c protolen = ntohs(((struct ethhdr *)packet)->h_proto); h_proto 1689 drivers/net/ethernet/qlogic/qed/qed_iwarp.c eth_type = ntohs(ethh->h_proto); h_proto 219 drivers/net/ethernet/qlogic/qed/qed_ll2.c skb->protocol = eth_hdr(skb)->h_proto; h_proto 535 drivers/net/ethernet/qlogic/qede/qede_filter.c eth->h_proto = skb->protocol; h_proto 1516 drivers/net/ethernet/qlogic/qede/qede_filter.c eth->h_proto = t->eth_proto; h_proto 1563 drivers/net/ethernet/qlogic/qede/qede_filter.c eth->h_proto = t->eth_proto; h_proto 909 drivers/net/ethernet/sfc/ethtool.c mac_entry->h_proto = spec.ether_type; h_proto 910 drivers/net/ethernet/sfc/ethtool.c mac_mask->h_proto = ETHER_TYPE_FULL_MASK; h_proto 1261 drivers/net/ethernet/sfc/ethtool.c if (mac_mask->h_proto) { h_proto 1262 drivers/net/ethernet/sfc/ethtool.c if (mac_mask->h_proto != ETHER_TYPE_FULL_MASK) h_proto 1265 drivers/net/ethernet/sfc/ethtool.c spec.ether_type = mac_entry->h_proto; h_proto 886 drivers/net/ethernet/sfc/falcon/ethtool.c mac_entry->h_proto = spec.ether_type; h_proto 887 drivers/net/ethernet/sfc/falcon/ethtool.c mac_mask->h_proto = ETHER_TYPE_FULL_MASK; h_proto 1196 drivers/net/ethernet/sfc/falcon/ethtool.c if (mac_mask->h_proto) { h_proto 1197 drivers/net/ethernet/sfc/falcon/ethtool.c if (mac_mask->h_proto != ETHER_TYPE_FULL_MASK) h_proto 1200 drivers/net/ethernet/sfc/falcon/ethtool.c spec.ether_type = mac_entry->h_proto; h_proto 384 drivers/net/ethernet/sfc/falcon/selftest.c payload->header.h_proto = htons(ETH_P_IP); h_proto 384 drivers/net/ethernet/sfc/selftest.c payload->header.h_proto = htons(ETH_P_IP); h_proto 147 drivers/net/ethernet/sfc/tx_tso.c EFX_WARN_ON_ONCE_PARANOID(((struct ethhdr *)skb->data)->h_proto != h_proto 494 drivers/net/ethernet/sgi/ioc3-eth.c if (eh->h_proto != htons(ETH_P_IP)) h_proto 117 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c ehdr->h_proto = htons(ETH_P_IP); h_proto 721 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c if (ehdr->h_proto != htons(ETH_P_PAUSE)) h_proto 6550 drivers/net/ethernet/sun/niu.c eth_proto = be16_to_cpu(ehdr->h_proto); h_proto 346 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto)); h_proto 914 drivers/net/geneve.c if (ntohs(eth->h_proto) == ETH_P_IPV6) { h_proto 916 drivers/net/geneve.c } else if (ntohs(eth->h_proto) == ETH_P_IP) { h_proto 454 drivers/net/macsec.c h->eth.h_proto = htons(ETH_P_MACSEC); h_proto 561 drivers/net/macsec.c skb->protocol = eth_hdr(skb)->h_proto; h_proto 1095 drivers/net/macsec.c if (hdr->eth.h_proto != htons(ETH_P_MACSEC)) { h_proto 381 drivers/net/netdevsim/dev.c eth->h_proto = htons(ETH_P_IP); h_proto 559 drivers/net/plip/plip.c if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) h_proto 560 drivers/net/plip/plip.c return eth->h_proto; h_proto 706 drivers/net/tap.c skb->protocol = eth_hdr(skb)->h_proto; h_proto 1172 drivers/net/tap.c skb->protocol = eth_hdr(skb)->h_proto; h_proto 248 drivers/net/usb/cdc_mbim.c is_ip = is_ip_proto(eth_hdr(skb)->h_proto); h_proto 395 drivers/net/usb/cdc_mbim.c eth_hdr(skb)->h_proto = proto; h_proto 49 drivers/net/usb/lg-vl600.c __be16 h_proto; h_proto 176 drivers/net/usb/lg-vl600.c if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP && h_proto 195 drivers/net/usb/lg-vl600.c ethhdr->h_proto = htons(ETH_P_IPV6); h_proto 285 drivers/net/usb/lg-vl600.c packet->h_proto = htons(ETH_P_IP); h_proto 589 drivers/net/usb/qmi_wwan.c eth_hdr(skb)->h_proto = proto; h_proto 228 drivers/net/usb/sierra_net.c skb->protocol = eth_hdr(skb)->h_proto; h_proto 842 drivers/net/usb/sierra_net.c if (eth_hdr(skb)->h_proto != cpu_to_be16(ETH_P_IPV6)) h_proto 843 drivers/net/usb/sierra_net.c eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP); h_proto 1249 drivers/net/vmxnet3/vmxnet3_drv.c BUG_ON(hdr.eth->h_proto != htons(ETH_P_IP) && h_proto 1256 drivers/net/vmxnet3/vmxnet3_drv.c BUG_ON(hdr.eth->h_proto != htons(ETH_P_IPV6) && h_proto 3676 drivers/net/vmxnet3/vmxnet3_drv.c ehdr->h_proto = htons(ETH_P_ARP); h_proto 346 drivers/net/vrf.c eth->h_proto = skb->protocol; h_proto 1940 drivers/net/vxlan.c eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); h_proto 2059 drivers/net/vxlan.c switch (ntohs(eth_hdr(skb)->h_proto)) { h_proto 2537 drivers/net/vxlan.c if (ntohs(eth->h_proto) == ETH_P_IPV6 || h_proto 2538 drivers/net/vxlan.c (ntohs(eth->h_proto) == ETH_P_IP && h_proto 2658 drivers/net/vxlan.c if (ntohs(eth->h_proto) == ETH_P_ARP) h_proto 2661 drivers/net/vxlan.c else if (ntohs(eth->h_proto) == ETH_P_IPV6 && h_proto 2679 drivers/net/vxlan.c (ntohs(eth->h_proto) == ETH_P_IP || h_proto 2680 drivers/net/vxlan.c ntohs(eth->h_proto) == ETH_P_IPV6)) { h_proto 413 drivers/net/wimax/i2400m/netdev.c eth_hdr->h_proto = protocol; h_proto 3550 drivers/net/wireless/ath/ath10k/mac.c eth->h_proto = type; h_proto 120 drivers/net/wireless/ath/ath10k/wow.c &old_hdr_pattern->h_proto, h_proto 121 drivers/net/wireless/ath/ath10k/wow.c sizeof(old_hdr_pattern->h_proto)); h_proto 123 drivers/net/wireless/ath/ath10k/wow.c &old_hdr_mask->h_proto, h_proto 124 drivers/net/wireless/ath/ath10k/wow.c sizeof(old_hdr_mask->h_proto)); h_proto 130 drivers/net/wireless/ath/ath10k/wow.c else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) h_proto 140 drivers/net/wireless/ath/ath10k/wow.c else if (total_len > offsetof(struct ethhdr, h_proto)) h_proto 133 drivers/net/wireless/ath/ath6kl/txrx.c ether_type = be16_to_cpu(datap->h_proto); h_proto 1004 drivers/net/wireless/ath/ath6kl/txrx.c payload_8023_len = be16_to_cpu(hdr->h_proto); h_proto 177 drivers/net/wireless/ath/ath6kl/wmi.c type = eth_hdr->h_proto; h_proto 190 drivers/net/wireless/ath/ath6kl/wmi.c eth_hdr->h_proto = cpu_to_be16(new_len); h_proto 420 drivers/net/wireless/ath/ath6kl/wmi.c eth_hdr.h_proto = llc_hdr->eth_type; h_proto 468 drivers/net/wireless/ath/ath6kl/wmi.c eth_hdr.h_proto = llc_hdr->eth_type; h_proto 1209 drivers/net/wireless/ath/wil6210/wmi.c eth->h_proto = cpu_to_be16(ETH_P_PAE); h_proto 348 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (eh->h_proto == htons(ETH_P_PAE)) h_proto 540 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c type = ntohs(eh->h_proto); h_proto 2127 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c brcmf_dbg(DATA, "tx proto=0x%X\n", ntohs(eh->h_proto)); h_proto 115 drivers/net/wireless/intel/ipw2x00/libipw_tx.c static int libipw_copy_snap(u8 * data, __be16 h_proto) h_proto 125 drivers/net/wireless/intel/ipw2x00/libipw_tx.c if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) h_proto 133 drivers/net/wireless/intel/ipw2x00/libipw_tx.c memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); h_proto 215 drivers/net/wireless/intel/ipw2x00/libipw_tx.c if (eth->h_proto != htons(ETH_P_IP)) h_proto 281 drivers/net/wireless/intel/ipw2x00/libipw_tx.c ether_type = ((struct ethhdr *)skb->data)->h_proto; h_proto 378 drivers/net/wireless/intersil/orinoco/main.c if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */ h_proto 395 drivers/net/wireless/intersil/orinoco/main.c hdr.eth.h_proto = htons(len); h_proto 1036 drivers/net/wireless/intersil/orinoco/main.c hdr->h_proto = htons(length); h_proto 72 drivers/net/wireless/marvell/mwifiex/11n_aggr.c snap.snap_type = ((struct ethhdr *)skb_src->data)->h_proto; h_proto 81 drivers/net/wireless/marvell/mwifiex/11n_aggr.c tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN); h_proto 56 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c ntohs(rx_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) { h_proto 772 drivers/net/wireless/marvell/mwifiex/main.c if (ntohs(eth_hdr->h_proto) == ETH_P_PAE || h_proto 776 drivers/net/wireless/marvell/mwifiex/main.c (ntohs(eth_hdr->h_proto) == ETH_P_TDLS))) { h_proto 779 drivers/net/wireless/marvell/mwifiex/main.c ntohs(eth_hdr->h_proto), h_proto 44 drivers/net/wireless/marvell/mwifiex/sta_rx.c switch (ntohs(eth->h_proto)) { h_proto 150 drivers/net/wireless/marvell/mwifiex/sta_rx.c ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) { h_proto 825 drivers/net/wireless/marvell/mwifiex/wmm.c if (ntohs(eth_hdr->h_proto) == ETH_P_TDLS) h_proto 940 drivers/net/wireless/ray_cs.c __be16 proto = ((struct ethhdr *)data)->h_proto; h_proto 2301 drivers/net/wireless/ray_cs.c peth->h_proto = htons(len - RX_MAC_HEADER_LENGTH); h_proto 2309 drivers/net/wireless/ray_cs.c peth->h_proto = type; h_proto 2317 drivers/net/wireless/ray_cs.c peth->h_proto = h_proto 2325 drivers/net/wireless/ray_cs.c peth->h_proto = type; h_proto 2332 drivers/net/wireless/ray_cs.c peth->h_proto = type; h_proto 372 drivers/scsi/bnx2fc/bnx2fc_fcoe.c eh->h_proto = htons(ETH_P_FCOE); h_proto 451 drivers/scsi/bnx2fc/bnx2fc_fcoe.c if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) { h_proto 575 drivers/scsi/fcoe/fcoe.c if (ntohs(frame->eth.h_proto) == ETH_P_FIP && h_proto 1564 drivers/scsi/fcoe/fcoe.c eh->h_proto = htons(ETH_P_FCOE); h_proto 398 drivers/scsi/fcoe/fcoe_ctlr.c sol->eth.h_proto = htons(ETH_P_FIP); h_proto 557 drivers/scsi/fcoe/fcoe_ctlr.c kal->eth.h_proto = htons(ETH_P_FIP); h_proto 639 drivers/scsi/fcoe/fcoe_ctlr.c cap->eth.h_proto = htons(ETH_P_FIP); h_proto 2060 drivers/scsi/fcoe/fcoe_ctlr.c frame->eth.h_proto = htons(ETH_P_FIP); h_proto 2928 drivers/scsi/fcoe/fcoe_ctlr.c frame->eth.h_proto = htons(ETH_P_FIP); h_proto 401 drivers/scsi/fnic/fnic_fcs.c vlan->eth.h_proto = htons(ETH_P_FIP); h_proto 636 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto == htons(ETH_P_FIP)) { h_proto 679 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto == htons(ETH_P_8021Q)) { h_proto 684 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto == htons(ETH_P_FIP)) { h_proto 699 drivers/scsi/fnic/fnic_fcs.c if (eh->h_proto != htons(ETH_P_FCOE)) h_proto 1042 drivers/scsi/fnic/fnic_fcs.c vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; h_proto 1113 drivers/scsi/fnic/fnic_fcs.c eth_hdr->h_proto = htons(ETH_P_FCOE); h_proto 38 drivers/scsi/qedf/qedf_fip.c vlan->eth.h_proto = htons(ETH_P_FIP); h_proto 1133 drivers/scsi/qedf/qedf_main.c eh->h_proto = htons(ETH_P_FCOE); h_proto 2495 drivers/scsi/qedf/qedf_main.c if (eh->h_proto == htons(ETH_P_8021Q)) { h_proto 2506 drivers/scsi/qedf/qedf_main.c if (eh->h_proto == htons(ETH_P_FIP)) { h_proto 2509 drivers/scsi/qedf/qedf_main.c } else if (eh->h_proto == htons(ETH_P_FCOE)) { h_proto 679 drivers/scsi/qedi/qedi_main.c if (eh->h_proto == htons(ETH_P_8021Q)) { h_proto 686 drivers/scsi/qedi/qedi_main.c if (eh->h_proto != htons(ETH_P_ARP) && h_proto 687 drivers/scsi/qedi/qedi_main.c eh->h_proto != htons(ETH_P_IP) && h_proto 688 drivers/scsi/qedi/qedi_main.c eh->h_proto != htons(ETH_P_IPV6)) { h_proto 691 drivers/scsi/qedi/qedi_main.c eh->h_proto, skb->len); h_proto 698 drivers/scsi/qedi/qedi_main.c eh->h_proto, skb->len); h_proto 117 drivers/staging/gdm724x/gdm_lte.c if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { h_proto 163 drivers/staging/gdm724x/gdm_lte.c skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; h_proto 238 drivers/staging/gdm724x/gdm_lte.c if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { h_proto 246 drivers/staging/gdm724x/gdm_lte.c if (ntohs(eth.h_proto) != ETH_P_IPV6) h_proto 325 drivers/staging/gdm724x/gdm_lte.c skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; h_proto 351 drivers/staging/gdm724x/gdm_lte.c if (ntohs(eth->h_proto) == ETH_P_8021Q) { h_proto 357 drivers/staging/gdm724x/gdm_lte.c mac_proto = ntohs(eth->h_proto); h_proto 640 drivers/staging/gdm724x/gdm_lte.c eth.h_proto = htons(ETH_P_ARP); h_proto 645 drivers/staging/gdm724x/gdm_lte.c eth.h_proto = htons(ETH_P_IP); h_proto 648 drivers/staging/gdm724x/gdm_lte.c eth.h_proto = htons(ETH_P_IPV6); h_proto 665 drivers/staging/gdm724x/gdm_lte.c skb->protocol = ((struct ethhdr *)mac_header_data)->h_proto; h_proto 16 drivers/staging/ks7010/eap_packet.h __be16 h_proto; /* packet type ID field */ h_proto 350 drivers/staging/ks7010/ks_hostif.c eth_proto = ntohs(eth_hdr->h_proto); h_proto 481 drivers/staging/ks7010/ks_hostif.c skb_put_data(skb, ð_hdr->h_proto, size); h_proto 1157 drivers/staging/ks7010/ks_hostif.c eth_proto = ntohs(eth_hdr->h_proto); h_proto 407 drivers/staging/rtl8188eu/core/rtw_xmit.c pattrib->ether_type = ntohs(etherhdr.h_proto); h_proto 1063 drivers/staging/rtl8188eu/core/rtw_xmit.c s32 rtw_put_snap(u8 *data, u16 h_proto) h_proto 1073 drivers/staging/rtl8188eu/core/rtw_xmit.c if (h_proto == 0x8137 || h_proto == 0x80f3) h_proto 1082 drivers/staging/rtl8188eu/core/rtw_xmit.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); h_proto 313 drivers/staging/rtl8188eu/include/rtw_xmit.h s32 rtw_put_snap(u8 *data, u16 h_proto); h_proto 134 drivers/staging/rtl8192e/rtllib_tx.c static int rtllib_put_snap(u8 *data, u16 h_proto) h_proto 144 drivers/staging/rtl8192e/rtllib_tx.c if (h_proto == 0x8137 || h_proto == 0x80f3) h_proto 152 drivers/staging/rtl8192e/rtllib_tx.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); h_proto 240 drivers/staging/rtl8192e/rtllib_tx.c if (eth->h_proto != htons(ETH_P_IP)) h_proto 599 drivers/staging/rtl8192e/rtllib_tx.c ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); h_proto 141 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static inline int ieee80211_put_snap(u8 *data, u16 h_proto) h_proto 151 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (h_proto == 0x8137 || h_proto == 0x80f3) h_proto 159 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); h_proto 266 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (eth->h_proto != htons(ETH_P_IP)) h_proto 574 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); h_proto 195 drivers/staging/rtl8712/rtl871x_xmit.c pattrib->ether_type = ntohs(etherhdr.h_proto); h_proto 553 drivers/staging/rtl8712/rtl871x_xmit.c static sint r8712_put_snap(u8 *data, u16 h_proto) h_proto 562 drivers/staging/rtl8712/rtl871x_xmit.c if (h_proto == 0x8137 || h_proto == 0x80f3) h_proto 569 drivers/staging/rtl8712/rtl871x_xmit.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); h_proto 694 drivers/staging/rtl8723bs/core/rtw_xmit.c pattrib->ether_type = ntohs(etherhdr.h_proto); h_proto 1527 drivers/staging/rtl8723bs/core/rtw_xmit.c s32 rtw_put_snap(u8 *data, u16 h_proto) h_proto 1537 drivers/staging/rtl8723bs/core/rtw_xmit.c if (h_proto == 0x8137 || h_proto == 0x80f3) h_proto 1546 drivers/staging/rtl8723bs/core/rtw_xmit.c *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); h_proto 463 drivers/staging/rtl8723bs/include/rtw_xmit.h extern s32 rtw_put_snap(u8 *data, u16 h_proto); h_proto 148 drivers/staging/wilc1000/wilc_wlan.c if (eth_hdr_ptr->h_proto != htons(ETH_P_IP)) h_proto 145 fs/lockd/host.c host->h_proto = ni->protocol; h_proto 259 fs/lockd/host.c if (host->h_proto != protocol) h_proto 370 fs/lockd/host.c if (host->h_proto != ni.protocol) h_proto 458 fs/lockd/host.c .protocol = host->h_proto, h_proto 52 include/linux/lockd/lockd.h unsigned short h_proto; /* transport proto */ h_proto 179 include/net/erspan.h if (eth->h_proto == htons(ETH_P_8021Q)) { h_proto 273 include/net/erspan.h if (eth->h_proto == htons(ETH_P_8021Q)) { h_proto 23 include/net/firewire.h __be16 h_proto; /* packet type ID field */ h_proto 344 include/net/llc_pdu.h dsize = ntohs(eth_hdr(ev_skb)->h_proto) - 3; h_proto 84 include/net/netfilter/nf_queue.h switch (eth_hdr(skb)->h_proto) { h_proto 320 include/net/vxlan.h !can_checksum_protocol(features, inner_eth_hdr(skb)->h_proto)))) h_proto 166 include/uapi/linux/if_ether.h __be16 h_proto; /* packet type ID field */ h_proto 584 net/atm/mpc.c if (eth->h_proto != htons(ETH_P_IP)) h_proto 1089 net/batman-adv/bridge_loop_avoidance.c proto = ethhdr->h_proto; h_proto 1069 net/batman-adv/distributed-arp-table.c if (ethhdr->h_proto != htons(ETH_P_ARP)) h_proto 1820 net/batman-adv/distributed-arp-table.c proto = ethhdr->h_proto; h_proto 639 net/batman-adv/gateway_client.c proto = ethhdr->h_proto; h_proto 396 net/batman-adv/main.c switch (ethhdr->h_proto) { h_proto 650 net/batman-adv/main.c if (ethhdr->h_proto != htons(ETH_P_8021Q)) h_proto 1107 net/batman-adv/multicast.c switch (ntohs(ethhdr->h_proto)) { h_proto 1137 net/batman-adv/multicast.c switch (ntohs(ethhdr->h_proto)) { h_proto 1254 net/batman-adv/multicast.c switch (ntohs(ethhdr->h_proto)) { h_proto 1359 net/batman-adv/multicast.c switch (ntohs(ethhdr->h_proto)) { h_proto 1579 net/batman-adv/multicast.c switch (ntohs(eth_hdr(skb)->h_proto)) { h_proto 1684 net/batman-adv/multicast.c switch (ntohs(eth_hdr(skb)->h_proto)) { h_proto 94 net/batman-adv/send.c ethhdr->h_proto = htons(ETH_P_BATMAN); h_proto 218 net/batman-adv/soft-interface.c proto = ethhdr->h_proto; h_proto 447 net/batman-adv/soft-interface.c switch (ntohs(ethhdr->h_proto)) { h_proto 349 net/bluetooth/bnep/core.c s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); h_proto 358 net/bluetooth/bnep/core.c if (ntohs(s->eh.h_proto) == ETH_P_8021Q) { h_proto 361 net/bluetooth/bnep/core.c s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); h_proto 383 net/bluetooth/bnep/core.c put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); h_proto 393 net/bluetooth/bnep/core.c put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); h_proto 137 net/bluetooth/bnep/netdev.c u16 proto = ntohs(eh->h_proto); h_proto 448 net/bpf/test_run.c retval = bpf_flow_dissect(prog, &ctx, eth->h_proto, ETH_HLEN, h_proto 292 net/bridge/br_arp_nd_proxy.c eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); h_proto 63 net/bridge/br_device.c (eth->h_proto == htons(ETH_P_ARP) || h_proto 64 net/bridge/br_device.c eth->h_proto == htons(ETH_P_RARP)) && h_proto 247 net/bridge/br_multicast.c eth->h_proto = htons(ETH_P_IP); h_proto 338 net/bridge/br_multicast.c eth->h_proto = htons(ETH_P_IPV6); h_proto 2253 net/bridge/br_multicast.c eth.h_proto = htons(proto); h_proto 741 net/bridge/br_private.h switch (eth->h_proto) { h_proto 73 net/bridge/netfilter/ebt_among.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { h_proto 81 net/bridge/netfilter/ebt_among.c } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { h_proto 104 net/bridge/netfilter/ebt_among.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { h_proto 112 net/bridge/netfilter/ebt_among.c } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { h_proto 90 net/bridge/netfilter/ebt_log.c ntohs(eth_hdr(skb)->h_proto)); h_proto 97 net/bridge/netfilter/ebt_log.c if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == h_proto 114 net/bridge/netfilter/ebt_log.c if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == h_proto 139 net/bridge/netfilter/ebt_log.c ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || h_proto 140 net/bridge/netfilter/ebt_log.c (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { h_proto 30 net/bridge/netfilter/ebt_snat.c eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { h_proto 128 net/bridge/netfilter/ebtables.c ethproto = h->h_proto; h_proto 24 net/bridge/netfilter/nf_log_bridge.c nf_log_l2packet(net, pf, eth_hdr(skb)->h_proto, hooknum, skb, h_proto 32 net/bridge/netfilter/nft_reject_bridge.c eth->h_proto = eth_hdr(oldskb)->h_proto; h_proto 308 net/bridge/netfilter/nft_reject_bridge.c switch (eth_hdr(pkt->skb)->h_proto) { h_proto 2930 net/core/dev.c type = eth->h_proto; h_proto 4279 net/core/dev.c orig_eth_type = eth->h_proto; h_proto 4310 net/core/dev.c if ((orig_eth_type != eth->h_proto) || h_proto 5758 net/core/dev.c skb->protocol = eth->h_proto; h_proto 2912 net/core/ethtool.c if (ether_m_spec->h_proto) { h_proto 2913 net/core/ethtool.c match->key.basic.n_proto = ether_spec->h_proto; h_proto 2914 net/core/ethtool.c match->mask.basic.n_proto = ether_m_spec->h_proto; h_proto 581 net/core/flow_dissector.c *p_proto = eth->h_proto; h_proto 668 net/core/flow_dissector.c *p_proto = hdr->eth.h_proto; h_proto 424 net/core/netpoll.c skb->protocol = eth->h_proto = htons(ETH_P_IPV6); h_proto 453 net/core/netpoll.c skb->protocol = eth->h_proto = htons(ETH_P_IP); h_proto 2582 net/core/pktgen.c eth->h_proto = protocol; h_proto 5466 net/core/skbuff.c __be16 diff[] = { ~hdr->h_proto, ethertype }; h_proto 5471 net/core/skbuff.c hdr->h_proto = ethertype; h_proto 16 net/dsa/tag_sja1105.c if (ntohs(hdr->h_proto) == ETH_P_SJA1105_META) h_proto 67 net/dsa/tag_sja1105.c if (ntohs(hdr->h_proto) != ETH_P_SJA1105_META) h_proto 248 net/dsa/tag_sja1105.c tpid = ntohs(hdr->h_proto); h_proto 86 net/ethernet/eth.c eth->h_proto = htons(type); h_proto 88 net/ethernet/eth.c eth->h_proto = htons(len); h_proto 137 net/ethernet/eth.c eth->h_proto, sizeof(*eth), h_proto 192 net/ethernet/eth.c if (likely(eth_proto_is_802_3(eth->h_proto))) h_proto 193 net/ethernet/eth.c return eth->h_proto; h_proto 244 net/ethernet/eth.c eth->h_proto = type; h_proto 282 net/ethernet/eth.c return eth->h_proto; h_proto 485 net/ethernet/eth.c type = eh->h_proto; h_proto 510 net/ethernet/eth.c __be16 type = eh->h_proto; h_proto 60 net/hsr/hsr_forward.c if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || h_proto 61 net/hsr/hsr_forward.c eth_hdr->h_proto == htons(ETH_P_HSR))) h_proto 65 net/hsr/hsr_forward.c if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ h_proto 111 net/hsr/hsr_forward.c skb->protocol = eth_hdr(skb)->h_proto; h_proto 144 net/hsr/hsr_forward.c hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; h_proto 145 net/hsr/hsr_forward.c hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? h_proto 321 net/hsr/hsr_forward.c if (ethhdr->h_proto == htons(ETH_P_8021Q)) { h_proto 326 net/hsr/hsr_forward.c if (ethhdr->h_proto == htons(ETH_P_PRP) || h_proto 327 net/hsr/hsr_forward.c ethhdr->h_proto == htons(ETH_P_HSR)) { h_proto 199 net/hsr/hsr_framereg.c if (ethhdr->h_proto == htons(ETH_P_PRP) || h_proto 200 net/hsr/hsr_framereg.c ethhdr->h_proto == htons(ETH_P_HSR)) { h_proto 237 net/hsr/hsr_framereg.c if (ethhdr->h_proto == htons(ETH_P_HSR)) h_proto 39 net/hsr/hsr_slave.c protocol = eth_hdr(skb)->h_proto; h_proto 103 net/ipv4/ip_tunnel_core.c if (likely(eth_proto_is_802_3(eh->h_proto))) h_proto 104 net/ipv4/ip_tunnel_core.c skb->protocol = eh->h_proto; h_proto 289 net/ipv4/netfilter/nf_log_ipv4.c ntohs(eth_hdr(skb)->h_proto)); h_proto 33 net/ipv6/netfilter/ip6t_eui64.c if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { h_proto 302 net/ipv6/netfilter/nf_log_ipv6.c ntohs(eth_hdr(skb)->h_proto)); h_proto 284 net/ipv6/seg6_local.c if (!eth_proto_is_802_3(eth->h_proto)) h_proto 311 net/ipv6/seg6_local.c skb->protocol = eth->h_proto; h_proto 130 net/llc/llc_input.c __be16 pdulen = eth_hdr(skb)->h_proto; h_proto 161 net/llc/llc_s_ac.c data_size = ntohs(eth_hdr(skb)->h_proto) - 3; h_proto 81 net/llc/llc_station.c data_size = ntohs(eth_hdr(skb)->h_proto) - 3; h_proto 2405 net/mac80211/rx.c if (ehdr->h_proto == rx->sdata->control_port_protocol) h_proto 2426 net/mac80211/rx.c if (ehdr->h_proto == rx->sdata->control_port_protocol && h_proto 2846 net/mac80211/rx.c if (unlikely(((struct ethhdr *)rx->skb->data)->h_proto == h_proto 3192 net/mac80211/tx.c amsdu_hdr->h_proto = cpu_to_be16(subframe_len); h_proto 3975 net/mac80211/tx.c ethertype = eth->h_proto; h_proto 5118 net/mac80211/tx.c ehdr->h_proto = proto; h_proto 370 net/ncsi/ncsi-cmd.c eh->h_proto = htons(ETH_P_NCSI); h_proto 206 net/netfilter/nft_chain_filter.c switch (eth_hdr(skb)->h_proto) { h_proto 81 net/netfilter/nft_log.c switch (eth_hdr(skb)->h_proto) { h_proto 82 net/netfilter/xt_AUDIT.c switch (eth_hdr(skb)->h_proto) { h_proto 303 net/openvswitch/actions.c hdr->h_proto = skb->protocol; h_proto 1786 net/packet/af_packet.c return likely(eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)); h_proto 834 net/sched/act_ife.c oethh->h_proto = htons(p->eth_type); h_proto 55 net/sched/act_skbmod.c eth_hdr(skb)->h_proto = p->eth_type; h_proto 538 net/wireless/util.c tmp.h_proto = payload.proto; h_proto 541 net/wireless/util.c tmp.h_proto != htons(ETH_P_AARP) && h_proto 542 net/wireless/util.c tmp.h_proto != htons(ETH_P_IPX)) || h_proto 548 net/wireless/util.c tmp.h_proto = htons(skb->len - hdrlen); h_proto 674 net/wireless/util.c len = ntohs(eth.h_proto); h_proto 717 net/wireless/util.c eth.h_proto = htons(ethertype); h_proto 247 net/xfrm/xfrm_input.c eth_hdr(skb)->h_proto = skb->protocol; h_proto 285 net/xfrm/xfrm_input.c eth_hdr(skb)->h_proto = skb->protocol; h_proto 31 samples/bpf/parse_ldabs.c if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP) h_proto 23 samples/bpf/parse_simple.c unsigned short h_proto; h_proto 39 samples/bpf/parse_simple.c if (eth->h_proto != htons(ETH_P_IP)) h_proto 118 samples/bpf/parse_varlen.c uint64_t h_proto, nh_off; h_proto 124 samples/bpf/parse_varlen.c h_proto = eth->h_proto; h_proto 126 samples/bpf/parse_varlen.c if (h_proto == ETH_P_8021Q || h_proto == ETH_P_8021AD) { h_proto 133 samples/bpf/parse_varlen.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 135 samples/bpf/parse_varlen.c if (h_proto == ETH_P_8021Q || h_proto == ETH_P_8021AD) { h_proto 142 samples/bpf/parse_varlen.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 144 samples/bpf/parse_varlen.c if (h_proto == htons(ETH_P_IP)) h_proto 146 samples/bpf/parse_varlen.c else if (h_proto == htons(ETH_P_IPV6)) h_proto 37 samples/bpf/tc_l2_redirect_kern.c unsigned short h_proto; h_proto 76 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { h_proto 89 samples/bpf/tc_l2_redirect_kern.c } else if (eth->h_proto == htons(ETH_P_IPV6)) { h_proto 127 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { h_proto 135 samples/bpf/tc_l2_redirect_kern.c if (!is_vip_addr(eth->h_proto, daddr)) h_proto 166 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { h_proto 173 samples/bpf/tc_l2_redirect_kern.c if (!is_vip_addr(eth->h_proto, iph->daddr)) h_proto 178 samples/bpf/tc_l2_redirect_kern.c } else if (eth->h_proto == htons(ETH_P_IPV6)) { h_proto 185 samples/bpf/tc_l2_redirect_kern.c if (!is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) h_proto 216 samples/bpf/tc_l2_redirect_kern.c if (eth->h_proto == htons(ETH_P_IP)) { h_proto 222 samples/bpf/tc_l2_redirect_kern.c if (is_vip_addr(eth->h_proto, iph->daddr)) h_proto 224 samples/bpf/tc_l2_redirect_kern.c } else if (eth->h_proto == htons(ETH_P_IPV6)) { h_proto 230 samples/bpf/tc_l2_redirect_kern.c if (is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) h_proto 19 samples/bpf/test_cgrp2_tc_kern.c unsigned short h_proto; h_proto 56 samples/bpf/test_cgrp2_tc_kern.c if (eth->h_proto != htons(ETH_P_IPV6) || h_proto 59 samples/bpf/test_cgrp2_tc_kern.c eth->h_proto, ip6h->nexthdr); h_proto 179 samples/bpf/test_lwt_bpf.c ehdr.h_proto = __constant_htons(ETH_P_IP); h_proto 50 samples/bpf/xdp1_kern.c u16 h_proto; h_proto 58 samples/bpf/xdp1_kern.c h_proto = eth->h_proto; h_proto 60 samples/bpf/xdp1_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { h_proto 67 samples/bpf/xdp1_kern.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 69 samples/bpf/xdp1_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { h_proto 76 samples/bpf/xdp1_kern.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 79 samples/bpf/xdp1_kern.c if (h_proto == htons(ETH_P_IP)) h_proto 81 samples/bpf/xdp1_kern.c else if (h_proto == htons(ETH_P_IPV6)) h_proto 66 samples/bpf/xdp2_kern.c u16 h_proto; h_proto 74 samples/bpf/xdp2_kern.c h_proto = eth->h_proto; h_proto 76 samples/bpf/xdp2_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { h_proto 83 samples/bpf/xdp2_kern.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 85 samples/bpf/xdp2_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { h_proto 92 samples/bpf/xdp2_kern.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 95 samples/bpf/xdp2_kern.c if (h_proto == htons(ETH_P_IP)) h_proto 97 samples/bpf/xdp2_kern.c else if (h_proto == htons(ETH_P_IPV6)) h_proto 52 samples/bpf/xdp_adjust_tail_kern.c eth->h_proto = orig_eth->h_proto; h_proto 139 samples/bpf/xdp_adjust_tail_kern.c __u16 h_proto; h_proto 144 samples/bpf/xdp_adjust_tail_kern.c h_proto = eth->h_proto; h_proto 146 samples/bpf/xdp_adjust_tail_kern.c if (h_proto == htons(ETH_P_IP)) h_proto 51 samples/bpf/xdp_fwd_kern.c u16 h_proto; h_proto 61 samples/bpf/xdp_fwd_kern.c h_proto = eth->h_proto; h_proto 62 samples/bpf/xdp_fwd_kern.c if (h_proto == htons(ETH_P_IP)) { h_proto 79 samples/bpf/xdp_fwd_kern.c } else if (h_proto == htons(ETH_P_IPV6)) { h_proto 133 samples/bpf/xdp_fwd_kern.c if (h_proto == htons(ETH_P_IP)) h_proto 135 samples/bpf/xdp_fwd_kern.c else if (h_proto == htons(ETH_P_IPV6)) h_proto 122 samples/bpf/xdp_redirect_cpu_kern.c eth_type = eth->h_proto; h_proto 259 samples/bpf/xdp_redirect_cpu_kern.c eth_type = eth->h_proto; h_proto 119 samples/bpf/xdp_router_ipv4_kern.c u16 h_proto; h_proto 127 samples/bpf/xdp_router_ipv4_kern.c h_proto = eth->h_proto; h_proto 129 samples/bpf/xdp_router_ipv4_kern.c if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { h_proto 136 samples/bpf/xdp_router_ipv4_kern.c h_proto = vhdr->h_vlan_encapsulated_proto; h_proto 138 samples/bpf/xdp_router_ipv4_kern.c if (h_proto == htons(ETH_P_ARP)) { h_proto 140 samples/bpf/xdp_router_ipv4_kern.c } else if (h_proto == htons(ETH_P_IP)) { h_proto 127 samples/bpf/xdp_rxq_info_kern.c if (ntohs(eth->h_proto) < ETH_P_802_3_MIN) h_proto 70 samples/bpf/xdp_tx_iptunnel_kern.c __be16 h_proto) h_proto 74 samples/bpf/xdp_tx_iptunnel_kern.c new_eth->h_proto = h_proto; h_proto 221 samples/bpf/xdp_tx_iptunnel_kern.c __u16 h_proto; h_proto 226 samples/bpf/xdp_tx_iptunnel_kern.c h_proto = eth->h_proto; h_proto 228 samples/bpf/xdp_tx_iptunnel_kern.c if (h_proto == htons(ETH_P_IP)) h_proto 230 samples/bpf/xdp_tx_iptunnel_kern.c else if (h_proto == htons(ETH_P_IPV6)) h_proto 107 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IP), h_proto 128 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), h_proto 148 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), h_proto 170 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_8021AD), h_proto 193 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IP), h_proto 219 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IP), h_proto 241 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), h_proto 267 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), h_proto 289 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), h_proto 311 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), h_proto 333 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IP), h_proto 361 tools/testing/selftests/bpf/prog_tests/flow_dissector.c .eth.h_proto = __bpf_constant_htons(ETH_P_IP), h_proto 208 tools/testing/selftests/bpf/progs/bpf_flow.c return parse_eth_proto(skb, eth->h_proto); h_proto 33 tools/testing/selftests/bpf/progs/test_pkt_access.c if (eth->h_proto == bpf_htons(ETH_P_IP)) { h_proto 41 tools/testing/selftests/bpf/progs/test_pkt_access.c } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { h_proto 70 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); h_proto 209 tools/testing/selftests/bpf/progs/test_tc_tunnel.c eth.h_proto = bpf_htons(ETH_P_IP); h_proto 64 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c switch (bpf_ntohs(ethh->h_proto)) { h_proto 73 tools/testing/selftests/bpf/progs/test_xdp.c __be16 h_proto) h_proto 77 tools/testing/selftests/bpf/progs/test_xdp.c new_eth->h_proto = h_proto; h_proto 219 tools/testing/selftests/bpf/progs/test_xdp.c __u16 h_proto; h_proto 224 tools/testing/selftests/bpf/progs/test_xdp.c h_proto = eth->h_proto; h_proto 226 tools/testing/selftests/bpf/progs/test_xdp.c if (h_proto == bpf_htons(ETH_P_IP)) h_proto 228 tools/testing/selftests/bpf/progs/test_xdp.c else if (h_proto == bpf_htons(ETH_P_IPV6)) h_proto 69 tools/testing/selftests/bpf/progs/test_xdp_loop.c __be16 h_proto) h_proto 73 tools/testing/selftests/bpf/progs/test_xdp_loop.c new_eth->h_proto = h_proto; h_proto 215 tools/testing/selftests/bpf/progs/test_xdp_loop.c __u16 h_proto; h_proto 220 tools/testing/selftests/bpf/progs/test_xdp_loop.c h_proto = eth->h_proto; h_proto 222 tools/testing/selftests/bpf/progs/test_xdp_loop.c if (h_proto == bpf_htons(ETH_P_IP)) h_proto 224 tools/testing/selftests/bpf/progs/test_xdp_loop.c else if (h_proto == bpf_htons(ETH_P_IPV6)) h_proto 67 tools/testing/selftests/bpf/progs/test_xdp_vlan.c eth_type = eth->h_proto; h_proto 70 tools/testing/selftests/bpf/progs/xdping_kern.c if (eth->h_proto != bpf_htons(ETH_P_IP)) h_proto 168 tools/testing/selftests/bpf/test_progs.c .eth.h_proto = __bpf_constant_htons(ETH_P_IP), h_proto 177 tools/testing/selftests/bpf/test_progs.c .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), h_proto 504 tools/testing/selftests/net/msg_zerocopy.c eth.h_proto = htons(proto); h_proto 108 tools/testing/selftests/net/psock_snd.c eth->h_proto = htons(ETH_P_8021Q); h_proto 113 tools/testing/selftests/net/psock_snd.c eth->h_proto = htons(ETH_P_IP); h_proto 134 tools/testing/selftests/net/psock_tpacket.c if (eth->h_proto != htons(ETH_P_IP)) { h_proto 136 tools/testing/selftests/net/psock_tpacket.c "type: 0x%x!\n", ntohs(eth->h_proto)); h_proto 154 tools/testing/selftests/net/psock_tpacket.c eth->h_proto = htons(ETH_P_IP); h_proto 51 tools/testing/selftests/net/txring_overwrite.c eth->h_proto = htons(ETH_P_IP);