Searched refs:__bpf_constant_htons (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | flow_dissector.c | 124 .n_proto = __bpf_constant_htons(ETH_P_IP), 144 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 166 .n_proto = __bpf_constant_htons(ETH_P_IP), 189 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 201 .iph.frag_off = __bpf_constant_htons(IP_MF), 212 .n_proto = __bpf_constant_htons(ETH_P_IP), 237 .n_proto = __bpf_constant_htons(ETH_P_IP), 344 __bpf_constant_htons(MAGIC_BYTES) - 356 .n_proto = __bpf_constant_htons(ETH_P_IP), 372 __bpf_constant_htons(MAGIC_BYTES) - [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_tc_tunnel.c | 145 if (tcph.dest != __bpf_constant_htons(cfg_port)) in __encap_ipv4() 276 if (tcph.dest != __bpf_constant_htons(cfg_port)) 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() 429 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_eth() 610 case __bpf_constant_htons(ETH_P_IP): in decap_f() [all …]
|
A 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()
|
A 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()
|
A 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/tools/lib/bpf/ |
A 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/tools/testing/selftests/bpf/ |
A D | network_helpers.c | 27 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 30 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 36 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 38 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
|
Completed in 11 milliseconds