Searched refs:ETH_P_IP (Results 1 - 25 of 448) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/
H A Dxdp_metadata.h4 #ifndef ETH_P_IP
5 #define ETH_P_IP 0x0800 macro
/linux-master/include/net/
H A Dtun_proto.h20 return htons(ETH_P_IP);
36 case htons(ETH_P_IP):
H A Dinet_ecn.h175 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 Dtest_tc_link.c26 if (skb->protocol != __bpf_constant_htons(ETH_P_IP))
30 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP);
H A Dip_check_defrag.c9 #define ETH_P_IP 0x0800 macro
95 case ETH_P_IP:
H A Dtest_tc_tunnel.c248 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 Dvrf_socket_lookup.c29 if (eth->h_proto != bpf_htons(ETH_P_IP))
H A Dtest_tc_neigh.c93 case __bpf_constant_htons(ETH_P_IP):
118 case __bpf_constant_htons(ETH_P_IP):
/linux-master/samples/bpf/
H A Dnet_shared.h12 #define ETH_P_IP 0x0800 macro
H A Dparse_ldabs.c32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP)
H A Dparse_simple.c39 if (eth->h_proto != htons(ETH_P_IP))
H A Dtc_l2_redirect_kern.c50 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 Dxdp_fwd_kern.c62 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 Dflow_dissector.c115 .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 Dutils.c21 case ETH_P_IP:
/linux-master/include/linux/mlx5/
H A Dfs_helpers.h57 ethertype = ETH_P_IP;
/linux-master/tools/testing/selftests/net/
H A Dnat6to4.c92 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 Dtxring_overwrite.c51 eth->h_proto = htons(ETH_P_IP);
79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP));
/linux-master/include/linux/
H A Dvirtio_net.h16 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 Dfs_ttc.c68 .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 Dfilter.h187 spec->ether_type = htons(ETH_P_IP);
212 spec->ether_type = htons(ETH_P_IP);
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dfilter.h213 spec->ether_type = htons(ETH_P_IP);
238 spec->ether_type = htons(ETH_P_IP);
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c82 (skb->protocol == htons(ETH_P_IP) ?
96 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */
/linux-master/drivers/net/ethernet/sfc/
H A Dfilter.h213 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 Den_accel.h64 case htons(ETH_P_IP):
84 swp_spec.tun_l3_proto = htons(ETH_P_IP);

Completed in 203 milliseconds

1234567891011>>