Searched refs:__bpf_constant_htons (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 115 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 118 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 128 .n_proto = __bpf_constant_htons(ETH_P_IP), 137 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 139 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES), 149 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 158 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), 159 .vlan_proto = __bpf_constant_htons(ETH_P_IP), 162 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 172 .n_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|
D | xdp_do_redirect.c | 30 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_tc_tunnel.c | 145 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4() 179 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4() 276 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv6() 310 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); 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() [all …]
|
D | test_tc_neigh.c | 93 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()
|
D | fexit_bpf2bpf.c | 131 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()
|
D | test_tc_neigh_fib.c | 98 case __bpf_constant_htons(ETH_P_IP): in tc_redir() 101 case __bpf_constant_htons(ETH_P_IPV6): in tc_redir()
|
/linux-6.1.9/tools/lib/bpf/ |
D | bpf_endian.h | 54 # 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-6.1.9/tools/testing/selftests/bpf/ |
D | network_helpers.c | 38 .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),
|