Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c124 .n_proto = __bpf_constant_htons(ETH_P_IP),
144 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
166 .n_proto = __bpf_constant_htons(ETH_P_IP),
189 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
201 .iph.frag_off = __bpf_constant_htons(IP_MF),
212 .n_proto = __bpf_constant_htons(ETH_P_IP),
237 .n_proto = __bpf_constant_htons(ETH_P_IP),
344 __bpf_constant_htons(MAGIC_BYTES) -
356 .n_proto = __bpf_constant_htons(ETH_P_IP),
372 __bpf_constant_htons(MAGIC_BYTES) -
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dtest_tc_tunnel.c145 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4()
276 if (tcph.dest != __bpf_constant_htons(cfg_port)) 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()
429 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_eth()
610 case __bpf_constant_htons(ETH_P_IP): in decap_f()
[all …]
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()
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()
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()
/linux/tools/lib/bpf/
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))
/linux/tools/testing/selftests/bpf/
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),

Completed in 11 milliseconds