Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
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_IP),
[all …]
/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()
/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))
/tools/testing/selftests/bpf/
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),