Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c128 .n_proto = __bpf_constant_htons(ETH_P_IP),
149 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
172 .n_proto = __bpf_constant_htons(ETH_P_IP),
196 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
220 .n_proto = __bpf_constant_htons(ETH_P_IP),
246 .n_proto = __bpf_constant_htons(ETH_P_IP),
382 __bpf_constant_htons(MAGIC_BYTES) -
394 .n_proto = __bpf_constant_htons(ETH_P_IP),
411 __bpf_constant_htons(MAGIC_BYTES) -
423 .n_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
H A Dparse_tcp_hdr_opt.c15 .pk6_v6.eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
17 .pk6_v6.iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
H A Dxdp_do_redirect.c24 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c149 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4()
280 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv6()
388 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv6_ipip6()
434 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
443 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
452 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
461 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
470 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
479 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
697 case __bpf_constant_htons(ETH_P_IP): in decap_f()
[all …]
H 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()
H 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()
H 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()
H 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()
/openbmc/linux/tools/lib/bpf/
H 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))
/openbmc/linux/tools/testing/selftests/bpf/
H A 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),