Home
last modified time | relevance | path

Searched refs:user_ip4 (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dbind4_prog.c104 __u32 user_ip4; in bind_v4_prog() local
117 if (ctx->user_ip4 != bpf_htonl(SERV4_IP) || in bind_v4_prog()
122 user_ip4 = 0; in bind_v4_prog()
123 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[0] << 0; in bind_v4_prog()
124 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[1] << 8; in bind_v4_prog()
125 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[2] << 16; in bind_v4_prog()
126 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[3] << 24; in bind_v4_prog()
127 if (ctx->user_ip4 != user_ip4) in bind_v4_prog()
137 user_ip4 = 0; in bind_v4_prog()
138 user_ip4 |= ((volatile __u16 *)&ctx->user_ip4)[0] << 0; in bind_v4_prog()
[all …]
Dconnect_force_port4.c51 orig->addr = ctx->user_ip4; in connect4()
54 ctx->user_ip4 = bpf_htonl(0x7f000001); in connect4()
68 ctx->user_ip4 = bpf_htonl(0x01020304); in getsockname4()
86 ctx->user_ip4 = orig->addr; in getpeername4()
Drecvmsg4_prog.c20 __u32 user_ip4; in recvmsg4_prog() local
36 ctx->user_ip4 = bpf_htonl(SERV4_IP); in recvmsg4_prog()
Dsendmsg4_prog.c44 if ((ctx->user_ip4 >> 24) == (bpf_htonl(DST_IP4) >> 24) && in sendmsg_v4_prog()
46 ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4); in sendmsg_v4_prog()
Drecvmsg6_prog.c23 __u32 user_ip4; in recvmsg6_prog() local
Dconnect4_prog.c195 ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()
/tools/testing/selftests/bpf/
Dtest_sock_addr.c775 offsetof(struct bpf_sock_addr, user_ip4)), in sendmsg4_rw_asm_prog_load()
/tools/include/uapi/linux/
Dbpf.h5657 __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. member