Symbol: ETH_P_IP
arch/powerpc/platforms/ps3/gelic_udbg.c
162
h_vlan->h_vlan_encapsulated_proto = ETH_P_IP;
arch/um/drivers/vector_user.c
535
txfd = create_raw_fd(iface, 0, ETH_P_IP); /* Turn off RX on this fd */
drivers/firewire/net.c
1266
case htons(ETH_P_IP):
drivers/firewire/net.c
487
case ETH_P_IP:
drivers/infiniband/core/lag.c
72
skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6);
drivers/infiniband/hw/bnxt_re/ib_verbs.c
2462
ether_type = ETH_P_IP;
drivers/infiniband/hw/bnxt_re/ib_verbs.c
3553
case ETH_P_IP:
drivers/infiniband/hw/bnxt_re/ib_verbs.c
3558
len = (eth_type == ETH_P_IP ? sizeof(struct iphdr) :
drivers/infiniband/hw/ionic/ionic_controlpath.c
544
hdr->eth.type = cpu_to_be16(ETH_P_IP);
drivers/infiniband/hw/ionic/ionic_controlpath.c
655
if (ah->hdr.vlan.type == cpu_to_be16(ETH_P_IP))
drivers/infiniband/hw/ionic/ionic_controlpath.c
662
if (ah->hdr.eth.type == cpu_to_be16(ETH_P_IP))
drivers/infiniband/hw/irdma/cm.c
487
htons(ETH_P_IP);
drivers/infiniband/hw/irdma/cm.c
489
ethh->h_proto = htons(ETH_P_IP);
drivers/infiniband/hw/mlx4/qp.c
3183
(ip_version == 4 ? ETH_P_IP : ETH_P_IPV6);
drivers/infiniband/hw/mlx5/fs.c
289
ethertype, ETH_P_IP);
drivers/infiniband/hw/mlx5/fs.c
613
ipv4_spec_valid = (eth_type == ETH_P_IP) &&
drivers/infiniband/hw/qedr/qedr_roce_cm.c
415
ether_type = ETH_P_IP;
drivers/infiniband/sw/rxe/rxe_icrc.c
44
(skb->protocol == htons(ETH_P_IP) ?
drivers/infiniband/sw/rxe/rxe_icrc.c
58
if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */
drivers/infiniband/sw/rxe/rxe_net.c
416
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
452
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
475
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_net.c
575
skb->protocol = htons(ETH_P_IP);
drivers/infiniband/sw/rxe/rxe_recv.c
111
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_recv.c
199
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/sw/rxe/rxe_recv.c
294
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_resp.c
1007
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/sw/rxe/rxe_resp.c
1127
if (skb->protocol == htons(ETH_P_IP))
drivers/infiniband/ulp/ipoib/ipoib_cm.c
1438
if (skb->protocol == htons(ETH_P_IP)) {
drivers/infiniband/ulp/ipoib/ipoib_main.c
1152
if ((header->proto != htons(ETH_P_IP)) &&
drivers/infiniband/ulp/ipoib/ipoib_main.c
1175
case htons(ETH_P_IP):
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
428
case htons(ETH_P_IP):
drivers/message/fusion/mptlan.c
1529
(fcllc->ethertype == htons(ETH_P_IP) ||
drivers/net/amt.c
1039
skb_set_inner_protocol(skb, htons(ETH_P_IP));
drivers/net/amt.c
1097
skb_set_inner_protocol(skb, htons(ETH_P_IP));
drivers/net/amt.c
1156
skb_set_inner_protocol(skb, htons(ETH_P_IP));
drivers/net/amt.c
2301
if (iptunnel_pull_header(skb, hdr_size, htons(ETH_P_IP), false))
drivers/net/amt.c
2317
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2318
eth->h_proto = htons(ETH_P_IP);
drivers/net/amt.c
2401
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2402
eth->h_proto = htons(ETH_P_IP);
drivers/net/amt.c
2509
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
2510
eth->h_proto = htons(ETH_P_IP);
drivers/net/amt.c
532
skb->protocol = htons(ETH_P_IP);
drivers/net/amt.c
557
eth->h_proto = htons(ETH_P_IP);
drivers/net/arcnet/rfc1051.c
108
return htons(ETH_P_IP);
drivers/net/arcnet/rfc1051.c
118
return htons(ETH_P_IP);
drivers/net/arcnet/rfc1051.c
171
case ETH_P_IP:
drivers/net/arcnet/rfc1201.c
112
return htons(ETH_P_IP);
drivers/net/arcnet/rfc1201.c
129
return htons(ETH_P_IP);
drivers/net/arcnet/rfc1201.c
388
case ETH_P_IP:
drivers/net/bareudp.c
455
if (bareudp->ethertype == htons(ETH_P_IP) &&
drivers/net/bareudp.c
663
conf->ethertype != htons(ETH_P_IP))) {
drivers/net/bareudp.c
77
if (skb->protocol == htons(ETH_P_IP))
drivers/net/bareudp.c
82
if (bareudp->ethertype == htons(ETH_P_IP)) {
drivers/net/bareudp.c
93
proto = htons(ETH_P_IP);
drivers/net/bonding/bond_alb.c
1387
case htons(ETH_P_IP):
drivers/net/bonding/bond_alb.c
1434
case ETH_P_IP: {
drivers/net/bonding/bond_main.c
3164
arp->ar_pro != htons(ETH_P_IP) ||
drivers/net/bonding/bond_main.c
4120
if (l2_proto == htons(ETH_P_IP)) {
drivers/net/bonding/bond_main.c
4965
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/bonding/bond_main.c
5006
if (eth->h_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/airoha/airoha_ppe.c
359
l2->etype = ETH_P_IP;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
1470
case htons(ETH_P_IP):
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
122
tdata->pt.type = htons(ETH_P_IP);
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
319
if (unlikely(skb->protocol != htons(ETH_P_IP)) &&
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
596
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
748
dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol);
drivers/net/ethernet/atheros/alx/main.c
1438
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1613
if (skb->protocol == htons(ETH_P_IP) ||
drivers/net/ethernet/atheros/atlx/atl1.c
2118
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/atheros/atlx/atl1.c
2405
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/asp2/bcmasp.c
338
val_16 = htons(ETH_P_IP);
drivers/net/ethernet/broadcom/asp2/bcmasp.c
439
val_16 = htons(ETH_P_IP);
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
180
case htons(ETH_P_IP):
drivers/net/ethernet/broadcom/bcmsysport.c
1250
case htons(ETH_P_IP):
drivers/net/ethernet/broadcom/bcmsysport.c
1271
ip_ver == htons(ETH_P_IP))
drivers/net/ethernet/broadcom/bnge/bnge_txrx.c
504
if (ip_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
749
case ETH_P_IP:
drivers/net/ethernet/broadcom/bnxt/bnxt.c
13966
case htons(ETH_P_IP):
drivers/net/ethernet/broadcom/bnxt/bnxt.c
13973
} else if (skb->inner_protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
13993
case htons(ETH_P_IP):
drivers/net/ethernet/broadcom/bnxt/bnxt.c
14016
case htons(ETH_P_IP):
drivers/net/ethernet/broadcom/bnxt/bnxt.c
15594
if (keys1->basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
15675
if ((fkeys->basic.n_proto != htons(ETH_P_IP) &&
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1638
if (ip_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1686
if (proto != htons(ETH_P_IP) && proto != htons(ETH_P_IPV6))
drivers/net/ethernet/broadcom/bnxt/bnxt.c
5980
if (fkeys->basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
6014
if (fkeys->basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
6343
req->ethertype = htons(ETH_P_IP);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
1151
if (fkeys->basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
1389
fkeys->basic.n_proto = htons(ETH_P_IP);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
1404
fkeys->basic.n_proto = htons(ETH_P_IP);
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
394
if (match.key->n_proto == htons(ETH_P_IP) ||
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
708
flow_flags |= flow->l2_key.ether_type == htons(ETH_P_IP) ?
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
831
req->ethertype = htons(ETH_P_IP);
drivers/net/ethernet/broadcom/cnic.c
3409
l4kwqe->etype = ETH_P_IP;
drivers/net/ethernet/broadcom/genet/bcmgenet.c
2083
case htons(ETH_P_IP):
drivers/net/ethernet/broadcom/genet/bcmgenet.c
649
val_16 = htons(ETH_P_IP);
drivers/net/ethernet/brocade/bna/bnad.c
2494
if (vlan_get_protocol(skb) == htons(ETH_P_IP)) {
drivers/net/ethernet/brocade/bna/bnad.c
2857
if (net_proto == htons(ETH_P_IP))
drivers/net/ethernet/cadence/macb_main.c
4703
reg = GEM_BFINS(ETHTCMP, (uint16_t)ETH_P_IP, reg);
drivers/net/ethernet/chelsio/cxgb/sge.c
1381
skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c
65
likely(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c
331
if (eth_ip_type != ETH_P_IP && eth_ip_type != ETH_P_IPV6) {
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c
167
if (protocol != htons(ETH_P_IP) && protocol != htons(ETH_P_IPV6))
drivers/net/ethernet/chelsio/cxgb4/sge.c
1279
case htons(ETH_P_IP):
drivers/net/ethernet/cisco/enic/enic_clsf.c
182
if (!res || keys.basic.n_proto != htons(ETH_P_IP) ||
drivers/net/ethernet/cisco/enic/enic_main.c
262
case htons(ETH_P_IP):
drivers/net/ethernet/cisco/enic/enic_main.c
274
case ntohs(ETH_P_IP):
drivers/net/ethernet/cisco/enic/enic_main.c
629
case ntohs(ETH_P_IP):
drivers/net/ethernet/cisco/enic/enic_main.c
655
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/cortina/gemini.c
1155
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/cortina/gemini.c
1215
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/emulex/benet/be.h
916
return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4;
drivers/net/ethernet/emulex/benet/be_main.c
5100
case htons(ETH_P_IP):
drivers/net/ethernet/faraday/ftgmac100.c
738
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
1505
case ETH_P_IP:
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c
424
*(__be16 *)(key + off) = htons(ETH_P_IP);
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c
470
*(__be16 *)(key + off) = htons(ETH_P_IP);
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
596
rfse.ethtype_h = ETH_P_IP; /* IPv4 */
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
609
rfse.ethtype_h = ETH_P_IP; /* IPv4 */
drivers/net/ethernet/freescale/fec_main.c
449
return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4;
drivers/net/ethernet/hisilicon/hns/hns_enet.c
1558
ethhdr->h_proto = htons(ETH_P_IP);
drivers/net/ethernet/hisilicon/hns/hns_enet.c
183
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c
83
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1277
} else if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1364
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
2957
if ((fkeys.basic.n_proto != htons(ETH_P_IP) &&
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3031
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3882
if (type == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6282
rule->tuples.ether_proto = ETH_P_IP;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6308
rule->tuples.ether_proto = ETH_P_IP;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7036
if (fkeys->basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
7075
if (tuples->ether_proto == ETH_P_IP) {
drivers/net/ethernet/huawei/hinic3/hinic3_rx.c
369
skb_shinfo(skb)->gso_type = proto == htons(ETH_P_IP) ?
drivers/net/ethernet/ibm/ehea/ehea_main.c
1961
if (vlan_get_protocol(skb) != htons(ETH_P_IP))
drivers/net/ethernet/ibm/ibmveth.c
1245
((skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/ibm/ibmveth.c
1339
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmveth.c
1391
if (skb_proto == ETH_P_IP) {
drivers/net/ethernet/ibm/ibmveth.c
1432
if (skb_proto == ETH_P_IP)
drivers/net/ethernet/ibm/ibmveth.c
1518
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmvnic.c
2186
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/ibm/ibmvnic.c
2571
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/e1000/e1000_main.c
2714
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/e1000/e1000_main.c
2778
case cpu_to_be16(ETH_P_IP):
drivers/net/ethernet/intel/e1000/e1000_main.c
3237
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/e1000e/netdev.c
5474
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/e1000e/netdev.c
5533
case cpu_to_be16(ETH_P_IP):
drivers/net/ethernet/intel/e1000e/netdev.c
5749
if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP))
drivers/net/ethernet/intel/e1000e/netdev.c
5903
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/fm10k/fm10k_main.c
659
if (vlan_get_protocol(skb) != htons(ETH_P_IP))
drivers/net/ethernet/intel/fm10k/fm10k_main.c
686
case htons(ETH_P_IP):
drivers/net/ethernet/intel/fm10k/fm10k_main.c
711
case htons(ETH_P_IP):
drivers/net/ethernet/intel/fm10k/fm10k_main.c
826
case htons(ETH_P_IP):
drivers/net/ethernet/intel/i40e/i40e_main.c
8353
if (filter->n_proto != ETH_P_IP && filter->n_proto != ETH_P_IPV6)
drivers/net/ethernet/intel/i40e/i40e_txrx.c
177
eth.h_proto = cpu_to_be16(ETH_P_IP);
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
3833
cfilter.n_proto = ETH_P_IP;
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
3887
if (cfilter.n_proto == ETH_P_IP && mask.dst_ip[0])
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
3979
cfilter->n_proto = ETH_P_IP;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
575
if (fltr->eth_data.etype == htons(ETH_P_IP) ||
drivers/net/ethernet/intel/iavf/iavf_main.c
3857
if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6)
drivers/net/ethernet/intel/iavf/iavf_main.c
4246
case ETH_P_IP:
drivers/net/ethernet/intel/iavf/iavf_main.c
4249
spec_h->h_proto = htons(ETH_P_IP);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
2348
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ice/ice_arfs.c
320
if (fk->basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/intel/ice/ice_arfs.c
368
if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_UDP)
drivers/net/ethernet/intel/ice/ice_arfs.c
370
else if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_TCP)
drivers/net/ethernet/intel/ice/ice_arfs.c
408
return n_proto == htons(ETH_P_IP) &&
drivers/net/ethernet/intel/ice/ice_arfs.c
468
if ((n_proto == htons(ETH_P_IP) && !ip_is_fragment(ip_hdr(skb))) ||
drivers/net/ethernet/intel/ice/ice_tc_lib.c
299
if (fltr->inner_headers.l2_key.n_proto == htons(ETH_P_IP) &&
drivers/net/ethernet/intel/ice/ice_tc_lib.c
554
if (headers->l2_key.n_proto == htons(ETH_P_IP) &&
drivers/net/ethernet/intel/ice/ice_txrx.c
2290
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
439
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/igbvf/netdev.c
2305
if (protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
1100
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
10222
if (protocol != htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9126
if ((first->protocol != htons(ETH_P_IP)) &&
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9136
first->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/intel/ixgbevf/ipsec.c
499
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3928
if (first->protocol == htons(ETH_P_IP))
drivers/net/ethernet/jme.c
2048
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/jme.c
2073
case htons(ETH_P_IP):
drivers/net/ethernet/jme.c
946
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/marvell/mv643xx_eth.c
680
BUG_ON(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/marvell/mvneta.c
1796
if (l3_proto == htons(ETH_P_IP))
drivers/net/ethernet/marvell/mvneta.c
1962
if (l3_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
2594
if (l3_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
3613
if (l3_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c
1464
mvpp2_prs_match_etype(&pe, 0, ETH_P_IP);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
594
pkt->etype = cpu_to_be16(ETH_P_IP);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
601
pkt->etype = cpu_to_be16(ETH_P_IP);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
656
pkt->etype = cpu_to_be16(ETH_P_IP);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
712
if (ntohs(flow_spec->etype) == ETH_P_IP) {
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
773
if ((ntohs(flow_spec->etype) != ETH_P_IP) &&
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
1104
case ETH_P_IP:
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
745
if (l3_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
828
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/mediatek/mtk_ppe.c
274
l2->etype = ETH_P_IP;
drivers/net/ethernet/mediatek/mtk_ppe.c
730
else if (type >= MTK_PPE_PKT_TYPE_IPV6_ROUTE_3T && l2->etype == ETH_P_IP)
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
381
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
85
if ((ethertype.m == 0xffff && ethertype.v == ETH_P_IP) ||
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h
84
if (fk.basic.n_proto != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
145
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
1433
case htons(ETH_P_IP):
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
2514
(basic.key->n_proto != htons(ETH_P_IP) && basic.key->n_proto != htons(ETH_P_IPV6)) ||
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
285
ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
390
ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
876
key_basic.n_proto = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
66
case htons(ETH_P_IP):
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
86
swp_spec.tun_l3_proto = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1783
eth_hdr->h_proto = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
237
(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
284
(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
65
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
153
if (unlikely(skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
194
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
67
case ETH_P_IP:
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
500
if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP)
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
502
if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP)
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
564
if (tuple->etype == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
677
if (tuple->etype == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
704
if (tuple->etype == htons(ETH_P_IP))
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
743
if (fk.basic.n_proto != htons(ETH_P_IP) &&
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c
171
MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
5004
case htons(ETH_P_IP):
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
5025
case htons(ETH_P_IP):
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1166
bool is_ipv4 = (rq->hw_gro_data->fk.basic.n_proto == htons(ETH_P_IP));
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1213
if (*proto == htons(ETH_P_IP))
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1233
rc = ((proto == htons(ETH_P_IP)) ? IP_ECN_set_ce((struct iphdr *)ip) :
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1243
return (proto == htons(ETH_P_IP)) ? ((struct iphdr *)ip_p)->protocol :
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1304
case htons(ETH_P_IP):
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
2240
rq->hw_gro_data->fk.basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
995
if (proto == htons(ETH_P_IP)) {
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
111
ethh->h_proto = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
143
skb->protocol = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c
224
lbtp->pt.type = htons(ETH_P_IP);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
2378
(match->key->n_proto == htons(ETH_P_IP) ||
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
2382
match->key->n_proto == htons(ETH_P_IP) ? 4 : 6);
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
2406
if (ethertype == ETH_P_IP || ethertype == ETH_P_ARP)
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3556
ethertype != ETH_P_IP && ethertype != ETH_P_IPV6)
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
102
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
110
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
118
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
126
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
141
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
149
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
157
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
299
if (ethertype == ETH_P_IP)
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
94
.etype = ETH_P_IP,
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
986
*etype = ETH_P_IP;
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
998
*etype = ETH_P_IP;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/rule.c
661
case ETH_P_IP:
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c
545
if (n_proto != ETH_P_IP && n_proto != ETH_P_IPV6) {
drivers/net/ethernet/micrel/ksz884x.c
4601
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
543
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c
163
LAN966X_VCAP_IPV4_EV_PTP_TRAP, ETH_P_IP);
drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c
168
LAN966X_VCAP_IPV4_GEN_PTP_TRAP, ETH_P_IP);
drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c
107
} else if (st->l3_proto == ETH_P_IP) {
drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c
18
case ETH_P_IP:
drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c
27
case ETH_P_IP:
drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
135
if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) {
drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
226
if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) {
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
100
} else if (st->l3_proto == ETH_P_IP) {
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
1099
case ETH_P_IP:
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
1110
case ETH_P_IP:
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
1125
case ETH_P_IP:
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
132
ETH_P_IP,
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
140
ETH_P_IP,
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
148
ETH_P_IP,
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
1528
case ETH_P_IP:
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
1624
case ETH_P_IP:
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
1710
case ETH_P_IP:
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
421
if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP)
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
453
if (l3_proto != ETH_P_IP && l3_proto != ETH_P_IPV6)
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
483
if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) {
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
548
if (l3_proto != ETH_P_ARP && l3_proto != ETH_P_IP &&
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
637
if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP)
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
668
if (l3_proto != ETH_P_ARP && l3_proto != ETH_P_IP &&
drivers/net/ethernet/microchip/vcap/vcap_tc.c
67
if (st->l3_proto == ETH_P_IP) {
drivers/net/ethernet/microsoft/mana/mana_en.c
151
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/microsoft/mana/mana_en.c
416
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/mscc/ocelot_flower.c
704
if (ntohs(match.key->n_proto) == ETH_P_IP) {
drivers/net/ethernet/mscc/ocelot_flower.c
735
proto == ETH_P_IP) {
drivers/net/ethernet/mscc/ocelot_vcap.c
1116
if (proto == ETH_P_IP)
drivers/net/ethernet/netronome/nfp/abm/cls.c
182
tos_off = proto == htons(ETH_P_IP) ? 16 : 20;
drivers/net/ethernet/netronome/nfp/abm/cls.c
244
if (cls_u32->common.protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/netronome/nfp/abm/cls.c
68
case htons(ETH_P_IP):
drivers/net/ethernet/netronome/nfp/flower/offload.c
423
case cpu_to_be16(ETH_P_IP):
drivers/net/ethernet/netronome/nfp/flower/offload.c
513
case cpu_to_be16(ETH_P_IP):
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
2135
case htons(ETH_P_IP):
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
1662
if (fs->h_u.ether_spec.h_proto == htons(ETH_P_IP) ||
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
1097
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
1352
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
1376
if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
1888
if (protocol == cpu_to_be16(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1717
if (eth_type == ETH_P_IP) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
1339
if (fltr->tuple.eth_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
1400
if (t->eth_proto == htons(ETH_P_IP))
drivers/net/ethernet/qlogic/qede/qede_filter.c
1416
if (a->eth_proto != htons(ETH_P_IP) ||
drivers/net/ethernet/qlogic/qede/qede_filter.c
1417
b->eth_proto != htons(ETH_P_IP))
drivers/net/ethernet/qlogic/qede/qede_filter.c
1801
tuple->eth_proto = htons(ETH_P_IP);
drivers/net/ethernet/qlogic/qede/qede_filter.c
1821
tuple->eth_proto = htons(ETH_P_IP);
drivers/net/ethernet/qlogic/qede/qede_filter.c
1851
if (proto != htons(ETH_P_IP) &&
drivers/net/ethernet/qlogic/qede/qede_filter.c
1865
if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IP))
drivers/net/ethernet/qlogic/qede/qede_filter.c
1869
else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IP))
drivers/net/ethernet/qlogic/qede/qede_filter.c
2006
proto = htons(ETH_P_IP);
drivers/net/ethernet/qlogic/qede/qede_filter.c
369
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
445
if (skb->protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/qlogic/qede/qede_filter.c
449
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_filter.c
502
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qlogic/qede/qede_fp.c
1769
case htons(ETH_P_IP):
drivers/net/ethernet/qlogic/qede/qede_fp.c
939
case htons(ETH_P_IP):
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
556
if (protocol == ETH_P_IP) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
752
if (protocol == ETH_P_IP)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1260
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c
26
skb->protocol = htons(ETH_P_IP);
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
261
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
420
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
451
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/realtek/r8169_main.c
4384
case htons(ETH_P_IP):
drivers/net/ethernet/realtek/r8169_main.c
4494
case htons(ETH_P_IP):
drivers/net/ethernet/realtek/r8169_main.c
4640
if (vlan_get_protocol(skb) == htons(ETH_P_IP) &&
drivers/net/ethernet/realtek/rtase/rtase_main.c
1224
case htons(ETH_P_IP):
drivers/net/ethernet/renesas/ravb_main.c
2096
case ETH_P_IP:
drivers/net/ethernet/rocker/rocker_ofdpa.c
1266
__be16 eth_type = htons(ETH_P_IP);
drivers/net/ethernet/rocker/rocker_ofdpa.c
1569
.eth_type = htons(ETH_P_IP),
drivers/net/ethernet/rocker/rocker_ofdpa.c
2031
eth_type = htons(ETH_P_IP);
drivers/net/ethernet/rocker/rocker_ofdpa.c
2273
__be16 eth_type = htons(ETH_P_IP);
drivers/net/ethernet/rocker/rocker_ofdpa.c
471
case ETH_P_IP:
drivers/net/ethernet/sfc/efx_common.c
1286
case htons(ETH_P_IP):
drivers/net/ethernet/sfc/ethtool_common.c
1035
spec.ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/ethtool_common.c
665
spec.ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/ethtool_common.c
743
spec.ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/ethtool_common.c
964
spec.ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/falcon/ethtool.c
1074
spec.ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/falcon/ethtool.c
1145
spec.ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/falcon/ethtool.c
813
spec.ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/falcon/ethtool.c
891
spec.ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/falcon/farch.c
1967
if (gen_spec->ether_type != htons(ETH_P_IP))
drivers/net/ethernet/sfc/falcon/farch.c
2070
gen_spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/falcon/filter.h
187
spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/falcon/filter.h
212
spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/falcon/rx.c
856
if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6))
drivers/net/ethernet/sfc/falcon/rx.c
871
if (fk.basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/falcon/rx.c
891
if (spec.ether_type == htons(ETH_P_IP))
drivers/net/ethernet/sfc/falcon/rx.c
969
if (spec->ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/falcon/selftest.c
391
payload->header.h_proto = htons(ETH_P_IP);
drivers/net/ethernet/sfc/filter.h
213
spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/filter.h
259
spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/mae.c
1496
htons(ETH_P_IP));
drivers/net/ethernet/sfc/mcdi_filters.c
136
ETH_P_IPV6 : ETH_P_IP);
drivers/net/ethernet/sfc/mcdi_filters.c
72
if (spec->ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/ptp.c
1380
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/ptp.c
1404
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/ptp.c
1722
likely(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/sfc/rx_common.c
602
if (spec->ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/rx_common.c
855
if (req->spec.ether_type == htons(ETH_P_IP))
drivers/net/ethernet/sfc/rx_common.c
871
if (req->spec.ether_type == htons(ETH_P_IP))
drivers/net/ethernet/sfc/rx_common.c
926
if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) {
drivers/net/ethernet/sfc/rx_common.c
946
if (fk.basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/selftest.c
388
payload->header.h_proto = htons(ETH_P_IP);
drivers/net/ethernet/sfc/siena/efx_common.c
1313
case htons(ETH_P_IP):
drivers/net/ethernet/sfc/siena/ethtool_common.c
1026
spec.ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/siena/ethtool_common.c
666
spec.ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/siena/ethtool_common.c
744
spec.ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/siena/ethtool_common.c
955
spec.ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/siena/farch.c
2058
if (gen_spec->ether_type != htons(ETH_P_IP))
drivers/net/ethernet/sfc/siena/farch.c
2161
gen_spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/siena/filter.h
213
spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/siena/filter.h
238
spec->ether_type = htons(ETH_P_IP);
drivers/net/ethernet/sfc/siena/ptp.c
1603
likely(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/sfc/siena/rx_common.c
589
if (spec->ether_type == htons(ETH_P_IP) &&
drivers/net/ethernet/sfc/siena/rx_common.c
845
if (req->spec.ether_type == htons(ETH_P_IP))
drivers/net/ethernet/sfc/siena/rx_common.c
861
if (req->spec.ether_type == htons(ETH_P_IP))
drivers/net/ethernet/sfc/siena/rx_common.c
917
if (fk.basic.n_proto != htons(ETH_P_IP) && fk.basic.n_proto != htons(ETH_P_IPV6)) {
drivers/net/ethernet/sfc/siena/rx_common.c
937
if (fk.basic.n_proto == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/siena/selftest.c
389
payload->header.h_proto = htons(ETH_P_IP);
drivers/net/ethernet/sfc/tc.c
307
!(match->value.eth_proto == htons(ETH_P_IP) ||
drivers/net/ethernet/sfc/tc_conntrack.c
148
if (conn->eth_proto != (ipv == 4 ? htons(ETH_P_IP)
drivers/net/ethernet/sfc/tc_conntrack.c
404
if (conn->eth_proto != htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/tc_encap_actions.c
354
efx_gen_tun_header_eth(encap, ETH_P_IP);
drivers/net/ethernet/sfc/tc_encap_actions.c
365
efx_gen_tun_header_eth(encap, ETH_P_IP);
drivers/net/ethernet/sfc/tx_tso.c
155
if (protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sfc/tx_tso.c
183
if (st->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sgi/ioc3-eth.c
319
if (eh->h_proto != htons(ETH_P_IP))
drivers/net/ethernet/socionext/netsec.c
1165
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4634
(proto == htons(ETH_P_IP) || proto == htons(ETH_P_IPV6));
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
119
ehdr->h_proto = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
124
ptr[3] = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
1279
tpriv->pt.type = svlan ? htons(ETH_P_8021Q) : htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
140
tag[1] = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
145
tag[3] = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
209
skb->protocol = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
334
tpriv->pt.type = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
908
tpriv->pt.type = htons(ETH_P_IP);
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
111
case ETH_P_IP:
drivers/net/ethernet/sun/cassini.c
2093
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sun/niu.c
6578
case cpu_to_be16(ETH_P_IP):
drivers/net/ethernet/sun/sunvnet_common.c
1175
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/sun/sunvnet_common.c
1234
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
1354
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
1370
if (skb->protocol == htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
313
if (skb->protocol != htons(ETH_P_IP))
drivers/net/ethernet/sun/sunvnet_common.c
420
if (skb->protocol == ETH_P_IP) {
drivers/net/ethernet/sun/sunvnet_common.c
429
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/toshiba/ps3_gelic_net.c
725
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1209
case htons(ETH_P_IP):
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1243
if (skb->inner_protocol == htons(ETH_P_IP) ||
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1274
case htons(ETH_P_IP):
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1377
case htons(ETH_P_IP):
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1473
case htons(ETH_P_IP):
drivers/net/ethernet/wangxun/libwx/wx_lib.c
3240
skb->inner_protocol != htons(ETH_P_IP) &&
drivers/net/ethernet/xilinx/ll_temac_main.c
1012
(skb->protocol == htons(ETH_P_IP)) &&
drivers/net/ethernet/xilinx/xilinx_emaclite.c
418
if (proto_type == ETH_P_IP) {
drivers/net/geneve.c
118
htons(ETH_P_IP) };
drivers/net/geneve.c
1380
} else if (ntohs(eth->h_proto) == ETH_P_IP) {
drivers/net/gtp.c
1285
case ETH_P_IP:
drivers/net/gtp.c
280
case ETH_P_IP:
drivers/net/gtp.c
300
*inner_proto = ETH_P_IP;
drivers/net/gtp.c
567
case ETH_P_IP:
drivers/net/hamradio/6pack.c
238
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/baycom_epp.c
759
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/bpqether.c
225
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/hdlcdrv.c
395
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/mkiss.c
524
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/scc.c
1645
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hamradio/yam.c
585
if (skb->protocol == htons(ETH_P_IP))
drivers/net/hyperv/hyperv_net.h
1098
if (flow.basic.n_proto == htons(ETH_P_IP))
drivers/net/hyperv/hyperv_net.h
1106
if (flow.basic.n_proto == htons(ETH_P_IP))
drivers/net/hyperv/hyperv_net.h
1117
if (flow.basic.n_proto == htons(ETH_P_IP))
drivers/net/hyperv/netvsc_drv.c
396
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/hyperv/netvsc_drv.c
574
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/hyperv/netvsc_drv.c
600
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/hyperv/netvsc_drv.c
807
skb->protocol == htons(ETH_P_IP)) {
drivers/net/ipvlan/ipvlan_core.c
165
case htons(ETH_P_IP): {
drivers/net/ipvlan/ipvlan_core.c
564
else if (skb->protocol == htons(ETH_P_IP))
drivers/net/mhi_net.c
214
skb->protocol = htons(ETH_P_IP);
drivers/net/netdevsim/dev.c
828
eth->h_proto = htons(ETH_P_IP);
drivers/net/netdevsim/dev.c
829
skb->protocol = htons(ETH_P_IP);
drivers/net/netdevsim/psample.c
55
eth->h_proto = htons(ETH_P_IP);
drivers/net/netdevsim/psample.c
56
skb->protocol = htons(ETH_P_IP);
drivers/net/netdevsim/psp.c
98
case htons(ETH_P_IP):
drivers/net/ovpn/bind.h
70
case htons(ETH_P_IP):
drivers/net/ovpn/io.c
375
case htons(ETH_P_IP):
drivers/net/ovpn/peer.c
210
case htons(ETH_P_IP):
drivers/net/ovpn/peer.c
386
case htons(ETH_P_IP):
drivers/net/ovpn/peer.c
749
case htons(ETH_P_IP):
drivers/net/ovpn/peer.c
876
case htons(ETH_P_IP):
drivers/net/ovpn/skb.h
51
proto = htons(ETH_P_IP);
drivers/net/phy/mscc/mscc_ptp.c
382
if (ethhdr->h_proto != htons(ETH_P_IP))
drivers/net/phy/mscc/mscc_ptp.c
991
ETH_P_IP);
drivers/net/phy/mscc/mscc_ptp.c
994
ETH_P_IP);
drivers/net/ppp/ppp_generic.c
348
case ETH_P_IP:
drivers/net/ppp/ppp_generic.c
367
ETH_P_IP,
drivers/net/slip/slip.c
370
skb->protocol = htons(ETH_P_IP);
drivers/net/thunderbolt/main.c
1035
if (protocol == htons(ETH_P_IP)) {
drivers/net/tun.c
1697
struct tun_pi pi = { 0, cpu_to_be16(ETH_P_IP) };
drivers/net/tun.c
1827
pi.proto = htons(ETH_P_IP);
drivers/net/usb/cdc_mbim.c
214
case htons(ETH_P_IP):
drivers/net/usb/cdc_mbim.c
378
proto = htons(ETH_P_IP);
drivers/net/usb/hso.c
926
odev->skb_rx_buf->protocol = cpu_to_be16(ETH_P_IP);
drivers/net/usb/lg-vl600.c
285
packet->h_proto = htons(ETH_P_IP);
drivers/net/usb/qmi_wwan.c
203
skbn->protocol = htons(ETH_P_IP);
drivers/net/usb/qmi_wwan.c
583
proto = htons(ETH_P_IP);
drivers/net/usb/r8152.c
2290
case htons(ETH_P_IP):
drivers/net/usb/r8152.c
2323
case htons(ETH_P_IP):
drivers/net/usb/sierra_net.c
206
return skb->protocol == cpu_to_be16(ETH_P_IP) ||
drivers/net/usb/sierra_net.c
833
eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP);
drivers/net/vmxnet3/vmxnet3_drv.c
1163
ctx.ipv4 = (vlan_get_protocol(skb) == cpu_to_be16(ETH_P_IP));
drivers/net/vmxnet3/vmxnet3_drv.c
1547
BUG_ON(hdr.eth->h_proto != htons(ETH_P_IP) &&
drivers/net/vmxnet3/vmxnet3_drv.c
1548
hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IP));
drivers/net/vmxnet3/vmxnet3_drv.c
1580
if (ip_proto == htons(ETH_P_IP)) {
drivers/net/vmxnet3/vmxnet3_ethtool.c
296
case htons(ETH_P_IP):
drivers/net/vrf.c
1408
err = vrf_add_mac_header_if_unset(skb, vrf_dev, ETH_P_IP,
drivers/net/vrf.c
553
case htons(ETH_P_IP):
drivers/net/vrf.c
865
skb->protocol = htons(ETH_P_IP);
drivers/net/vrf.c
918
skb->protocol = htons(ETH_P_IP);
drivers/net/vxlan/vxlan_core.c
1861
parp->ar_pro != htons(ETH_P_IP) ||
drivers/net/vxlan/vxlan_core.c
2110
case ETH_P_IP:
drivers/net/vxlan/vxlan_core.c
2507
(ntohs(eth->h_proto) == ETH_P_IP &&
drivers/net/vxlan/vxlan_core.c
2796
(ntohs(eth->h_proto) == ETH_P_IP ||
drivers/net/vxlan/vxlan_mdb.c
114
e->addr.proto = htons(ETH_P_IP);
drivers/net/vxlan/vxlan_mdb.c
1627
case htons(ETH_P_IP):
drivers/net/vxlan/vxlan_mdb.c
1664
case htons(ETH_P_IP):
drivers/net/vxlan/vxlan_mdb.c
347
case htons(ETH_P_IP):
drivers/net/vxlan/vxlan_mdb.c
386
case htons(ETH_P_IP):
drivers/net/vxlan/vxlan_mdb.c
642
if (entry->addr.proto != htons(ETH_P_IP) &&
drivers/net/wan/hdlc_cisco.c
130
case cpu_to_be16(ETH_P_IP):
drivers/net/wan/hdlc_fr.c
280
case htons(ETH_P_IP):
drivers/net/wan/hdlc_fr.c
951
skb->protocol = htons(ETH_P_IP);
drivers/net/wan/hdlc_ppp.c
151
return htons(ETH_P_IP);
drivers/net/wan/hdlc_ppp.c
177
case ETH_P_IP:
drivers/net/wan/hdlc_raw.c
26
return cpu_to_be16(ETH_P_IP);
drivers/net/wireguard/allowedips.c
399
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/allowedips.c
410
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/cookie.c
107
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/device.c
156
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/device.c
226
if (skb->protocol == htons(ETH_P_IP))
drivers/net/wireguard/ratelimiter.c
95
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireguard/receive.c
385
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireguard/selftest/ratelimiter.c
150
skb4->protocol = htons(ETH_P_IP);
drivers/net/wireguard/socket.c
239
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireless/ath/wil6210/txrx.c
1530
case htons(ETH_P_IP):
drivers/net/wireless/ath/wil6210/txrx.c
1676
case cpu_to_be16(ETH_P_IP):
drivers/net/wireless/intel/ipw2x00/libipw_tx.c
214
if (eth->h_proto != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/iwl-utils.c
23
bool ipv4 = (skb->protocol == htons(ETH_P_IP));
drivers/net/wireless/intel/iwlwifi/mei/net.c
309
case htons(ETH_P_IP):
drivers/net/wireless/intel/iwlwifi/mei/net.c
379
if (origskb->protocol != htons(ETH_P_IP) ||
drivers/net/wireless/intel/iwlwifi/mei/net.c
96
arp->ar_pro != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
2016
if (skb->protocol != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1608
(shdr->type != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
227
if (WARN_ONCE(skb->protocol != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
234
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
278
if (skb->protocol == htons(ETH_P_IP) && amsdu) {
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
6316
if (skb->protocol != htons(ETH_P_IP))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
167
(shdr->type != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
113
if (skb->protocol == htons(ETH_P_IP) && amsdu) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
61
(skb->protocol != htons(ETH_P_IP) &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
68
if (skb->protocol == htons(ETH_P_IP)) {
drivers/net/wireless/microchip/wilc1000/wlan.c
135
if (eth_hdr_ptr->h_proto != htons(ETH_P_IP))
drivers/net/wireless/microchip/wilc1000/wlan.c
320
case htons(ETH_P_IP):
drivers/net/wireless/realtek/rtlwifi/base.c
1505
if (ETH_P_IP == ether_type) {
drivers/net/wireless/realtek/rtw89/core.c
1115
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/wireless/realtek/rtw89/core.c
1126
if (skb->protocol == htons(ETH_P_IP) &&
drivers/net/wireless/realtek/rtw89/fw.c
2925
arp_hdr->ar_pro = htons(ETH_P_IP);
drivers/net/wireless/st/cw1200/pm.c
60
.type = __cpu_to_le16(ETH_P_IP),
drivers/net/wireless/ti/wlcore/cmd.c
1249
arp_hdr->ar_pro = cpu_to_be16(ETH_P_IP);
drivers/net/wwan/iosm/iosm_ipc_wwan.c
228
skb->protocol = htons(ETH_P_IP);
drivers/net/wwan/mhi_wwan_mbim.c
328
skbn->protocol = htons(ETH_P_IP);
drivers/net/wwan/qcom_bam_dmux.c
527
skb->protocol = htons(ETH_P_IP);
drivers/net/wwan/t7xx/t7xx_netdev.c
435
skb->protocol = htons(ETH_P_IP);
drivers/net/xen-netback/hash.c
163
case htons(ETH_P_IP):
drivers/net/xen-netback/hash.c
189
case htons(ETH_P_IP):
drivers/net/xen-netback/rx.c
310
skb->protocol == htons(ETH_P_IP) ?
drivers/net/xen-netback/rx.c
315
skb->protocol == htons(ETH_P_IP) ?
drivers/s390/net/ctcm_main.c
91
(header->type != ETH_P_IP)) {
drivers/s390/net/qeth_core.h
991
if ((proto == htons(ETH_P_IP) && ip_hdr(skb)->protocol == IPPROTO_UDP) ||
drivers/s390/net/qeth_core_main.c
3851
case htons(ETH_P_IP):
drivers/s390/net/qeth_core_main.c
5482
ETH_P_IP;
drivers/s390/net/qeth_core_main.c
5488
if (prot == ETH_P_IP)
drivers/s390/net/qeth_core_main.c
6899
case htons(ETH_P_IP):
drivers/s390/net/qeth_core_main.c
692
qeth_dst_check_rcu(skb, htons(ETH_P_IP)));
drivers/s390/net/qeth_l3_main.c
1586
case htons(ETH_P_IP):
drivers/s390/net/qeth_l3_main.c
1646
if (proto == htons(ETH_P_IP))
drivers/s390/net/qeth_l3_main.c
1651
if (proto == htons(ETH_P_IP) || IS_IQD(card)) {
drivers/s390/net/qeth_l3_main.c
1672
case htons(ETH_P_IP):
drivers/s390/net/qeth_l3_main.c
1750
case htons(ETH_P_IP):
drivers/s390/net/qeth_l3_main.c
1766
if (proto == htons(ETH_P_IP) || IS_IQD(card))
drivers/s390/net/qeth_l3_main.c
1815
if (vlan_get_protocol(skb) != htons(ETH_P_IP))
drivers/scsi/qedi/qedi_main.c
695
eh->h_proto != htons(ETH_P_IP) &&
drivers/staging/octeon/ethernet-tx.c
362
if ((skb->protocol == htons(ETH_P_IP)) &&
drivers/staging/octeon/ethernet-tx.c
574
if (skb->protocol == htons(ETH_P_IP)) {
drivers/staging/rtl8723bs/core/rtw_xmit.c
667
if (pattrib->ether_type == ETH_P_IP) {
drivers/staging/rtl8723bs/core/rtw_xmit.c
679
if (pattrib->ether_type == ETH_P_IP) {/* IP header */
drivers/staging/rtl8723bs/os_dep/os_intfs.c
328
case htons(ETH_P_IP):
drivers/staging/rtl8723bs/os_dep/os_intfs.c
364
case ETH_P_IP:
drivers/tty/n_gsm.c
3992
skb->protocol = htons(ETH_P_IP);
drivers/tty/n_gsm.c
4051
if (nc->protocol != htons(ETH_P_IP))
include/linux/mlx5/fs_helpers.h
57
ethertype = ETH_P_IP;
include/linux/netdevice.h
5265
case htons(ETH_P_IP):
include/linux/virtio_net.h
137
skb->protocol == htons(ETH_P_IP)) {
include/linux/virtio_net.h
16
return protocol == cpu_to_be16(ETH_P_IP);
include/linux/virtio_net.h
21
return protocol == cpu_to_be16(ETH_P_IP) ||
include/linux/virtio_net.h
362
htons(ETH_P_IP));
include/linux/virtio_net.h
38
skb->protocol = cpu_to_be16(ETH_P_IP);
include/net/inet_ecn.h
189
case cpu_to_be16(ETH_P_IP):
include/net/inet_ecn.h
208
case cpu_to_be16(ETH_P_IP):
include/net/inet_ecn.h
225
case cpu_to_be16(ETH_P_IP):
include/net/inet_ecn.h
306
case htons(ETH_P_IP):
include/net/inet_ecn.h
325
case htons(ETH_P_IP):
include/net/ip_tunnels.h
474
case htons(ETH_P_IP):
include/net/ip_tunnels.h
510
case htons(ETH_P_IP):
include/net/ip_tunnels.h
574
if (payload_protocol == htons(ETH_P_IP))
include/net/ip_tunnels.h
598
if (payload_protocol == htons(ETH_P_IP))
include/net/netfilter/nf_flow_table.h
387
return htons(ETH_P_IP);
include/net/netfilter/nf_queue.h
90
case htons(ETH_P_IP):
include/net/tun_proto.h
20
return htons(ETH_P_IP);
include/net/tun_proto.h
36
case htons(ETH_P_IP):
include/net/vxlan.h
373
case htons(ETH_P_IP):
include/trace/events/bridge.h
153
} else if (group->proto == htons(ETH_P_IP)) {
kernel/audit.c
2500
case htons(ETH_P_IP):
lib/test_bpf.c
14748
skb->protocol = htons(ETH_P_IP);
lib/test_bpf.c
14754
skb->vlan_proto = htons(ETH_P_IP);
lib/test_bpf.c
15027
skb[i]->protocol = htons(ETH_P_IP);
lib/test_bpf.c
3328
{ { 10, ETH_P_IP }, { 100, ETH_P_IP } },
net/802/fc.c
43
if (type == ETH_P_IP || type == ETH_P_ARP)
net/802/fddi.c
55
if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP)
net/802/fddi.c
59
if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP)
net/atm/br2684.c
233
case ETH_P_IP:
net/atm/br2684.c
395
if (type == htons(ETH_P_IP) &&
net/atm/br2684.c
461
skb->protocol = htons(ETH_P_IP);
net/atm/br2684.c
486
skb->protocol = htons(ETH_P_IP);
net/atm/clip.c
233
skb->protocol = htons(ETH_P_IP);
net/atm/mpc.c
584
if (eth->h_proto != htons(ETH_P_IP))
net/ax25/ax25_in.c
127
skb->protocol = htons(ETH_P_IP);
net/ax25/ax25_in.c
245
skb->protocol = htons(ETH_P_IP);
net/ax25/ax25_ip.c
81
case ETH_P_IP:
net/batman-adv/bridge_loop_avoidance.c
1135
if (arphdr->ar_pro != htons(ETH_P_IP))
net/batman-adv/distributed-arp-table.c
1017
if (arphdr->ar_pro != htons(ETH_P_IP))
net/batman-adv/distributed-arp-table.c
1476
if (proto != htons(ETH_P_IP))
net/batman-adv/gateway_client.c
585
case htons(ETH_P_IP):
net/batman-adv/gateway_client.c
621
case htons(ETH_P_IP):
net/batman-adv/main.c
363
case htons(ETH_P_IP):
net/batman-adv/multicast.c
1011
*is_routable = ETH_P_IP;
net/batman-adv/multicast.c
1106
case ETH_P_IP:
net/batman-adv/multicast.c
1136
case ETH_P_IP:
net/batman-adv/multicast.c
1160
case ETH_P_IP:
net/batman-adv/multicast.c
1428
case ETH_P_IP:
net/batman-adv/multicast.c
1531
case ETH_P_IP:
net/batman-adv/multicast.c
203
if (!br_multicast_has_router_adjacent(dev, ETH_P_IP))
net/batman-adv/multicast.c
301
qr4->exists = br_multicast_has_querier_anywhere(dev, ETH_P_IP);
net/batman-adv/multicast.c
302
qr4->shadowing = br_multicast_has_querier_adjacent(dev, ETH_P_IP);
net/batman-adv/multicast.c
559
if (src->proto == htons(ETH_P_IP))
net/batman-adv/multicast.c
602
if (br_ip_entry->addr.proto == htons(ETH_P_IP)) {
net/batman-adv/multicast_forw.c
287
case htons(ETH_P_IP):
net/batman-adv/multicast_forw.c
333
case htons(ETH_P_IP):
net/bluetooth/bnep/core.c
92
s->proto_filter[0].start = ETH_P_IP;
net/bpf/test_run.c
1122
case htons(ETH_P_IP):
net/bpf/test_run.c
1702
return htons(ETH_P_IP);
net/bpf/test_run.c
1776
case htons(ETH_P_IP):
net/bridge/br_arp_nd_proxy.c
143
if (parp->ar_pro != htons(ETH_P_IP) ||
net/bridge/br_mdb.c
1277
if (cfg->entry->addr.proto == htons(ETH_P_IP) &&
net/bridge/br_mdb.c
158
case htons(ETH_P_IP):
net/bridge/br_mdb.c
195
case htons(ETH_P_IP):
net/bridge/br_mdb.c
256
if (mp->addr.proto == htons(ETH_P_IP)) {
net/bridge/br_mdb.c
279
case htons(ETH_P_IP):
net/bridge/br_mdb.c
472
case htons(ETH_P_IP):
net/bridge/br_mdb.c
673
case htons(ETH_P_IP):
net/bridge/br_multicast.c
1248
case htons(ETH_P_IP):
net/bridge/br_multicast.c
126
br_dst.proto = htons(ETH_P_IP);
net/bridge/br_multicast.c
1344
case htons(ETH_P_IP):
net/bridge/br_multicast.c
1370
case htons(ETH_P_IP):
net/bridge/br_multicast.c
1591
br_group.proto = htons(ETH_P_IP);
net/bridge/br_multicast.c
167
case htons(ETH_P_IP):
net/bridge/br_multicast.c
1771
if (ip->proto == htons(ETH_P_IP))
net/bridge/br_multicast.c
1867
br_group.proto = htons(ETH_P_IP);
net/bridge/br_multicast.c
1957
if (pg->key.addr.proto == htons(ETH_P_IP))
net/bridge/br_multicast.c
2244
if (pg->key.addr.proto == htons(ETH_P_IP))
net/bridge/br_multicast.c
2289
if (pg->key.addr.proto == htons(ETH_P_IP))
net/bridge/br_multicast.c
3116
case htons(ETH_P_IP):
net/bridge/br_multicast.c
3527
saddr.proto = htons(ETH_P_IP);
net/bridge/br_multicast.c
3772
br_group.proto = htons(ETH_P_IP);
net/bridge/br_multicast.c
3827
case htons(ETH_P_IP):
net/bridge/br_multicast.c
4029
case htons(ETH_P_IP):
net/bridge/br_multicast.c
4976
case ETH_P_IP:
net/bridge/br_multicast.c
5024
case ETH_P_IP:
net/bridge/br_multicast.c
5068
case htons(ETH_P_IP):
net/bridge/br_multicast.c
975
skb->protocol = htons(ETH_P_IP);
net/bridge/br_multicast.c
982
eth->h_proto = htons(ETH_P_IP);
net/bridge/br_multicast_eht.c
384
case htons(ETH_P_IP):
net/bridge/br_netfilter_hooks.c
531
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
641
if (skb->protocol == htons(ETH_P_IP))
net/bridge/br_netfilter_hooks.c
703
skb->protocol = htons(ETH_P_IP);
net/bridge/br_netfilter_hooks.c
73
(!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
net/bridge/br_netfilter_hooks.c
863
skb->protocol == htons(ETH_P_IP)) {
net/bridge/br_netfilter_hooks.c
95
return vlan_proto(skb) == htons(ETH_P_IP) && brnet->filter_vlan_tagged;
net/bridge/br_netfilter_hooks.c
962
skb->protocol = htons(ETH_P_IP);
net/bridge/br_private.h
1144
if (skb->protocol == htons(ETH_P_IP))
net/bridge/br_private.h
1183
case (htons(ETH_P_IP)):
net/bridge/br_private.h
1199
case htons(ETH_P_IP):
net/bridge/br_private.h
1215
case htons(ETH_P_IP):
net/bridge/br_switchdev.c
538
if (mp->addr.proto == htons(ETH_P_IP))
net/bridge/netfilter/ebt_among.c
104
if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
net/bridge/netfilter/ebt_among.c
73
if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
net/bridge/netfilter/ebt_arp.c
43
if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP))
net/bridge/netfilter/ebt_arpreply.c
36
ap->ar_pro != htons(ETH_P_IP) ||
net/bridge/netfilter/ebt_ip.c
109
if (e->ethproto != htons(ETH_P_IP) ||
net/bridge/netfilter/ebt_log.c
98
htons(ETH_P_IP)) {
net/bridge/netfilter/nf_conntrack_bridge.c
254
case htons(ETH_P_IP):
net/bridge/netfilter/nf_conntrack_bridge.c
349
case htons(ETH_P_IP):
net/bridge/netfilter/nft_reject_bridge.c
122
case htons(ETH_P_IP):
net/caif/caif_usb.c
60
skb->protocol = htons(ETH_P_IP);
net/caif/chnl_net.c
85
skb->protocol = htons(ETH_P_IP);
net/core/dev.c
5922
case htons(ETH_P_IP):
net/core/filter.c
12250
case htons(ETH_P_IP):
net/core/filter.c
2439
if (skb->protocol == htons(ETH_P_IP))
net/core/filter.c
3396
bpf_skb_change_protocol(skb, ETH_P_IP);
net/core/filter.c
3406
if (from_proto == htons(ETH_P_IP) &&
net/core/filter.c
3411
to_proto == htons(ETH_P_IP))
net/core/filter.c
3478
case htons(ETH_P_IP):
net/core/filter.c
3524
if (skb->protocol != htons(ETH_P_IP) &&
net/core/filter.c
3586
if (skb->protocol == htons(ETH_P_IP) &&
net/core/filter.c
3591
bpf_skb_change_protocol(skb, ETH_P_IP);
net/core/filter.c
3642
if (skb->protocol == htons(ETH_P_IP) &&
net/core/filter.c
3647
bpf_skb_change_protocol(skb, ETH_P_IP);
net/core/filter.c
3723
if (unlikely(proto != htons(ETH_P_IP) &&
net/core/filter.c
7490
case cpu_to_be16(ETH_P_IP):
net/core/filter.c
7963
if (skb->protocol != htons(ETH_P_IP) &&
net/core/flow_dissector.c
1199
case htons(ETH_P_IP): {
net/core/flow_dissector.c
1389
proto = htons(ETH_P_IP);
net/core/flow_dissector.c
1604
proto = htons(ETH_P_IP);
net/core/flow_dissector.c
597
arp->ar_pro != htons(ETH_P_IP) ||
net/core/flow_dissector.c
753
*p_proto = htons(ETH_P_IP);
net/core/flow_dissector.c
958
if (flow_keys->addr_proto == ETH_P_IP &&
net/core/lwt_bpf.c
188
if (skb->protocol == htons(ETH_P_IP))
net/core/lwt_bpf.c
641
skb->protocol = htons(ETH_P_IP);
net/core/lwt_bpf.c
94
if (skb->protocol == htons(ETH_P_IP)) {
net/core/netpoll.c
461
skb->protocol = htons(ETH_P_IP);
net/core/netpoll.c
493
eth->h_proto = htons(ETH_P_IP);
net/core/pktgen.c
2935
__be16 protocol = htons(ETH_P_IP);
net/core/pktgen.c
2985
*vlan_encapsulated_proto = htons(ETH_P_IP);
net/core/rtnetlink.c
6594
if (entry->addr.proto != htons(ETH_P_IP) &&
net/core/rtnetlink.c
6666
if (entry->addr.proto == htons(ETH_P_IP)) {
net/core/selftests.c
151
skb->protocol = htons(ETH_P_IP);
net/core/selftests.c
247
tpriv->pt.type = htons(ETH_P_IP);
net/core/selftests.c
65
ehdr->h_proto = htons(ETH_P_IP);
net/core/skbuff.c
6031
case htons(ETH_P_IP):
net/ethtool/ioctl.c
3676
match->key.basic.n_proto = htons(ETH_P_IP);
net/ipv4/af_inet.c
1609
skb_set_inner_protocol(skb, cpu_to_be16(ETH_P_IP));
net/ipv4/af_inet.c
1877
.type = cpu_to_be16(ETH_P_IP),
net/ipv4/af_inet.c
1891
.type = cpu_to_be16(ETH_P_IP),
net/ipv4/arp.c
156
.protocol = cpu_to_be16(ETH_P_IP),
net/ipv4/arp.c
596
arp->ar_pro = htons(ETH_P_IP);
net/ipv4/arp.c
616
arp->ar_pro = htons(ETH_P_IP);
net/ipv4/arp.c
730
if (arp->ar_pro != htons(ETH_P_IP) ||
net/ipv4/arp.c
748
arp->ar_pro != htons(ETH_P_IP))
net/ipv4/esp4_offload.c
128
: htons(ETH_P_IP);
net/ipv4/ip_fragment.c
512
if (skb->protocol != htons(ETH_P_IP))
net/ipv4/ip_gre.c
240
if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IP),
net/ipv4/ip_gre.c
454
hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IP), 0);
net/ipv4/ip_gre.c
584
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/ip_output.c
118
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
377
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_output.c
436
skb->protocol = htons(ETH_P_IP);
net/ipv4/ip_tunnel.c
535
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ip_tunnel.c
594
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel.c
640
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel.c
708
} else if (payload_protocol == htons(ETH_P_IP)) {
net/ipv4/ip_tunnel.c
753
if (payload_protocol == htons(ETH_P_IP)) {
net/ipv4/ip_tunnel.c
802
if (payload_protocol == htons(ETH_P_IP) && !tunnel->ignore_df)
net/ipv4/ip_tunnel.c
823
if (payload_protocol == htons(ETH_P_IP))
net/ipv4/ip_tunnel_core.c
1110
return htons(ETH_P_IP);
net/ipv4/ip_tunnel_core.c
445
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/ip_vti.c
182
case htons(ETH_P_IP): {
net/ipv4/ip_vti.c
243
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ip_vti.c
292
case htons(ETH_P_IP):
net/ipv4/ipconfig.c
531
if (rarp->ar_pro != htons(ETH_P_IP))
net/ipv4/ipconfig.c
664
.type = cpu_to_be16(ETH_P_IP),
net/ipv4/ipconfig.c
881
skb->protocol = htons(ETH_P_IP);
net/ipv4/ipip.c
205
.proto = htons(ETH_P_IP),
net/ipv4/ipip.c
293
case htons(ETH_P_IP):
net/ipv4/ipmr.c
625
skb->protocol = htons(ETH_P_IP);
net/ipv4/netfilter/nf_dup_ipv4.c
46
skb->protocol = htons(ETH_P_IP);
net/ipv4/netfilter/nf_reject_ipv4.c
221
nskb->protocol = htons(ETH_P_IP);
net/ipv4/ping.c
167
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
195
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/ping.c
502
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
536
if (skb->protocol == htons(ETH_P_IP)) {
net/ipv4/ping.c
924
else if (skb->protocol == htons(ETH_P_IP) &&
net/ipv4/raw.c
360
skb->protocol = htons(ETH_P_IP);
net/ipv4/route.c
1721
if (skb->protocol != htons(ETH_P_IP))
net/ipv4/route.c
1845
skb->protocol == htons(ETH_P_IP)) {
net/ipv4/route.c
1854
if (skb->protocol != htons(ETH_P_IP)) {
net/ipv4/route.c
2398
if (skb->protocol != htons(ETH_P_IP)) {
net/ipv4/route.c
3176
skb->protocol = htons(ETH_P_IP);
net/ipv4/tcp.c
4435
if (skb->protocol == htons(ETH_P_IP))
net/ipv4/udp.c
1802
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/esp6_offload.c
163
__be16 type = inner_mode->family == AF_INET ? htons(ETH_P_IP)
net/ipv6/exthdrs.c
417
skb->protocol = htons(ETH_P_IP);
net/ipv6/ip6_gre.c
1017
case htons(ETH_P_IP):
net/ipv6/ip6_gre.c
1068
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/ip6_gre.c
892
case htons(ETH_P_IP):
net/ipv6/ip6_gre.c
948
if (skb->protocol == htons(ETH_P_IP) &&
net/ipv6/ip6_tunnel.c
1141
} else if (payload_protocol == htons(ETH_P_IP)) {
net/ipv6/ip6_tunnel.c
1252
if (payload_protocol == htons(ETH_P_IP))
net/ipv6/ip6_tunnel.c
1438
case htons(ETH_P_IP):
net/ipv6/ip6_tunnel.c
905
if (tpi->proto == htons(ETH_P_IP))
net/ipv6/ip6_tunnel.c
920
.proto = htons(ETH_P_IP),
net/ipv6/ip6_vti.c
453
case htons(ETH_P_IP): {
net/ipv6/ip6_vti.c
569
case htons(ETH_P_IP):
net/ipv6/seg6_iptunnel.c
408
else if (skb->protocol == htons(ETH_P_IP))
net/ipv6/seg6_iptunnel.c
538
case htons(ETH_P_IP):
net/ipv6/seg6_iptunnel.c
623
case htons(ETH_P_IP):
net/ipv6/seg6_local.c
1145
protocol = htons(ETH_P_IP);
net/ipv6/seg6_local.c
991
skb->protocol = htons(ETH_P_IP);
net/ipv6/sit.c
1067
case htons(ETH_P_IP):
net/ipv6/sit.c
742
.proto = htons(ETH_P_IP),
net/ipv6/tcp_ipv6.c
1284
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
1370
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/tcp_ipv6.c
1548
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/udp.c
499
is_udp4 = (skb->protocol == htons(ETH_P_IP));
net/ipv6/xfrm6_input.c
163
if (skb->protocol == htons(ETH_P_IP))
net/ipv6/xfrm6_input.c
189
if (skb->protocol == htons(ETH_P_IP))
net/mac80211/tx.c
4406
case htons(ETH_P_IP):
net/mpls/af_mpls.c
167
} else if (skb->protocol == htons(ETH_P_IP)) {
net/mpls/af_mpls.c
321
skb->protocol = htons(ETH_P_IP);
net/mptcp/subflow.c
711
if (skb->protocol == htons(ETH_P_IP))
net/netfilter/ipvs/ip_vs_core.c
1557
if (type != htons(ETH_P_IP))
net/netfilter/ipvs/ip_vs_xmit.c
1101
htons(ETH_P_IP) : htons(ETH_P_IPV6);
net/netfilter/nf_flow_table_bpf.c
82
proto = htons(ETH_P_IP);
net/netfilter/nf_flow_table_inet.c
36
case htons(ETH_P_IP):
net/netfilter/nf_flow_table_ip.c
195
case htons(ETH_P_IP):
net/netfilter/nf_flow_table_ip.c
420
case htons(ETH_P_IP):
net/netfilter/nf_flow_table_ip.c
460
if (skb->protocol == htons(ETH_P_IP) ||
net/netfilter/nf_flow_table_ip.c
488
if (!nf_flow_skb_encap_protocol(ctx, skb, htons(ETH_P_IP)))
net/netfilter/nf_flow_table_ip.c
560
case htons(ETH_P_IP):
net/netfilter/nf_flow_table_offload.c
151
key->basic.n_proto = htons(ETH_P_IP);
net/netfilter/nf_log_syslog.c
938
case htons(ETH_P_IP):
net/netfilter/nf_nat_ovs.c
30
if (proto == htons(ETH_P_IP) &&
net/netfilter/nf_synproxy_core.c
431
nskb->protocol = htons(ETH_P_IP);
net/netfilter/nfnetlink_queue.c
1059
skb->protocol = htons(ETH_P_IP);
net/netfilter/nft_chain_filter.c
171
case htons(ETH_P_IP):
net/netfilter/nft_chain_filter.c
240
case htons(ETH_P_IP):
net/netfilter/nft_chain_filter.c
295
case htons(ETH_P_IP):
net/netfilter/nft_exthdr.c
149
if (skb->protocol != htons(ETH_P_IP))
net/netfilter/nft_fib_netdev.c
28
case ETH_P_IP:
net/netfilter/nft_fwd_netdev.c
110
if (skb->protocol != htons(ETH_P_IP)) {
net/netfilter/nft_inner.c
106
llproto = htons(ETH_P_IP);
net/netfilter/nft_inner.c
123
case htons(ETH_P_IP): {
net/netfilter/nft_inner.c
75
case htons(ETH_P_IP):
net/netfilter/nft_meta.c
97
case htons(ETH_P_IP): {
net/netfilter/nft_payload.c
462
case htons(ETH_P_IP):
net/netfilter/nft_reject_netdev.c
97
case htons(ETH_P_IP):
net/netfilter/nft_synproxy.c
141
case htons(ETH_P_IP):
net/netrom/nr_dev.c
52
skb->protocol = htons(ETH_P_IP);
net/openvswitch/actions.c
1190
} else if (skb->protocol == htons(ETH_P_IP)) {
net/openvswitch/actions.c
782
if (key->eth.type == htons(ETH_P_IP)) {
net/openvswitch/conntrack.c
112
case ETH_P_IP:
net/openvswitch/conntrack.c
216
if (key->eth.type == htons(ETH_P_IP) &&
net/openvswitch/conntrack.c
310
if (swkey->eth.type == htons(ETH_P_IP)) {
net/openvswitch/conntrack.c
623
if (key->eth.type == htons(ETH_P_IP))
net/openvswitch/conntrack.c
645
if (key->eth.type == htons(ETH_P_IP))
net/openvswitch/flow.c
1108
key->eth.type != htons(ETH_P_IP))
net/openvswitch/flow.c
684
if (key->eth.type == htons(ETH_P_IP)) {
net/openvswitch/flow.c
768
arp->ar_pro == htons(ETH_P_IP) &&
net/openvswitch/flow_netlink.c
205
if (match->key->eth.type == htons(ETH_P_IP)) {
net/openvswitch/flow_netlink.c
2087
if (swkey->eth.type == htons(ETH_P_IP)) {
net/openvswitch/flow_netlink.c
2156
if ((swkey->eth.type == htons(ETH_P_IP) ||
net/openvswitch/flow_netlink.c
2190
} else if (swkey->eth.type == htons(ETH_P_IP) &&
net/openvswitch/flow_netlink.c
2887
if (eth_type != htons(ETH_P_IP))
net/openvswitch/flow_netlink.c
2938
if ((eth_type != htons(ETH_P_IP) &&
net/openvswitch/flow_netlink.c
2946
if ((eth_type != htons(ETH_P_IP) &&
net/openvswitch/flow_netlink.c
2961
if ((eth_type != htons(ETH_P_IP) &&
net/openvswitch/flow_netlink.c
3266
(eth_type != htons(ETH_P_IP) &&
net/openvswitch/flow_netlink.c
3294
(eth_type != htons(ETH_P_IP) &&
net/phonet/pep-gprs.c
184
case htons(ETH_P_IP):
net/phonet/pep-gprs.c
46
return htons(ETH_P_IP);
net/psp/psp_main.c
240
if (skb->protocol == htons(ETH_P_IP)) {
net/psp/psp_main.c
284
if (proto == htons(ETH_P_IP))
net/psp/psp_main.c
294
if (proto == htons(ETH_P_IP)) {
net/psp/psp_main.c
329
if (proto == htons(ETH_P_IP)) {
net/rxrpc/utils.c
21
case ETH_P_IP:
net/sched/act_connmark.c
50
case htons(ETH_P_IP):
net/sched/act_csum.c
592
case cpu_to_be16(ETH_P_IP):
net/sched/act_ct.c
792
case htons(ETH_P_IP):
net/sched/act_ctinfo.c
100
case htons(ETH_P_IP):
net/sched/act_pedit.c
339
case htons(ETH_P_IP): {
net/sched/act_skbedit.c
58
case htons(ETH_P_IP):
net/sched/act_skbmod.c
53
case cpu_to_be16(ETH_P_IP):
net/sched/cls_flow.c
156
case htons(ETH_P_IP):
net/sched/cls_flow.c
169
case htons(ETH_P_IP):
net/sched/cls_flower.c
1145
key->basic.n_proto = htons(ETH_P_IP);
net/sched/cls_flower.c
1925
if (key->basic.n_proto == htons(ETH_P_IP) ||
net/sched/cls_flower.c
1977
} else if (key->basic.n_proto == htons(ETH_P_IP) &&
net/sched/cls_flower.c
3498
if ((key->basic.n_proto == htons(ETH_P_IP) ||
net/sched/cls_flower.c
3561
else if (key->basic.n_proto == htons(ETH_P_IP) &&
net/sched/em_ipset.c
63
case htons(ETH_P_IP):
net/sched/em_ipt.c
216
case htons(ETH_P_IP):
net/sched/sch_cake.c
1622
case htons(ETH_P_IP):
net/sched/sch_cake.c
595
if (skb_protocol(skb, true) != htons(ETH_P_IP))
net/sched/sch_dualpi2.c
313
case htons(ETH_P_IP):
net/sched/sch_frag.c
98
if (skb_protocol(skb, true) == htons(ETH_P_IP)) {
net/tipc/udp_media.c
108
if (ntohs(addr->proto) == ETH_P_IP)
net/tipc/udp_media.c
134
if (ntohs(ua->proto) == ETH_P_IP)
net/tipc/udp_media.c
179
if (dst->proto == htons(ETH_P_IP)) {
net/tipc/udp_media.c
323
if (ntohs(addr->proto) == ETH_P_IP)
net/tipc/udp_media.c
348
src.proto = htons(ETH_P_IP);
net/tipc/udp_media.c
414
if (ntohs(remote->proto) == ETH_P_IP) {
net/tipc/udp_media.c
432
if (ntohs(addr->proto) == ETH_P_IP) {
net/tipc/udp_media.c
594
addr->proto = htons(ETH_P_IP);
net/tipc/udp_media.c
729
if (local.proto == htons(ETH_P_IP)) {
net/wireless/util.c
965
case htons(ETH_P_IP):
net/xfrm/xfrm_input.c
187
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_input.c
241
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_interface_core.c
550
case htons(ETH_P_IP):
net/xfrm/xfrm_iptfs.c
1005
protocol = cpu_to_be16(ETH_P_IP);
net/xfrm/xfrm_iptfs.c
2202
skb->protocol = x->outer_mode.family == AF_INET ? htons(ETH_P_IP) :
net/xfrm/xfrm_iptfs.c
683
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
414
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
737
case ETH_P_IP:
net/xfrm/xfrm_output.c
848
skb->protocol = htons(ETH_P_IP);
net/xfrm/xfrm_output.c
938
case htons(ETH_P_IP):
net/xfrm/xfrm_output.c
952
if (skb->protocol == htons(ETH_P_IP))
samples/bpf/parse_ldabs.c
32
if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP)
samples/bpf/parse_simple.c
39
if (eth->h_proto != htons(ETH_P_IP))
samples/bpf/parse_varlen.c
144
if (h_proto == htons(ETH_P_IP))
samples/bpf/sockex2_kern.c
119
if (likely(proto == ETH_P_IP))
samples/bpf/sockex2_kern.c
157
if (proto == ETH_P_IP)
samples/bpf/sockex3_kern.c
140
parse_eth_proto(skb, ETH_P_IP);
samples/bpf/sockex3_kern.c
241
parse_eth_proto(skb, ETH_P_IP);
samples/bpf/sockex3_kern.c
284
case ETH_P_IP:
samples/bpf/tc_l2_redirect_kern.c
122
if (eth->h_proto == htons(ETH_P_IP)) {
samples/bpf/tc_l2_redirect_kern.c
161
if (eth->h_proto == htons(ETH_P_IP)) {
samples/bpf/tc_l2_redirect_kern.c
210
if (eth->h_proto == htons(ETH_P_IP)) {
samples/bpf/tc_l2_redirect_kern.c
50
if (eth_proto == htons(ETH_P_IP))
samples/bpf/tc_l2_redirect_kern.c
73
if (eth->h_proto == htons(ETH_P_IP)) {
samples/bpf/test_lwt_bpf.c
171
ehdr.h_proto = bpf_htons(ETH_P_IP);
samples/bpf/xdp_adjust_tail_kern.c
150
if (h_proto == htons(ETH_P_IP))
samples/bpf/xdp_fwd_kern.c
133
if (h_proto == htons(ETH_P_IP))
samples/bpf/xdp_fwd_kern.c
62
if (h_proto == htons(ETH_P_IP)) {
samples/bpf/xdp_router_ipv4.bpf.c
109
case ETH_P_IP: {
samples/bpf/xdp_tx_iptunnel_kern.c
127
set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP));
samples/bpf/xdp_tx_iptunnel_kern.c
228
if (h_proto == htons(ETH_P_IP))
security/selinux/hooks.c
5315
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5406
if (skb && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5499
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/selinux/hooks.c
5754
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4265
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4395
if (skb->protocol == htons(ETH_P_IP))
security/smack/smack_lsm.c
4470
if (skb->protocol == htons(ETH_P_IP))
tools/testing/selftests/bpf/network_helpers.c
1065
} else if (proto == ETH_P_IP) {
tools/testing/selftests/bpf/network_helpers.c
53
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/cls_redirect.c
180
.eth = { .h_proto = htons(ETH_P_IP) },
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
102
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
113
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
115
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
146
.vlan_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
157
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
159
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
192
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
205
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
207
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
219
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
231
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
233
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
362
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
379
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
381
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
391
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
408
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
410
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
419
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
438
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
444
.protocol = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
459
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
461
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
471
.eth.h_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
489
.addr_proto = ETH_P_IP,
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
491
.n_proto = __bpf_constant_htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
297
test->cfg_l3_inner == PF_INET ? ETH_P_IP :
tools/testing/selftests/bpf/prog_tests/lwt_redirect.c
111
.sll_protocol = htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/lwt_redirect.c
148
if (eth->h_proto == htons(ETH_P_IP))
tools/testing/selftests/bpf/prog_tests/select_reuseport.c
269
expected.eth_protocol = htons(ETH_P_IP);
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c
350
u16 protocol = ETH_P_IP;
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
212
.h_proto = htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c
177
.h_proto = htons(ETH_P_IP),
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
166
eth->h_proto = htons(ETH_P_IP);
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
298
ASSERT_EQ(eth->h_proto, htons(ETH_P_IP), "eth->h_proto");
tools/testing/selftests/bpf/progs/bpf_flow.c
121
case bpf_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/bpf_flow.c
148
if (keys->n_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/bpf_flow.c
186
return parse_eth_proto(skb, bpf_htons(ETH_P_IP));
tools/testing/selftests/bpf/progs/bpf_flow.c
291
keys->addr_proto = ETH_P_IP;
tools/testing/selftests/bpf/progs/exceptions.c
10
#ifndef ETH_P_IP
tools/testing/selftests/bpf/progs/exceptions.c
35
if (i == ETH_P_IP)
tools/testing/selftests/bpf/progs/ip_check_defrag.c
90
case ETH_P_IP:
tools/testing/selftests/bpf/progs/test_assign_reuse.c
117
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
189
if (eth->h_proto != bpf_htons(ETH_P_IP) &&
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
80
case bpf_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/test_cls_redirect.c
411
uint16_t proto = ETH_P_IP;
tools/testing/selftests/bpf/progs/test_cls_redirect.c
945
if (skb->protocol != bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
304
uint16_t proto = ETH_P_IP;
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
857
if (skb->protocol != bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_l4lb.c
464
if (eth_proto == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
463
if (eth_proto == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
474
if (eth_proto == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_migrate_reuseport.c
56
case ETH_P_IP: {
tools/testing/selftests/bpf/progs/test_pkt_access.c
115
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c
82
if (data_check.eth_protocol == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_sk_assign.c
68
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c
29
if (eth_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/test_tc_dtime.c
151
case __bpf_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/test_tc_edt.c
105
if (skb->protocol == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_link.c
38
if (skb->protocol != __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_link.c
42
seen_eth = eth.h_proto == bpf_htons(ETH_P_IP);
tools/testing/selftests/bpf/progs/test_tc_link.c
96
if (skb->protocol != __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_neigh.c
118
case __bpf_constant_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/test_tc_neigh.c
93
case __bpf_constant_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/test_tc_neigh_fib.c
98
case __bpf_constant_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
241
eth.h_proto = bpf_htons(ETH_P_IP);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
429
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
430
return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
438
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
439
return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
447
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
456
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
465
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
466
return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
474
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
483
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
492
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
504
return encap_ipv4(skb, IPPROTO_IPV6, ETH_P_IP);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
521
if (skb->protocol == __bpf_constant_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
692
case __bpf_constant_htons(ETH_P_IP):
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
83
case ETH_P_IP:
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
447
if (eth->h_proto != bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_xdp.c
127
set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
tools/testing/selftests/bpf/progs/test_xdp.c
225
if (h_proto == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
132
set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
247
if (h_proto == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_xdp_loop.c
123
set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
tools/testing/selftests/bpf/progs/test_xdp_loop.c
221
if (h_proto == bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/test_xdp_meta.c
661
err = bpf_skb_change_proto(ctx, bpf_htons(ETH_P_IP), 0);
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
786
if (eth_proto == ETH_P_IP)
tools/testing/selftests/bpf/progs/vrf_socket_lookup.c
29
if (eth->h_proto != bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/progs/xdp_features.c
77
if (eh->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/xdp_flowtable.c
83
case bpf_htons(ETH_P_IP): {
tools/testing/selftests/bpf/progs/xdp_hw_metadata.c
50
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/xdp_metadata.c
53
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/xdp_redirect_map.c
51
if (bpf_htons(eth->h_proto) == ETH_P_IP) {
tools/testing/selftests/bpf/progs/xdp_redirect_map.c
98
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/bpf/progs/xdp_redirect_multi_kern.c
66
if (h_proto == ETH_P_IP) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
383
case ETH_P_IP:
tools/testing/selftests/bpf/progs/xdping_kern.c
71
if (eth->h_proto != bpf_htons(ETH_P_IP))
tools/testing/selftests/bpf/xdp_hw_metadata.c
382
if (eth->h_proto == htons(ETH_P_IP)) {
tools/testing/selftests/bpf/xdp_metadata.h
4
#ifndef ETH_P_IP
tools/testing/selftests/drivers/net/gro.c
1427
ethhdr_proto = htons(ETH_P_IP);
tools/testing/selftests/drivers/net/gro.c
1436
ethhdr_proto = htons(ETH_P_IP);
tools/testing/selftests/drivers/net/hw/toeplitz.c
392
ll.sll_protocol = cfg_family == AF_INET ? htons(ETH_P_IP) :
tools/testing/selftests/net/lib/csum.c
427
addr.sll_protocol = htons(ETH_P_IP);
tools/testing/selftests/net/lib/csum.c
534
laddr.sll_protocol = htons(ETH_P_IP);
tools/testing/selftests/net/lib/xdp_native.bpf.c
192
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/net/lib/xdp_native.bpf.c
282
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/net/lib/xdp_native.bpf.c
88
if (eth->h_proto == bpf_htons(ETH_P_IP)) {
tools/testing/selftests/net/msg_zerocopy.c
504
uint16_t proto = cfg_family == PF_INET ? ETH_P_IP : ETH_P_IPV6;
tools/testing/selftests/net/nat6to4.bpf.c
130
if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IP), 0))
tools/testing/selftests/net/nat6to4.bpf.c
159
if (skb->protocol != bpf_htons(ETH_P_IP))
tools/testing/selftests/net/nat6to4.bpf.c
167
if (eth->h_proto != bpf_htons(ETH_P_IP))
tools/testing/selftests/net/nat6to4.bpf.c
92
eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype
tools/testing/selftests/net/psock_fanout.c
107
addr.sll_protocol = htons(ETH_P_IP);
tools/testing/selftests/net/psock_snd.c
109
tag[1] = htons(ETH_P_IP);
tools/testing/selftests/net/psock_snd.c
113
eth->h_proto = htons(ETH_P_IP);
tools/testing/selftests/net/psock_snd.c
175
laddr.sll_protocol = htons(ETH_P_IP);
tools/testing/selftests/net/psock_snd.c
202
laddr.sll_protocol = htons(ETH_P_IP);
tools/testing/selftests/net/psock_tpacket.c
134
if (eth->h_proto != htons(ETH_P_IP)) {
tools/testing/selftests/net/psock_tpacket.c
154
eth->h_proto = htons(ETH_P_IP);
tools/testing/selftests/net/tap.c
313
cur += build_eth(cur, ETH_P_IP);
tools/testing/selftests/net/tap.c
329
cur += build_eth(cur, ETH_P_IP);
tools/testing/selftests/net/tun.c
813
proto = outer_family == AF_INET ? ETH_P_IP : ETH_P_IPV6;
tools/testing/selftests/net/tun.c
830
proto = inner_family == AF_INET ? ETH_P_IP : ETH_P_IPV6;
tools/testing/selftests/net/txring_overwrite.c
51
eth->h_proto = htons(ETH_P_IP);
tools/testing/selftests/net/txring_overwrite.c
79
fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP));
tools/testing/selftests/net/txtimestamp.c
609
laddr.sll_protocol = htons(family == AF_INET ? ETH_P_IP : ETH_P_IPV6);