Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbind4_prog.c102 __u32 user_ip4; in bind_v4_prog() local
115 if (ctx->user_ip4 != bpf_htonl(SERV4_IP) || in bind_v4_prog()
120 user_ip4 = 0; in bind_v4_prog()
121 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[0] << 0; in bind_v4_prog()
122 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[1] << 8; in bind_v4_prog()
123 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[2] << 16; in bind_v4_prog()
124 user_ip4 |= ((volatile __u8 *)&ctx->user_ip4)[3] << 24; in bind_v4_prog()
125 if (ctx->user_ip4 != user_ip4) in bind_v4_prog()
135 user_ip4 = 0; in bind_v4_prog()
136 user_ip4 |= ((volatile __u16 *)&ctx->user_ip4)[0] << 0; in bind_v4_prog()
[all …]
H A Dconnect_force_port4.c50 orig->addr = ctx->user_ip4; in connect4()
53 ctx->user_ip4 = bpf_htonl(0x7f000001); in connect4()
67 ctx->user_ip4 = bpf_htonl(0x01020304); in getsockname4()
85 ctx->user_ip4 = orig->addr; in getpeername4()
H A Dsendmsg4_prog.c40 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 Drecvmsg4_prog.c34 ctx->user_ip4 = bpf_htonl(SERV4_IP); in recvmsg4_prog()
H A Dconnect4_prog.c194 ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sock_addr.c784 offsetof(struct bpf_sock_addr, user_ip4)), in sendmsg4_rw_asm_prog_load()
/openbmc/linux/include/uapi/linux/
H A Dbpf.h6596 __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. member
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h6599 __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. member
/openbmc/linux/net/core/
H A Dfilter.c9058 case bpf_ctx_range(struct bpf_sock_addr, user_ip4): in sock_addr_is_valid_access()
9104 case bpf_ctx_range(struct bpf_sock_addr, user_ip4): in sock_addr_is_valid_access()
10196 case offsetof(struct bpf_sock_addr, user_ip4): in sock_addr_convert_ctx_access()