/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 107 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 118 .addr_proto = ETH_P_IP, 120 .n_proto = __bpf_constant_htons(ETH_P_IP), 149 .vlan_proto = __bpf_constant_htons(ETH_P_IP), 160 .addr_proto = ETH_P_IP, 162 .n_proto = __bpf_constant_htons(ETH_P_IP), 193 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 206 .addr_proto = ETH_P_IP, 208 .n_proto = __bpf_constant_htons(ETH_P_IP), 219 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|
/Linux-v5.4/tools/testing/selftests/bpf/progs/ |
D | test_tc_tunnel.c | 209 eth.h_proto = bpf_htons(ETH_P_IP); in encap_ipv4() 315 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none() 316 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none() 324 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none() 325 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none() 333 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls() 342 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth() 351 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none() 352 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 360 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls() [all …]
|
/Linux-v5.4/samples/bpf/ |
D | tc_l2_redirect_kern.c | 50 if (eth_proto == htons(ETH_P_IP)) in is_vip_addr() 76 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward() 127 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect() 166 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect() 216 if (eth->h_proto == htons(ETH_P_IP)) { in _drop_non_tun_vip()
|
D | xdp_fwd_kern.c | 63 if (h_proto == htons(ETH_P_IP)) { in xdp_fwd_flags() 134 if (h_proto == htons(ETH_P_IP)) in xdp_fwd_flags()
|
D | sockex3_kern.c | 50 case ETH_P_IP: in parse_eth_proto() 172 parse_eth_proto(skb, ETH_P_IP); in parse_ip_proto() 269 parse_eth_proto(skb, ETH_P_IP); in PROG()
|
/Linux-v5.4/include/net/ |
D | tun_proto.h | 19 return htons(ETH_P_IP); in tun_p_to_eth_p() 35 case htons(ETH_P_IP): in tun_p_from_eth_p()
|
D | inet_ecn.h | 146 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce() 222 if (skb->protocol == htons(ETH_P_IP)) in IP_ECN_decapsulate() 237 if (skb->protocol == htons(ETH_P_IP)) in IP6_ECN_decapsulate()
|
/Linux-v5.4/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 48 (skb->protocol == htons(ETH_P_IP) ? in rxe_icrc_hdr() 62 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ in rxe_icrc_hdr()
|
D | rxe_recv.c | 168 if (skb->protocol == htons(ETH_P_IP)) { in check_addr() 286 if (skb->protocol == htons(ETH_P_IP)) in rxe_rcv_mcast_pkt() 337 if (skb->protocol == htons(ETH_P_IP)) { in rxe_match_dgid() 398 else if (skb->protocol == htons(ETH_P_IP)) in rxe_rcv()
|
/Linux-v5.4/net/tipc/ |
D | udp_media.c | 101 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 127 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str() 167 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit() 306 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 331 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc() 396 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast() 412 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr() 578 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr() 712 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
|
/Linux-v5.4/drivers/net/arcnet/ |
D | rfc1051.c | 107 return htons(ETH_P_IP); in type_trans() 117 return htons(ETH_P_IP); in type_trans() 170 case ETH_P_IP: in build_header()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | en_accel.h | 60 case htons(ETH_P_IP): in mlx5e_tx_tunnel_accel() 80 swp_spec.tun_l3_proto = htons(ETH_P_IP); in mlx5e_tx_tunnel_accel()
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | psock_snd.c | 109 tag[1] = htons(ETH_P_IP); in build_eth_header() 113 eth->h_proto = htons(ETH_P_IP); in build_eth_header() 175 laddr.sll_protocol = htons(ETH_P_IP); in do_bind() 202 laddr.sll_protocol = htons(ETH_P_IP); in do_send()
|
D | txring_overwrite.c | 51 eth->h_proto = htons(ETH_P_IP); in build_packet() 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
|
/Linux-v5.4/include/linux/ |
D | virtio_net.h | 14 skb->protocol = cpu_to_be16(ETH_P_IP); in virtio_net_hdr_set_proto() 72 skb->protocol == htons(ETH_P_IP)) { in virtio_net_hdr_to_skb()
|
/Linux-v5.4/net/802/ |
D | fddi.c | 55 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header() 59 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header()
|
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/ |
D | filter.h | 187 spec->ether_type = htons(ETH_P_IP); in ef4_filter_set_ipv4_local() 212 spec->ether_type = htons(ETH_P_IP); in ef4_filter_set_ipv4_full()
|
/Linux-v5.4/net/batman-adv/ |
D | multicast.c | 304 qr4->exists = br_multicast_has_querier_anywhere(dev, ETH_P_IP); in batadv_mcast_mla_flags_get() 305 qr4->shadowing = br_multicast_has_querier_adjacent(dev, ETH_P_IP); in batadv_mcast_mla_flags_get() 563 if (src->proto == htons(ETH_P_IP)) in batadv_mcast_mla_br_addr_cpy() 606 if (br_ip_entry->addr.proto == htons(ETH_P_IP)) { in batadv_mcast_mla_bridge_get() 1013 *is_routable = ETH_P_IP; in batadv_mcast_forw_mode_check_ipv4() 1108 case ETH_P_IP: in batadv_mcast_forw_mode_check() 1138 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count() 1162 case ETH_P_IP: in batadv_mcast_forw_rtr_count() 1255 case ETH_P_IP: in batadv_mcast_forw_ip_node_get() 1360 case ETH_P_IP: in batadv_mcast_forw_rtr_node_get() [all …]
|
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/ |
D | cls.c | 68 case htons(ETH_P_IP): in nfp_abm_u32_check_knode() 184 tos_off = proto == htons(ETH_P_IP) ? 16 : 20; in nfp_abm_u32_knode_replace() 250 if (cls_u32->common.protocol != htons(ETH_P_IP) && in nfp_abm_setup_tc_block_cb()
|
/Linux-v5.4/drivers/net/wimax/i2400m/ |
D | netdev.c | 480 cpu_to_be16(ETH_P_IP)); in i2400m_net_rx() 483 skb->protocol = htons(ETH_P_IP); in i2400m_net_rx() 531 cpu_to_be16(ETH_P_IP)); in i2400m_net_erx() 534 skb->protocol = htons(ETH_P_IP); in i2400m_net_erx()
|
/Linux-v5.4/drivers/net/ethernet/sfc/ |
D | filter.h | 213 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_local() 238 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_full()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_selftest.c | 134 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 166 skb->protocol = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 244 lbtp->pt.type = htons(ETH_P_IP); in mlx5e_test_loopback_setup()
|
D | en_arfs.c | 443 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) in arfs_get_table() 445 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) in arfs_get_table() 504 if (tuple->etype == htons(ETH_P_IP)) { in arfs_add_rule() 618 if (tuple->etype == htons(ETH_P_IP)) { in arfs_alloc_rule() 645 if (tuple->etype == htons(ETH_P_IP)) in arfs_cmp() 683 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_rx_flow_steer()
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 391 if (skb->protocol == htons(ETH_P_IP)) { in qede_compare_ip_addr() 467 if (skb->protocol != htons(ETH_P_IP) && in qede_rx_flow_steer() 471 if (skb->protocol == htons(ETH_P_IP)) { in qede_rx_flow_steer() 524 if (skb->protocol == htons(ETH_P_IP)) { in qede_rx_flow_steer() 1424 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry() 1485 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size() 1501 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp() 1502 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp() 1872 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_tcp_v4() 1892 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_udp_v4() [all …]
|
/Linux-v5.4/net/netfilter/ |
D | nf_flow_table_inet.c | 15 case htons(ETH_P_IP): in nf_flow_offload_inet_hook()
|