Searched refs:user_ip4 (Results 1 – 10 of 10) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bind4_prog.c | 104 __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 |= load_byte(ctx->user_ip4, 0, sizeof(user_ip4)); in bind_v4_prog() 124 user_ip4 |= load_byte(ctx->user_ip4, 1, sizeof(user_ip4)); in bind_v4_prog() 125 user_ip4 |= load_byte(ctx->user_ip4, 2, sizeof(user_ip4)); in bind_v4_prog() 126 user_ip4 |= load_byte(ctx->user_ip4, 3, sizeof(user_ip4)); 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 |= load_word(ctx->user_ip4, 0, sizeof(user_ip4)); in bind_v4_prog() [all …]
|
H A D | connect_force_port4.c | 50 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 D | sendmsg4_prog.c | 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 | getsockname4_prog.c | 18 ctx->user_ip4 = bpf_htonl(REWRITE_ADDRESS_IP4); in getsockname_v4_prog()
|
H A D | getpeername4_prog.c | 18 ctx->user_ip4 = bpf_htonl(REWRITE_ADDRESS_IP4); in getpeername_v4_prog()
|
H A D | recvmsg4_prog.c | 34 ctx->user_ip4 = bpf_htonl(SERV4_IP); in recvmsg4_prog()
|
H A D | connect4_prog.c | 196 ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 6749 __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. member
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6749 __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. member
|
/linux/net/core/ |
H A D | filter.c | 9122 case bpf_ctx_range(struct bpf_sock_addr, user_ip4): in sock_addr_is_valid_access() 9168 case bpf_ctx_range(struct bpf_sock_addr, user_ip4): in sock_addr_is_valid_access() 10258 case offsetof(struct bpf_sock_addr, user_ip4): in sock_addr_convert_ctx_access()
|