Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c102 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
105 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
115 .n_proto = __bpf_constant_htons(ETH_P_IP),
124 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
126 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
136 .n_proto = __bpf_constant_htons(ETH_P_IPV6),
145 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q),
146 .vlan_proto = __bpf_constant_htons(ETH_P_IP),
149 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
159 .n_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
H 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),
H A Dxdp_do_redirect.c25 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c152 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4()
186 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4()
283 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv6()
317 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); 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()
[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()
H A Dcrypto_sanity.c26 if (skb->protocol != __bpf_constant_htons(ETH_P_IPV6)) in skb_dynptr_validate()
/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))
/linux/tools/testing/selftests/bpf/
H 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),