Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c115 .n_proto = __bpf_constant_htons(ETH_P_IP),
136 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
159 .n_proto = __bpf_constant_htons(ETH_P_IP),
207 .n_proto = __bpf_constant_htons(ETH_P_IP),
233 .n_proto = __bpf_constant_htons(ETH_P_IP),
369 __bpf_constant_htons(MAGIC_BYTES -
381 .n_proto = __bpf_constant_htons(ETH_P_IP),
398 __bpf_constant_htons(MAGIC_BYTES -
427 __bpf_constant_htons(MAGIC_BYTES -
449 __bpf_constant_htons(MAGIC_BYTES -
[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.c25 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/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.c38 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc1()
96 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()
/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))
/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 16 milliseconds