Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c127 .n_proto = __bpf_constant_htons(ETH_P_IP),
148 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
171 .n_proto = __bpf_constant_htons(ETH_P_IP),
195 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
219 .n_proto = __bpf_constant_htons(ETH_P_IP),
245 .n_proto = __bpf_constant_htons(ETH_P_IP),
381 __bpf_constant_htons(MAGIC_BYTES -
393 .n_proto = __bpf_constant_htons(ETH_P_IP),
410 __bpf_constant_htons(MAGIC_BYTES -
422 .n_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
A Dparse_tcp_hdr_opt.c16 .pk6_v6.eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
18 .pk6_v6.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
A Dxdp_do_redirect.c24 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/linux/tools/testing/selftests/bpf/progs/
A Dtest_tc_tunnel.c152 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4()
283 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv6()
391 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv6_ipip6()
437 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
446 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
455 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
464 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
473 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
482 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
700 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 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()
A Dtest_tc_link.c33 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc1()
91 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc7()
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()
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()
A Dcrypto_sanity.c26 if (skb->protocol != __bpf_constant_htons(ETH_P_IPV6)) in skb_dynptr_validate()
/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.c53 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
56 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
62 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
64 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),

Completed in 22 milliseconds