Searched refs:__bpf_constant_htons (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
| D | flow_dissector.c | 107 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 110 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 120 .n_proto = __bpf_constant_htons(ETH_P_IP), 128 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 130 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES), 140 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 148 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), 149 .vlan_proto = __bpf_constant_htons(ETH_P_IP), 152 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 162 .n_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|
| /Linux-v5.4/tools/testing/selftests/bpf/progs/ |
| D | test_tc_tunnel.c | 129 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv4() 159 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv4() 237 if (tcph.dest != __bpf_constant_htons(cfg_port)) in encap_ipv6() 267 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv6() 315 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none() 324 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none() 333 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls() 342 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth() 351 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none() 360 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls() [all …]
|
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | bpf_endian.h | 27 # define __bpf_constant_htons(x) ___constant_swab16(x) macro 40 # define __bpf_constant_htons(x) (x) macro 55 __bpf_constant_htons(x) : __bpf_htons(x))
|
| D | test_progs.c | 161 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 164 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 170 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 172 .iph.payload_len = __bpf_constant_htons(MAGIC_BYTES),
|