/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 115 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 126 .addr_proto = ETH_P_IP, 128 .n_proto = __bpf_constant_htons(ETH_P_IP), 159 .vlan_proto = __bpf_constant_htons(ETH_P_IP), 170 .addr_proto = ETH_P_IP, 172 .n_proto = __bpf_constant_htons(ETH_P_IP), 205 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 218 .addr_proto = ETH_P_IP, 220 .n_proto = __bpf_constant_htons(ETH_P_IP), 232 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 111 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 122 .addr_proto = ETH_P_IP, 124 .n_proto = __bpf_constant_htons(ETH_P_IP), 153 .vlan_proto = __bpf_constant_htons(ETH_P_IP), 164 .addr_proto = ETH_P_IP, 166 .n_proto = __bpf_constant_htons(ETH_P_IP), 197 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 210 .addr_proto = ETH_P_IP, 212 .n_proto = __bpf_constant_htons(ETH_P_IP), 223 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A 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...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 245 eth.h_proto = bpf_htons(ETH_P_IP); in __encap_ipv4() 434 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none() 435 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none() 443 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none() 444 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none() 452 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls() 461 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth() 470 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none() 471 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 479 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls() [all...] |
H A D | ip_check_defrag.c | 9 #define ETH_P_IP 0x0800 macro 95 case ETH_P_IP: in defrag()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | xdp_metadata.h | 4 #ifndef ETH_P_IP 5 #define ETH_P_IP 0x0800 macro
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A 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()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | inet_ecn.h | 175 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce() 194 case cpu_to_be16(ETH_P_IP): in skb_get_dsfield() 211 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ect1() 292 case htons(ETH_P_IP): in IP_ECN_decapsulate() 311 case htons(ETH_P_IP): in IP6_ECN_decapsulate()
|
H A D | tun_proto.h | 20 return htons(ETH_P_IP); in tun_p_to_eth_p() 36 case htons(ETH_P_IP): in tun_p_from_eth_p()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A 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()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | virtio_net.h | 14 return protocol == cpu_to_be16(ETH_P_IP); in virtio_net_hdr_match_proto() 18 return protocol == cpu_to_be16(ETH_P_IP) || in virtio_net_hdr_match_proto() 34 skb->protocol = cpu_to_be16(ETH_P_IP); in virtio_net_hdr_set_proto() 122 skb->protocol == htons(ETH_P_IP)) { in virtio_net_hdr_to_skb()
|
/kernel/linux/linux-5.10/include/net/ |
H A 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()
|
H A D | inet_ecn.h | 177 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce() 196 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ect1() 277 case htons(ETH_P_IP): in IP_ECN_decapsulate() 296 case htons(ETH_P_IP): in IP6_ECN_decapsulate()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | fs_ttc.c | 68 .etype = ETH_P_IP, 76 .etype = ETH_P_IP, 84 .etype = ETH_P_IP, 92 .etype = ETH_P_IP, 100 .etype = ETH_P_IP, 115 .etype = ETH_P_IP, 123 .etype = ETH_P_IP, 131 .etype = ETH_P_IP, 182 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | virtio_net.h | 16 return protocol == cpu_to_be16(ETH_P_IP); in virtio_net_hdr_match_proto() 21 return protocol == cpu_to_be16(ETH_P_IP) || in virtio_net_hdr_match_proto() 38 skb->protocol = cpu_to_be16(ETH_P_IP); in virtio_net_hdr_set_proto() 134 skb->protocol == htons(ETH_P_IP)) { in virtio_net_hdr_to_skb()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | nat6to4.c | 92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype in sched_cls_ingress6_nat_6_prog() 130 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IP), 0)) in sched_cls_ingress6_nat_6_prog() 159 if (skb->protocol != bpf_htons(ETH_P_IP)) in sched_cls_egress4_snat4_prog() 167 if (eth->h_proto != bpf_htons(ETH_P_IP)) in sched_cls_egress4_snat4_prog()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
H A D | rxe_icrc.c | 21 (skb->protocol == htons(ETH_P_IP) ? in rxe_icrc_hdr() 35 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ in rxe_icrc_hdr()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A 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()
|
/kernel/linux/linux-5.10/net/tipc/ |
H A D | udp_media.c | 102 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 128 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str() 170 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit() 314 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 339 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc() 405 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast() 421 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr() 583 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr() 718 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
|
/kernel/linux/linux-6.6/net/tipc/ |
H A D | udp_media.c | 108 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 134 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str() 176 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit() 320 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 345 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc() 411 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast() 429 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr() 591 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr() 726 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
|
/kernel/linux/linux-5.10/drivers/net/arcnet/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | cls.c | 68 case htons(ETH_P_IP): in nfp_abm_u32_check_knode() 182 tos_off = proto == htons(ETH_P_IP) ? 16 : 20; in nfp_abm_u32_knode_replace() 244 if (cls_u32->common.protocol != htons(ETH_P_IP) && in nfp_abm_setup_tc_block_cb()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | cls.c | 68 case htons(ETH_P_IP): in nfp_abm_u32_check_knode() 182 tos_off = proto == htons(ETH_P_IP) ? 16 : 20; in nfp_abm_u32_knode_replace() 244 if (cls_u32->common.protocol != htons(ETH_P_IP) && in nfp_abm_setup_tc_block_cb()
|
/kernel/linux/linux-6.6/drivers/net/arcnet/ |
H A 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()
|