Symbol: bpf_htonl
tools/testing/selftests/bpf/progs/bind4_prog.c
117
if (ctx->user_ip4 != bpf_htonl(SERV4_IP) ||
tools/testing/selftests/bpf/progs/bind4_prog.c
155
ctx->user_ip4 = bpf_htonl(SERV4_REWRITE_IP);
tools/testing/selftests/bpf/progs/bind6_prog.c
124
if (ctx->user_ip6[0] != bpf_htonl(SERV6_IP_0) ||
tools/testing/selftests/bpf/progs/bind6_prog.c
125
ctx->user_ip6[1] != bpf_htonl(SERV6_IP_1) ||
tools/testing/selftests/bpf/progs/bind6_prog.c
126
ctx->user_ip6[2] != bpf_htonl(SERV6_IP_2) ||
tools/testing/selftests/bpf/progs/bind6_prog.c
127
ctx->user_ip6[3] != bpf_htonl(SERV6_IP_3) ||
tools/testing/selftests/bpf/progs/bind6_prog.c
169
ctx->user_ip6[0] = bpf_htonl(SERV6_REWRITE_IP_0);
tools/testing/selftests/bpf/progs/bind6_prog.c
170
ctx->user_ip6[1] = bpf_htonl(SERV6_REWRITE_IP_1);
tools/testing/selftests/bpf/progs/bind6_prog.c
171
ctx->user_ip6[2] = bpf_htonl(SERV6_REWRITE_IP_2);
tools/testing/selftests/bpf/progs/bind6_prog.c
172
ctx->user_ip6[3] = bpf_htonl(SERV6_REWRITE_IP_3);
tools/testing/selftests/bpf/progs/bpf_flow.c
156
iph->saddr == bpf_htonl(FLOW_CONTINUE_SADDR)) {
tools/testing/selftests/bpf/progs/connect4_prog.c
153
tuple.ipv4.daddr = bpf_htonl(DST_REWRITE_IP4);
tools/testing/selftests/bpf/progs/connect4_prog.c
191
ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4);
tools/testing/selftests/bpf/progs/connect4_prog.c
47
sa.sin_addr.s_addr = bpf_htonl(SRC_REWRITE_IP4);
tools/testing/selftests/bpf/progs/connect6_prog.c
38
tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/connect6_prog.c
39
tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/connect6_prog.c
40
tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/connect6_prog.c
41
tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/connect6_prog.c
69
ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/connect6_prog.c
70
ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/connect6_prog.c
71
ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/connect6_prog.c
72
ctx->user_ip6[3] = bpf_htonl(DST_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/connect6_prog.c
82
sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/connect6_prog.c
83
sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/connect6_prog.c
84
sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/connect6_prog.c
85
sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/connect_force_port4.c
38
sa.sin_addr.s_addr = bpf_htonl(0x7f000001);
tools/testing/selftests/bpf/progs/connect_force_port4.c
53
ctx->user_ip4 = bpf_htonl(0x7f000001);
tools/testing/selftests/bpf/progs/connect_force_port4.c
67
ctx->user_ip4 = bpf_htonl(0x01020304);
tools/testing/selftests/bpf/progs/connect_force_port6.c
37
sa.sin6_addr.s6_addr32[3] = bpf_htonl(1);
tools/testing/selftests/bpf/progs/connect_force_port6.c
58
ctx->user_ip6[3] = bpf_htonl(1);
tools/testing/selftests/bpf/progs/connect_force_port6.c
72
ctx->user_ip6[0] = bpf_htonl(0xfc000000);
tools/testing/selftests/bpf/progs/connect_force_port6.c
75
ctx->user_ip6[3] = bpf_htonl(1);
tools/testing/selftests/bpf/progs/connect_ping.c
26
.sin_addr.s_addr = bpf_htonl(0x01010101),
tools/testing/selftests/bpf/progs/getpeername4_prog.c
18
ctx->user_ip4 = bpf_htonl(REWRITE_ADDRESS_IP4);
tools/testing/selftests/bpf/progs/getpeername6_prog.c
22
ctx->user_ip6[0] = bpf_htonl(REWRITE_ADDRESS_IP6_0);
tools/testing/selftests/bpf/progs/getpeername6_prog.c
23
ctx->user_ip6[1] = bpf_htonl(REWRITE_ADDRESS_IP6_1);
tools/testing/selftests/bpf/progs/getpeername6_prog.c
24
ctx->user_ip6[2] = bpf_htonl(REWRITE_ADDRESS_IP6_2);
tools/testing/selftests/bpf/progs/getpeername6_prog.c
25
ctx->user_ip6[3] = bpf_htonl(REWRITE_ADDRESS_IP6_3);
tools/testing/selftests/bpf/progs/getsockname4_prog.c
18
ctx->user_ip4 = bpf_htonl(REWRITE_ADDRESS_IP4);
tools/testing/selftests/bpf/progs/getsockname6_prog.c
22
ctx->user_ip6[0] = bpf_htonl(REWRITE_ADDRESS_IP6_0);
tools/testing/selftests/bpf/progs/getsockname6_prog.c
23
ctx->user_ip6[1] = bpf_htonl(REWRITE_ADDRESS_IP6_1);
tools/testing/selftests/bpf/progs/getsockname6_prog.c
24
ctx->user_ip6[2] = bpf_htonl(REWRITE_ADDRESS_IP6_2);
tools/testing/selftests/bpf/progs/getsockname6_prog.c
25
ctx->user_ip6[3] = bpf_htonl(REWRITE_ADDRESS_IP6_3);
tools/testing/selftests/bpf/progs/recvmsg4_prog.c
34
ctx->user_ip4 = bpf_htonl(SERV4_IP);
tools/testing/selftests/bpf/progs/recvmsg6_prog.c
37
ctx->user_ip6[0] = bpf_htonl(SERV6_IP_0);
tools/testing/selftests/bpf/progs/recvmsg6_prog.c
38
ctx->user_ip6[1] = bpf_htonl(SERV6_IP_1);
tools/testing/selftests/bpf/progs/recvmsg6_prog.c
39
ctx->user_ip6[2] = bpf_htonl(SERV6_IP_2);
tools/testing/selftests/bpf/progs/recvmsg6_prog.c
40
ctx->user_ip6[3] = bpf_htonl(SERV6_IP_3);
tools/testing/selftests/bpf/progs/sendmsg4_prog.c
31
if (ctx->msg_src_ip4 == bpf_htonl(SRC1_IP4) ||
tools/testing/selftests/bpf/progs/sendmsg4_prog.c
32
ctx->msg_src_ip4 == bpf_htonl(SRC2_IP4)) {
tools/testing/selftests/bpf/progs/sendmsg4_prog.c
33
ctx->msg_src_ip4 = bpf_htonl(SRC_REWRITE_IP4);
tools/testing/selftests/bpf/progs/sendmsg4_prog.c
40
if ((ctx->user_ip4 >> 24) == (bpf_htonl(DST_IP4) >> 24) &&
tools/testing/selftests/bpf/progs/sendmsg4_prog.c
42
ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
100
ctx->user_ip6[3] = bpf_htonl(0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
40
if (ctx->msg_src_ip6[3] == bpf_htonl(1) ||
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
41
ctx->msg_src_ip6[3] == bpf_htonl(0)) {
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
42
ctx->msg_src_ip6[0] = bpf_htonl(SRC_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
43
ctx->msg_src_ip6[1] = bpf_htonl(SRC_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
44
ctx->msg_src_ip6[2] = bpf_htonl(SRC_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
45
ctx->msg_src_ip6[3] = bpf_htonl(SRC_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
52
if (ctx->user_ip6[0] == bpf_htonl(0xFACEB00C)) {
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
53
ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
54
ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
55
ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
56
ctx->user_ip6[3] = bpf_htonl(DST_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
71
ctx->msg_src_ip6[0] = bpf_htonl(SRC_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
72
ctx->msg_src_ip6[1] = bpf_htonl(SRC_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
73
ctx->msg_src_ip6[2] = bpf_htonl(SRC_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
74
ctx->msg_src_ip6[3] = bpf_htonl(SRC_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
77
ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_V4_MAPPED_0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
78
ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_V4_MAPPED_1);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
79
ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_V4_MAPPED_2);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
80
ctx->user_ip6[3] = bpf_htonl(DST_REWRITE_IP6_V4_MAPPED_3);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
91
ctx->msg_src_ip6[0] = bpf_htonl(SRC_REWRITE_IP6_0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
92
ctx->msg_src_ip6[1] = bpf_htonl(SRC_REWRITE_IP6_1);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
93
ctx->msg_src_ip6[2] = bpf_htonl(SRC_REWRITE_IP6_2);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
94
ctx->msg_src_ip6[3] = bpf_htonl(SRC_REWRITE_IP6_3);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
97
ctx->user_ip6[0] = bpf_htonl(0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
98
ctx->user_ip6[1] = bpf_htonl(0);
tools/testing/selftests/bpf/progs/sendmsg6_prog.c
99
ctx->user_ip6[2] = bpf_htonl(0);
tools/testing/selftests/bpf/progs/sock_iter_batch.c
17
a->s6_addr32[2] | (a->s6_addr32[3] ^ bpf_htonl(1))) == 0;
tools/testing/selftests/bpf/progs/test_sk_lookup.c
15
bpf_htonl((((__u32)(a) & 0xffU) << 24) | \
tools/testing/selftests/bpf/progs/test_sk_lookup.c
20
{ bpf_htonl(aaaa), bpf_htonl(bbbb), bpf_htonl(cccc), bpf_htonl(dddd) }
tools/testing/selftests/bpf/progs/test_sock_fields.c
61
return !a6[0] && !a6[1] && !a6[2] && a6[3] == bpf_htonl(1);
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
40
#define VXLAN_FLAGS bpf_htonl(1<<27)
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
42
#define VXLAN_VNI bpf_htonl(VNI_ID << 8)
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
370
*ctx->ptr32++ = bpf_htonl(TCPOPT_MSS << 24 | TCPOLEN_MSS << 16 |
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
374
*ctx->ptr32++ = bpf_htonl(TCPOPT_NOP << 24 |
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
381
*ctx->ptr32++ = bpf_htonl(TCPOPT_SACK_PERM << 24 |
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
386
*ctx->ptr32++ = bpf_htonl(TCPOPT_NOP << 24 |
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
391
*ctx->ptr32++ = bpf_htonl(ctx->attrs.rcv_tsecr);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
392
*ctx->ptr32++ = bpf_htonl(ctx->attrs.rcv_tsval);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
394
*ctx->ptr32++ = bpf_htonl(TCPOPT_NOP << 24 |
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
418
ctx->tcp->ack_seq = bpf_htonl(bpf_ntohl(ctx->tcp->seq) + 1);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
419
ctx->tcp->seq = bpf_htonl(ctx->cookie);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
449
*(__be32 *)ctx->ipv6 = bpf_htonl(0x60000000);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.h
126
ulen = (__force u32)bpf_htonl((__u32)len);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.h
131
uproto = (__force u32)bpf_htonl(proto);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
123
key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
182
md.u.index = bpf_htonl(123);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
246
key.remote_ipv6[3] = bpf_htonl(0x11);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
261
md.u.index = bpf_htonl(123);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
435
__u32 assigned_ip = bpf_htonl(ASSIGNED_ADDR_VETH1);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
499
key.local_ipv6[3] = bpf_htonl(0x11); /* ::11 */
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
500
key.remote_ipv6[3] = bpf_htonl(*local_ip);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
530
key.local_ipv6[3] = bpf_htonl(*local_ip);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
531
key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
608
*(int *) &gopt->opt_data = bpf_htonl(0xdeadbeef);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
657
key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
676
*(int *) &gopt->opt_data = bpf_htonl(0xfeedbeef);
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
879
key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
905
bpf_printk("remote ip6 %x::%x\n", bpf_htonl(key.remote_ipv6[0]),
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
906
bpf_htonl(key.remote_ipv6[3]));
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
927
key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
953
bpf_printk("remote ip6 %x::%x\n", bpf_htonl(key.remote_ipv6[0]),
tools/testing/selftests/bpf/progs/test_tunnel_kern.c
954
bpf_htonl(key.remote_ipv6[3]));
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
165
sum += bpf_htonl(len);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
166
sum += bpf_htonl(proto);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
305
*tsval = bpf_htonl(cookie);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
487
*buf++ = bpf_htonl((TCPOPT_MSS << 24) | (TCPOLEN_MSS << 16) | mss);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
492
if (tsopt[0] & bpf_htonl(1 << 4))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
493
*buf++ = bpf_htonl((TCPOPT_SACK_PERM << 24) |
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
498
*buf++ = bpf_htonl((TCPOPT_NOP << 24) |
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
505
if ((tsopt[0] & bpf_htonl(0xf)) != bpf_htonl(0xf))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
506
*buf++ = bpf_htonl((TCPOPT_NOP << 24) |
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
521
if (tsopt && (tsopt[0] & bpf_htonl(1 << 5)))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
525
tcp_header->ack_seq = bpf_htonl(bpf_ntohl(tcp_header->seq) + 1);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
526
tcp_header->seq = bpf_htonl(cookie);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
570
*(__be32 *)hdr->ipv6 = bpf_htonl(0x60000000);
tools/testing/selftests/net/nat6to4.bpf.c
237
ip6.saddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8);
tools/testing/selftests/net/nat6to4.bpf.c
240
ip6.saddr.in6_u.u6_addr32[3] = bpf_htonl(1);
tools/testing/selftests/net/nat6to4.bpf.c
241
ip6.daddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8);
tools/testing/selftests/net/nat6to4.bpf.c
244
ip6.daddr.in6_u.u6_addr32[3] = bpf_htonl(2);