Home
last modified time | relevance | path

Searched refs:user_ip6 (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dbind6_prog.c108 __u32 user_ip6; in bind_v6_prog() local
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()
131 user_ip6 = 0; in bind_v6_prog()
132 user_ip6 |= ((volatile __u8 *)&ctx->user_ip6[i])[0] << 0; in bind_v6_prog()
133 user_ip6 |= ((volatile __u8 *)&ctx->user_ip6[i])[1] << 8; in bind_v6_prog()
134 user_ip6 |= ((volatile __u8 *)&ctx->user_ip6[i])[2] << 16; in bind_v6_prog()
135 user_ip6 |= ((volatile __u8 *)&ctx->user_ip6[i])[3] << 24; in bind_v6_prog()
[all …]
Dconnect_force_port6.c49 orig->addr[0] = ctx->user_ip6[0]; in connect6()
50 orig->addr[1] = ctx->user_ip6[1]; in connect6()
51 orig->addr[2] = ctx->user_ip6[2]; in connect6()
52 orig->addr[3] = ctx->user_ip6[3]; in connect6()
55 ctx->user_ip6[0] = 0; in connect6()
56 ctx->user_ip6[1] = 0; in connect6()
57 ctx->user_ip6[2] = 0; in connect6()
58 ctx->user_ip6[3] = bpf_htonl(1); in connect6()
72 ctx->user_ip6[0] = bpf_htonl(0xfc000000); in getsockname6()
73 ctx->user_ip6[1] = 0; in getsockname6()
[all …]
Dsendmsg6_prog.c47 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_2); in sendmsg_v6_prog()
51 ctx->user_ip6[3] = bpf_htonl(DST_REWRITE_IP6_3); in sendmsg_v6_prog()
Drecvmsg6_prog.c37 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()
Dconnect6_prog.c69 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()
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Dwide_access.c18 BPF_SOCK_ADDR_STORE(user_ip6, 0, ACCEPT,
20 BPF_SOCK_ADDR_STORE(user_ip6, 1, REJECT,
23 BPF_SOCK_ADDR_STORE(user_ip6, 2, ACCEPT,
25 BPF_SOCK_ADDR_STORE(user_ip6, 3, REJECT,
60 BPF_SOCK_ADDR_LOAD(user_ip6, 0, ACCEPT,
62 BPF_SOCK_ADDR_LOAD(user_ip6, 1, REJECT,
65 BPF_SOCK_ADDR_LOAD(user_ip6, 2, ACCEPT,
67 BPF_SOCK_ADDR_LOAD(user_ip6, 3, REJECT,
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sock_addr.c846 STORE_IPV6(user_ip6, dst6_rw_addr.sin6_addr.s6_addr32), in sendmsg6_rw_dst_asm_prog_load()
/Linux-v6.6/net/core/
Dfilter.c8951 case bpf_ctx_range_till(struct bpf_sock_addr, user_ip6[0], user_ip6[3]): in sock_addr_is_valid_access()
8985 case bpf_ctx_range_till(struct bpf_sock_addr, user_ip6[0], user_ip6[3]): in sock_addr_is_valid_access()
8995 user_ip6)) in sock_addr_is_valid_access()
9008 user_ip6)) in sock_addr_is_valid_access()
10082 case bpf_ctx_range_till(struct bpf_sock_addr, user_ip6[0], user_ip6[3]): in sock_addr_convert_ctx_access()
10084 off -= offsetof(struct bpf_sock_addr, user_ip6[0]); in sock_addr_convert_ctx_access()
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h6570 __u32 user_ip6[4]; /* Allows 1,2,4,8-byte read and 4,8-byte write. member
/Linux-v6.6/include/uapi/linux/
Dbpf.h6570 __u32 user_ip6[4]; /* Allows 1,2,4,8-byte read and 4,8-byte write. member