Home
Sort by
last modified time
|
relevance
|
path
Repository(s)
applications
arkcompiler
base
build
commonlibrary
developtools
device
docs
domains
drivers
foundation
ide
interface
kernel
napi_generator
productdefine
test
third_party
vendor
select all
invert selection
clear
Full Search
Search through all text tokens(words,strings,identifiers,numbers) in index.
Definition
Only finds symbol definitions(where e.g a variable(function,...) is defined).
Symbol
Only finds symbol(e.g. methods classes,function,variables).
File Path
Path of the source file(use "/").If you want just exact path,enclose it in "".Source files end with: .jar/.bz2/.a/.h/.java...
History
History log comments.
Type
Any
Bzip(2)
C
Clojure
C#
C++
ELF
Erlang
Image file
Fortran
Golang
GZIP
Haskell
Jar
Java
Java class
JavaScript
Lisp
Lua
Pascal
Perl
PHP
Plain Text
PL/SQL
Python
Rust
Scala
Shell script
SQL
Tar
Tcl
Troff
UUEncoded
Visual Basic
XML
Zip
Type of analyzer used to filter file types include with selected(e.g. just C sources).
Help
Searched
refs:bpf_htonl
(Results
1 - 25
of
29
) sorted by relevance
1
2
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H
A
D
sendmsg6_prog.c
32
if (ctx->msg_src_ip6[3] ==
bpf_htonl
(1) ||
in sendmsg_v6_prog()
33
ctx->msg_src_ip6[3] ==
bpf_htonl
(0)) {
in sendmsg_v6_prog()
34
ctx->msg_src_ip6[0] =
bpf_htonl
(SRC_REWRITE_IP6_0);
in sendmsg_v6_prog()
35
ctx->msg_src_ip6[1] =
bpf_htonl
(SRC_REWRITE_IP6_1);
in sendmsg_v6_prog()
36
ctx->msg_src_ip6[2] =
bpf_htonl
(SRC_REWRITE_IP6_2);
in sendmsg_v6_prog()
37
ctx->msg_src_ip6[3] =
bpf_htonl
(SRC_REWRITE_IP6_3);
in sendmsg_v6_prog()
44
if (ctx->user_ip6[0] ==
bpf_htonl
(0xFACEB00C)) {
in sendmsg_v6_prog()
45
ctx->user_ip6[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
in sendmsg_v6_prog()
46
ctx->user_ip6[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
in sendmsg_v6_prog()
47
ctx->user_ip6[2] =
bpf_htonl
(DST_REWRITE_IP6_
in sendmsg_v6_prog()
[all...]
H
A
D
connect6_prog.c
40
tuple.ipv6.daddr[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
in connect_v6_prog()
41
tuple.ipv6.daddr[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
in connect_v6_prog()
42
tuple.ipv6.daddr[2] =
bpf_htonl
(DST_REWRITE_IP6_2);
in connect_v6_prog()
43
tuple.ipv6.daddr[3] =
bpf_htonl
(DST_REWRITE_IP6_3);
in connect_v6_prog()
71
ctx->user_ip6[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
in connect_v6_prog()
72
ctx->user_ip6[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
in connect_v6_prog()
73
ctx->user_ip6[2] =
bpf_htonl
(DST_REWRITE_IP6_2);
in connect_v6_prog()
74
ctx->user_ip6[3] =
bpf_htonl
(DST_REWRITE_IP6_3);
in connect_v6_prog()
84
sa.sin6_addr.s6_addr32[0] =
bpf_htonl
(SRC_REWRITE_IP6_0);
in connect_v6_prog()
85
sa.sin6_addr.s6_addr32[1] =
bpf_htonl
(SRC_REWRITE_IP6_
in connect_v6_prog()
[all...]
H
A
D
sendmsg4_prog.c
28
if (ctx->msg_src_ip4 ==
bpf_htonl
(SRC1_IP4) ||
in sendmsg_v4_prog()
29
ctx->msg_src_ip4 ==
bpf_htonl
(SRC2_IP4)) {
in sendmsg_v4_prog()
30
ctx->msg_src_ip4 =
bpf_htonl
(SRC_REWRITE_IP4);
in sendmsg_v4_prog()
37
if ((ctx->user_ip4 >> 24) == (
bpf_htonl
(DST_IP4) >> 24) &&
in sendmsg_v4_prog()
39
ctx->user_ip4 =
bpf_htonl
(DST_REWRITE_IP4);
in sendmsg_v4_prog()
H
A
D
connect_force_port6.c
36
sa.sin6_addr.s6_addr32[3] =
bpf_htonl
(1);
in connect6()
57
ctx->user_ip6[3] =
bpf_htonl
(1);
in connect6()
68
ctx->user_ip6[0] =
bpf_htonl
(0xfc000000);
in getsockname6()
71
ctx->user_ip6[3] =
bpf_htonl
(1);
in getsockname6()
H
A
D
test_tunnel_kern.c
91
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in _ip6gretap_set_tunnel()
151
md.u.index =
bpf_htonl
(123);
in _erspan_set_tunnel()
220
key.remote_ipv6[3] =
bpf_htonl
(0x11);
in _ip4ip6erspan_set_tunnel()
235
md.u.index =
bpf_htonl
(123);
in _ip4ip6erspan_set_tunnel()
361
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in _ip6vxlan_set_tunnel()
416
*(int *) &gopt.opt_data =
bpf_htonl
(0xdeadbeef);
in _geneve_set_tunnel()
465
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in _ip6geneve_set_tunnel()
484
*(int *) &gopt.opt_data =
bpf_htonl
(0xfeedbeef);
in _ip6geneve_set_tunnel()
584
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in _ipip6_set_tunnel()
611
bpf_trace_printk(fmt, sizeof(fmt),
bpf_htonl
(ke
in _ipip6_get_tunnel()
[all...]
H
A
D
connect_force_port4.c
37
sa.sin_addr.s_addr =
bpf_htonl
(0x7f000001);
in connect4()
52
ctx->user_ip4 =
bpf_htonl
(0x7f000001);
in connect4()
63
ctx->user_ip4 =
bpf_htonl
(0x01020304);
in getsockname4()
H
A
D
connect4_prog.c
43
sa.sin_addr.s_addr =
bpf_htonl
(SRC_REWRITE_IP4);
in do_bind()
157
tuple.ipv4.daddr =
bpf_htonl
(DST_REWRITE_IP4);
in connect_v4_prog()
195
ctx->user_ip4 =
bpf_htonl
(DST_REWRITE_IP4);
in connect_v4_prog()
H
A
D
test_sk_lookup.c
15
bpf_htonl
((((__u32)(a) & 0xffU) << 24) | \
20
{
bpf_htonl
(aaaa),
bpf_htonl
(bbbb),
bpf_htonl
(cccc),
bpf_htonl
(dddd) }
H
A
D
test_sock_fields.c
58
return !a6[0] && !a6[1] && !a6[2] && a6[3] ==
bpf_htonl
(1);
in is_loopback6()
257
return word[0] ==
bpf_htonl
(0xcafe0000);
in sk_dst_port__load_word()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H
A
D
sendmsg6_prog.c
35
if (ctx->msg_src_ip6[3] ==
bpf_htonl
(1) ||
in sendmsg_v6_prog()
36
ctx->msg_src_ip6[3] ==
bpf_htonl
(0)) {
in sendmsg_v6_prog()
37
ctx->msg_src_ip6[0] =
bpf_htonl
(SRC_REWRITE_IP6_0);
in sendmsg_v6_prog()
38
ctx->msg_src_ip6[1] =
bpf_htonl
(SRC_REWRITE_IP6_1);
in sendmsg_v6_prog()
39
ctx->msg_src_ip6[2] =
bpf_htonl
(SRC_REWRITE_IP6_2);
in sendmsg_v6_prog()
40
ctx->msg_src_ip6[3] =
bpf_htonl
(SRC_REWRITE_IP6_3);
in sendmsg_v6_prog()
47
if (ctx->user_ip6[0] ==
bpf_htonl
(0xFACEB00C)) {
in sendmsg_v6_prog()
48
ctx->user_ip6[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
in sendmsg_v6_prog()
49
ctx->user_ip6[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
in sendmsg_v6_prog()
50
ctx->user_ip6[2] =
bpf_htonl
(DST_REWRITE_IP6_
in sendmsg_v6_prog()
[all...]
H
A
D
connect6_prog.c
38
tuple.ipv6.daddr[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
in connect_v6_prog()
39
tuple.ipv6.daddr[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
in connect_v6_prog()
40
tuple.ipv6.daddr[2] =
bpf_htonl
(DST_REWRITE_IP6_2);
in connect_v6_prog()
41
tuple.ipv6.daddr[3] =
bpf_htonl
(DST_REWRITE_IP6_3);
in connect_v6_prog()
69
ctx->user_ip6[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
in connect_v6_prog()
70
ctx->user_ip6[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
in connect_v6_prog()
71
ctx->user_ip6[2] =
bpf_htonl
(DST_REWRITE_IP6_2);
in connect_v6_prog()
72
ctx->user_ip6[3] =
bpf_htonl
(DST_REWRITE_IP6_3);
in connect_v6_prog()
82
sa.sin6_addr.s6_addr32[0] =
bpf_htonl
(SRC_REWRITE_IP6_0);
in connect_v6_prog()
83
sa.sin6_addr.s6_addr32[1] =
bpf_htonl
(SRC_REWRITE_IP6_
in connect_v6_prog()
[all...]
H
A
D
sendmsg4_prog.c
31
if (ctx->msg_src_ip4 ==
bpf_htonl
(SRC1_IP4) ||
in sendmsg_v4_prog()
32
ctx->msg_src_ip4 ==
bpf_htonl
(SRC2_IP4)) {
in sendmsg_v4_prog()
33
ctx->msg_src_ip4 =
bpf_htonl
(SRC_REWRITE_IP4);
in sendmsg_v4_prog()
40
if ((ctx->user_ip4 >> 24) == (
bpf_htonl
(DST_IP4) >> 24) &&
in sendmsg_v4_prog()
42
ctx->user_ip4 =
bpf_htonl
(DST_REWRITE_IP4);
in sendmsg_v4_prog()
H
A
D
bind6_prog.c
122
if (ctx->user_ip6[0] !=
bpf_htonl
(SERV6_IP_0) ||
in bind_v6_prog()
123
ctx->user_ip6[1] !=
bpf_htonl
(SERV6_IP_1) ||
in bind_v6_prog()
124
ctx->user_ip6[2] !=
bpf_htonl
(SERV6_IP_2) ||
in bind_v6_prog()
125
ctx->user_ip6[3] !=
bpf_htonl
(SERV6_IP_3) ||
in bind_v6_prog()
167
ctx->user_ip6[0] =
bpf_htonl
(SERV6_REWRITE_IP_0);
in bind_v6_prog()
168
ctx->user_ip6[1] =
bpf_htonl
(SERV6_REWRITE_IP_1);
in bind_v6_prog()
169
ctx->user_ip6[2] =
bpf_htonl
(SERV6_REWRITE_IP_2);
in bind_v6_prog()
170
ctx->user_ip6[3] =
bpf_htonl
(SERV6_REWRITE_IP_3);
in bind_v6_prog()
H
A
D
recvmsg6_prog.c
37
ctx->user_ip6[0] =
bpf_htonl
(SERV6_IP_0);
in recvmsg6_prog()
38
ctx->user_ip6[1] =
bpf_htonl
(SERV6_IP_1);
in recvmsg6_prog()
39
ctx->user_ip6[2] =
bpf_htonl
(SERV6_IP_2);
in recvmsg6_prog()
40
ctx->user_ip6[3] =
bpf_htonl
(SERV6_IP_3);
in recvmsg6_prog()
H
A
D
test_tunnel_kern.c
143
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in ip6gretap_set_tunnel()
202
md.u.index =
bpf_htonl
(123);
in erspan_set_tunnel()
265
key.remote_ipv6[3] =
bpf_htonl
(0x11);
in ip4ip6erspan_set_tunnel()
280
md.u.index =
bpf_htonl
(123);
in ip4ip6erspan_set_tunnel()
453
__u32 assigned_ip =
bpf_htonl
(ASSIGNED_ADDR_VETH1);
in veth_set_outer_dst()
517
key.local_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in ip6vxlan_set_tunnel_dst()
518
key.remote_ipv6[3] =
bpf_htonl
(*local_ip);
in ip6vxlan_set_tunnel_dst()
548
key.local_ipv6[3] =
bpf_htonl
(*local_ip);
in ip6vxlan_set_tunnel_src()
549
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
in ip6vxlan_set_tunnel_src()
620
*(int *) &gopt.opt_data =
bpf_htonl
(
in geneve_set_tunnel()
[all...]
H
A
D
connect_force_port6.c
37
sa.sin6_addr.s6_addr32[3] =
bpf_htonl
(1);
in connect6()
58
ctx->user_ip6[3] =
bpf_htonl
(1);
in connect6()
72
ctx->user_ip6[0] =
bpf_htonl
(0xfc000000);
in getsockname6()
75
ctx->user_ip6[3] =
bpf_htonl
(1);
in getsockname6()
H
A
D
connect_force_port4.c
38
sa.sin_addr.s_addr =
bpf_htonl
(0x7f000001);
in connect4()
53
ctx->user_ip4 =
bpf_htonl
(0x7f000001);
in connect4()
67
ctx->user_ip4 =
bpf_htonl
(0x01020304);
in getsockname4()
H
A
D
xdp_synproxy_kern.c
163
sum +=
bpf_htonl
(len);
in csum_ipv6_magic()
164
sum +=
bpf_htonl
(proto);
in csum_ipv6_magic()
303
*tsval =
bpf_htonl
(cookie);
in tscookie_init()
485
*buf++ =
bpf_htonl
((TCPOPT_MSS << 24) | (TCPOLEN_MSS << 16) | mss);
in tcp_mkoptions()
490
if (tsopt[0] &
bpf_htonl
(1 << 4))
in tcp_mkoptions()
491
*buf++ =
bpf_htonl
((TCPOPT_SACK_PERM << 24) |
in tcp_mkoptions()
496
*buf++ =
bpf_htonl
((TCPOPT_NOP << 24) |
in tcp_mkoptions()
503
if ((tsopt[0] &
bpf_htonl
(0xf)) !=
bpf_htonl
(0xf))
in tcp_mkoptions()
504
*buf++ =
bpf_htonl
((TCPOPT_NO
in tcp_mkoptions()
[all...]
H
A
D
connect4_prog.c
42
sa.sin_addr.s_addr =
bpf_htonl
(SRC_REWRITE_IP4);
in do_bind()
156
tuple.ipv4.daddr =
bpf_htonl
(DST_REWRITE_IP4);
in connect_v4_prog()
194
ctx->user_ip4 =
bpf_htonl
(DST_REWRITE_IP4);
in connect_v4_prog()
H
A
D
bind4_prog.c
115
if (ctx->user_ip4 !=
bpf_htonl
(SERV4_IP) ||
in bind_v4_prog()
153
ctx->user_ip4 =
bpf_htonl
(SERV4_REWRITE_IP);
in bind_v4_prog()
H
A
D
test_sk_lookup.c
15
bpf_htonl
((((__u32)(a) & 0xffU) << 24) | \
20
{
bpf_htonl
(aaaa),
bpf_htonl
(bbbb),
bpf_htonl
(cccc),
bpf_htonl
(dddd) }
H
A
D
recvmsg4_prog.c
34
ctx->user_ip4 =
bpf_htonl
(SERV4_IP);
in recvmsg4_prog()
H
A
D
connect_ping.c
26
.sin_addr.s_addr =
bpf_htonl
(0x01010101),
in connect_v4_prog()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H
A
D
nat6to4.c
237
ip6.saddr.in6_u.u6_addr32[0] =
bpf_htonl
(0x20010db8);
in sched_cls_egress4_snat4_prog()
240
ip6.saddr.in6_u.u6_addr32[3] =
bpf_htonl
(1);
in sched_cls_egress4_snat4_prog()
241
ip6.daddr.in6_u.u6_addr32[0] =
bpf_htonl
(0x20010db8);
in sched_cls_egress4_snat4_prog()
244
ip6.daddr.in6_u.u6_addr32[3] =
bpf_htonl
(2);
in sched_cls_egress4_snat4_prog()
/kernel/linux/linux-5.10/tools/lib/bpf/
H
A
D
bpf_endian.h
86
#define
bpf_htonl
(x) \
macro
Completed in 18 milliseconds
1
2