Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
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_IP),
[all …]
Dxdp_do_redirect.c30 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c145 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4()
179 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4()
276 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv6()
310 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv6()
375 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
384 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
393 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
402 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
411 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
420 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
[all …]
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()
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()
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()
/linux-6.1.9/tools/lib/bpf/
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))
/linux-6.1.9/tools/testing/selftests/bpf/
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),