OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:bpf_htonl
(Results
1 - 7
of
7
) sorted by null
/external/linux-kselftest/tools/testing/selftests/bpf/
sendmsg6_prog.c
32
if (ctx->msg_src_ip6[3] ==
bpf_htonl
(1) ||
33
ctx->msg_src_ip6[3] ==
bpf_htonl
(0)) {
34
ctx->msg_src_ip6[0] =
bpf_htonl
(SRC_REWRITE_IP6_0);
35
ctx->msg_src_ip6[1] =
bpf_htonl
(SRC_REWRITE_IP6_1);
36
ctx->msg_src_ip6[2] =
bpf_htonl
(SRC_REWRITE_IP6_2);
37
ctx->msg_src_ip6[3] =
bpf_htonl
(SRC_REWRITE_IP6_3);
46
ctx->user_ip6[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
47
ctx->user_ip6[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
48
ctx->user_ip6[2] =
bpf_htonl
(DST_REWRITE_IP6_2);
49
ctx->user_ip6[3] =
bpf_htonl
(DST_REWRITE_IP6_3)
[
all
...]
connect6_prog.c
35
ctx->user_ip6[0] =
bpf_htonl
(DST_REWRITE_IP6_0);
36
ctx->user_ip6[1] =
bpf_htonl
(DST_REWRITE_IP6_1);
37
ctx->user_ip6[2] =
bpf_htonl
(DST_REWRITE_IP6_2);
38
ctx->user_ip6[3] =
bpf_htonl
(DST_REWRITE_IP6_3);
49
sa.sin6_addr.s6_addr32[0] =
bpf_htonl
(SRC_REWRITE_IP6_0);
50
sa.sin6_addr.s6_addr32[1] =
bpf_htonl
(SRC_REWRITE_IP6_1);
51
sa.sin6_addr.s6_addr32[2] =
bpf_htonl
(SRC_REWRITE_IP6_2);
52
sa.sin6_addr.s6_addr32[3] =
bpf_htonl
(SRC_REWRITE_IP6_3);
sendmsg4_prog.c
28
if (ctx->msg_src_ip4 ==
bpf_htonl
(SRC1_IP4) ||
29
ctx->msg_src_ip4 ==
bpf_htonl
(SRC2_IP4)) {
30
ctx->msg_src_ip4 =
bpf_htonl
(SRC_REWRITE_IP4);
37
if ((ctx->user_ip4 >> 24) == (
bpf_htonl
(DST_IP4) >> 24) &&
39
ctx->user_ip4 =
bpf_htonl
(DST_REWRITE_IP4);
connect4_prog.c
27
ctx->user_ip4 =
bpf_htonl
(DST_REWRITE_IP4);
36
sa.sin_addr.s_addr =
bpf_htonl
(SRC_REWRITE_IP4);
test_tunnel_kern.c
92
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
152
md.u.index =
bpf_htonl
(123);
221
key.remote_ipv6[3] =
bpf_htonl
(0x11);
236
md.u.index =
bpf_htonl
(123);
362
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
417
*(int *) &gopt.opt_data =
bpf_htonl
(0xdeadbeef);
468
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
487
*(int *) &gopt.opt_data =
bpf_htonl
(0xfeedbeef);
599
key.remote_ipv6[3] =
bpf_htonl
(0x11); /* ::11 */
626
bpf_trace_printk(fmt, sizeof(fmt),
bpf_htonl
(key.remote_ipv6[0])
[
all
...]
bpf_endian.h
50
#define
bpf_htonl
(x) \
macro
test_lwt_seg6local.c
22
#define htonll(x) ((
bpf_htonl
(1)) == 1 ? (x) : ((uint64_t)
bpf_htonl
((x) & \
23
0xFFFFFFFF) << 32) |
bpf_htonl
((x) >> 32))
Completed in 1264 milliseconds