Searched refs:user_port (Results 1 – 19 of 19) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bind4_prog.c | 105 __u16 user_port; in bind_v4_prog() local 118 ctx->user_port != bpf_htons(SERV4_PORT)) in bind_v4_prog() 130 user_port = 0; in bind_v4_prog() 131 user_port |= load_byte(ctx->user_port, 0, sizeof(user_port)); in bind_v4_prog() 132 user_port |= load_byte(ctx->user_port, 1, sizeof(user_port)); in bind_v4_prog() 133 if (ctx->user_port != user_port) in bind_v4_prog() 156 ctx->user_port = bpf_htons(SERV4_REWRITE_PORT); in bind_v4_prog()
|
H A D | bind6_prog.c | 111 __u16 user_port; in bind_v6_prog() local 128 ctx->user_port != bpf_htons(SERV6_PORT)) in bind_v6_prog() 142 user_port = 0; in bind_v6_prog() 143 user_port |= load_byte(ctx->user_port, 0, sizeof(user_port)); in bind_v6_prog() 144 user_port |= load_byte(ctx->user_port, 1, sizeof(user_port)); in bind_v6_prog() 145 if (ctx->user_port != user_port) in bind_v6_prog() 173 ctx->user_port = bpf_htons(SERV6_REWRITE_PORT); in bind_v6_prog()
|
H A D | connect_force_port4.c | 44 if (ctx->user_port == bpf_htons(60000)) { in connect4() 51 orig->port = ctx->user_port; in connect4() 54 ctx->user_port = bpf_htons(60123); in connect4() 66 if (ctx->user_port == bpf_htons(60123)) { in getsockname4() 68 ctx->user_port = bpf_htons(60000); in getsockname4() 82 if (ctx->user_port == bpf_htons(60123)) { in getpeername4() 86 ctx->user_port = orig->port; in getpeername4()
|
H A D | connect_force_port6.c | 43 if (ctx->user_port == bpf_htons(60000)) { in connect6() 53 orig->port = ctx->user_port; in connect6() 59 ctx->user_port = bpf_htons(60124); in connect6() 71 if (ctx->user_port == bpf_htons(60124)) { in getsockname6() 76 ctx->user_port = bpf_htons(60000); in getsockname6() 90 if (ctx->user_port == bpf_htons(60124)) { in getpeername6() 97 ctx->user_port = orig->port; in getpeername6()
|
H A D | sendmsg6_prog.c | 58 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in sendmsg_v6_prog() 82 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in sendmsg_v6_v4mapped_prog() 102 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in sendmsg_v6_wildcard_prog()
|
H A D | sendmsg4_prog.c | 41 ctx->user_port == bpf_htons(DST_PORT)) { in sendmsg_v4_prog() 43 ctx->user_port = bpf_htons(DST_REWRITE_PORT4); in sendmsg_v4_prog()
|
H A D | getsockname4_prog.c | 19 ctx->user_port = bpf_htons(REWRITE_ADDRESS_PORT4); in getsockname_v4_prog()
|
H A D | getpeername4_prog.c | 19 ctx->user_port = bpf_htons(REWRITE_ADDRESS_PORT4); in getpeername_v4_prog()
|
H A D | connect4_dropper.c | 21 if (ctx->user_port == bpf_htons(60120)) in connect_v4_dropper()
|
H A D | getpeername6_prog.c | 26 ctx->user_port = bpf_htons(REWRITE_ADDRESS_PORT6); in getpeername_v6_prog()
|
H A D | getsockname6_prog.c | 26 ctx->user_port = bpf_htons(REWRITE_ADDRESS_PORT6); in getsockname_v6_prog()
|
H A D | recvmsg4_prog.c | 35 ctx->user_port = bpf_htons(SERV4_PORT); in recvmsg4_prog()
|
H A D | bind_perm.c | 27 if (ctx->user_port == bpf_htons(111)) in bind_prog()
|
H A D | recvmsg6_prog.c | 41 ctx->user_port = bpf_htons(SERV6_PORT); in recvmsg6_prog()
|
H A D | connect6_prog.c | 74 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog()
|
H A D | connect4_prog.c | 197 ctx->user_port = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6756 __u32 user_port; /* Allows 1,2,4-byte read and 4-byte write. member
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 6756 __u32 user_port; /* Allows 1,2,4-byte read and 4-byte write. member
|
/linux/net/core/ |
H A D | filter.c | 9163 case bpf_ctx_range(struct bpf_sock_addr, user_port): in sock_addr_is_valid_access() 10267 case offsetof(struct bpf_sock_addr, user_port): in sock_addr_convert_ctx_access()
|