/linux-master/tools/testing/selftests/bpf/ |
H A D | xdp_metadata.h | 4 #ifndef ETH_P_IP 5 #define ETH_P_IP 0x0800 macro
|
/linux-master/include/net/ |
H A D | tun_proto.h | 20 return htons(ETH_P_IP); 36 case htons(ETH_P_IP):
|
H A D | inet_ecn.h | 175 case cpu_to_be16(ETH_P_IP): 194 case cpu_to_be16(ETH_P_IP): 211 case cpu_to_be16(ETH_P_IP): 292 case htons(ETH_P_IP): 311 case htons(ETH_P_IP):
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_link.c | 26 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) 30 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP);
|
H A D | ip_check_defrag.c | 9 #define ETH_P_IP 0x0800 macro 95 case ETH_P_IP:
|
H A D | test_tc_tunnel.c | 248 eth.h_proto = bpf_htons(ETH_P_IP); 437 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 438 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); 446 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 447 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); 455 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 464 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 473 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 474 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); 482 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) [all...] |
H A D | vrf_socket_lookup.c | 29 if (eth->h_proto != bpf_htons(ETH_P_IP))
|
H A D | test_tc_neigh.c | 93 case __bpf_constant_htons(ETH_P_IP): 118 case __bpf_constant_htons(ETH_P_IP):
|
/linux-master/samples/bpf/ |
H A D | net_shared.h | 12 #define ETH_P_IP 0x0800 macro
|
H A D | parse_ldabs.c | 32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP)
|
H A D | parse_simple.c | 39 if (eth->h_proto != htons(ETH_P_IP))
|
H A D | tc_l2_redirect_kern.c | 50 if (eth_proto == htons(ETH_P_IP)) 76 if (eth->h_proto == htons(ETH_P_IP)) { 127 if (eth->h_proto == htons(ETH_P_IP)) { 166 if (eth->h_proto == htons(ETH_P_IP)) { 216 if (eth->h_proto == htons(ETH_P_IP)) {
|
H A D | xdp_fwd_kern.c | 62 if (h_proto == htons(ETH_P_IP)) { 133 if (h_proto == htons(ETH_P_IP))
|
/linux-master/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...] |
/linux-master/net/rxrpc/ |
H A D | utils.c | 21 case ETH_P_IP:
|
/linux-master/include/linux/mlx5/ |
H A D | fs_helpers.h | 57 ethertype = ETH_P_IP;
|
/linux-master/tools/testing/selftests/net/ |
H A D | nat6to4.c | 92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype 130 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IP), 0)) 159 if (skb->protocol != bpf_htons(ETH_P_IP)) 167 if (eth->h_proto != bpf_htons(ETH_P_IP))
|
H A D | txring_overwrite.c | 51 eth->h_proto = htons(ETH_P_IP); 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP));
|
/linux-master/include/linux/ |
H A D | virtio_net.h | 16 return protocol == cpu_to_be16(ETH_P_IP); 21 return protocol == cpu_to_be16(ETH_P_IP) || 38 skb->protocol = cpu_to_be16(ETH_P_IP); 134 skb->protocol == htons(ETH_P_IP)) {
|
/linux-master/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)
|
/linux-master/drivers/net/ethernet/sfc/falcon/ |
H A D | filter.h | 187 spec->ether_type = htons(ETH_P_IP); 212 spec->ether_type = htons(ETH_P_IP);
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | filter.h | 213 spec->ether_type = htons(ETH_P_IP); 238 spec->ether_type = htons(ETH_P_IP);
|
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_icrc.c | 82 (skb->protocol == htons(ETH_P_IP) ? 96 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | filter.h | 213 spec->ether_type = htons(ETH_P_IP); 259 spec->ether_type = htons(ETH_P_IP);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | en_accel.h | 64 case htons(ETH_P_IP): 84 swp_spec.tun_l3_proto = htons(ETH_P_IP);
|