Home
last modified time | relevance | path

Searched refs:__bpf_constant_htons (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c115 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
118 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
128 .n_proto = __bpf_constant_htons(ETH_P_IP),
137 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
139 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
149 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
158 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q),
159 .vlan_proto = __bpf_constant_htons(ETH_P_IP),
162 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
172 .n_proto = __bpf_constant_htons(ETH_P_I
[all...]
H A Dparse_tcp_hdr_opt.c15 .pk6_v6.eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
17 .pk6_v6.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
H A Dxdp_do_redirect.c24 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c111 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
114 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
124 .n_proto = __bpf_constant_htons(ETH_P_IP),
132 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
134 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
144 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
152 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q),
153 .vlan_proto = __bpf_constant_htons(ETH_P_IP),
156 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
166 .n_proto = __bpf_constant_htons(ETH_P_I
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A 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_I in __encap_udp_mpls()
[all...]
H A Dtest_tc_neigh.c107 case __bpf_constant_htons(ETH_P_IP): in tc_dst()
110 case __bpf_constant_htons(ETH_P_IPV6): in tc_dst()
131 case __bpf_constant_htons(ETH_P_IP): in tc_src()
134 case __bpf_constant_htons(ETH_P_IPV6): in tc_src()
H A Dfexit_bpf2bpf.c131 if (ip6p->nexthdr != 6 || ip6p->payload_len != __bpf_constant_htons(123)) in new_get_skb_ifindex()
138 if (ip6p->nexthdr != 6 || ip6p->payload_len != __bpf_constant_htons(123)) in new_get_skb_ifindex()
H A Dtest_tc_neigh_fib.c97 case __bpf_constant_htons(ETH_P_IP): in tc_redir()
100 case __bpf_constant_htons(ETH_P_IPV6): in tc_redir()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c149 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4()
183 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4()
280 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv6()
314 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv6()
388 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv6_ipip6()
434 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
443 if (skb->protocol == __bpf_constant_htons(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_I in __encap_udp_none()
[all...]
H A Dtest_tc_neigh.c93 case __bpf_constant_htons(ETH_P_IP): in tc_dst()
96 case __bpf_constant_htons(ETH_P_IPV6): in tc_dst()
118 case __bpf_constant_htons(ETH_P_IP): in tc_src()
121 case __bpf_constant_htons(ETH_P_IPV6): in tc_src()
H A Ddecap_sanity.c39 if (skb->protocol != __bpf_constant_htons(ETH_P_IPV6)) in decap_sanity()
51 if (udph.dest != __bpf_constant_htons(UDP_TEST_PORT)) in decap_sanity()
H A Dfexit_bpf2bpf.c129 if (ip6p->nexthdr != 6 || ip6p->payload_len != __bpf_constant_htons(123)) in new_get_skb_ifindex()
136 if (ip6p->nexthdr != 6 || ip6p->payload_len != __bpf_constant_htons(123)) in new_get_skb_ifindex()
H A Dtest_tc_neigh_fib.c98 case __bpf_constant_htons(ETH_P_IP): in tc_redir()
101 case __bpf_constant_htons(ETH_P_IPV6): in tc_redir()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbpf_endian.h54 # define __bpf_constant_htons(x) ___bpf_swab16(x) macro
67 # define __bpf_constant_htons(x) (x) macro
82 __bpf_constant_htons(x) : __bpf_htons(x))
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf_endian.h54 # define __bpf_constant_htons(x) ___bpf_swab16(x) macro
67 # define __bpf_constant_htons(x) (x) macro
82 __bpf_constant_htons(x) : __bpf_htons(x))
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c27 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
30 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
36 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
38 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c38 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
41 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
47 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
49 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),

Completed in 7 milliseconds