Home
last modified time | relevance | path

Searched refs:__bpf_constant_htons (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c107 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
110 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
120 .n_proto = __bpf_constant_htons(ETH_P_IP),
128 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
130 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
140 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
148 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q),
149 .vlan_proto = __bpf_constant_htons(ETH_P_IP),
152 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
162 .n_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c129 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv4()
159 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv4()
237 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv6()
267 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv6()
315 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
324 if (skb->protocol == __bpf_constant_htons(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()
360 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dbpf_endian.h27 # define __bpf_constant_htons(x) ___constant_swab16(x) macro
40 # define __bpf_constant_htons(x) (x) macro
55 __bpf_constant_htons(x) : __bpf_htons(x))
Dtest_progs.c161 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
164 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
170 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
172 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),