Searched refs:user_port (Results 1 – 10 of 10) sorted by relevance
| /Linux-v5.10/tools/testing/selftests/bpf/progs/ |
| D | connect_force_port4.c | 43 if (ctx->user_port == bpf_htons(60000)) { in connect4() 50 orig->port = ctx->user_port; in connect4() 53 ctx->user_port = bpf_htons(60123); in connect4() 62 if (ctx->user_port == bpf_htons(60123)) { in getsockname4() 64 ctx->user_port = bpf_htons(60000); in getsockname4() 75 if (ctx->user_port == bpf_htons(60123)) { in getpeername4() 79 ctx->user_port = orig->port; in getpeername4()
|
| D | connect_force_port6.c | 42 if (ctx->user_port == bpf_htons(60000)) { in connect6() 52 orig->port = ctx->user_port; in connect6() 58 ctx->user_port = bpf_htons(60124); in connect6() 67 if (ctx->user_port == bpf_htons(60124)) { in getsockname6() 72 ctx->user_port = bpf_htons(60000); in getsockname6() 83 if (ctx->user_port == bpf_htons(60124)) { in getpeername6() 90 ctx->user_port = orig->port; in getpeername6()
|
| D | sendmsg4_prog.c | 38 ctx->user_port == bpf_htons(DST_PORT)) { in sendmsg_v4_prog() 40 ctx->user_port = bpf_htons(DST_REWRITE_PORT4); in sendmsg_v4_prog()
|
| D | sendmsg6_prog.c | 50 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in sendmsg_v6_prog()
|
| D | connect6_prog.c | 76 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog()
|
| D | connect4_prog.c | 196 ctx->user_port = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
|
| /Linux-v5.10/tools/testing/selftests/bpf/ |
| D | test_sock_addr.c | 748 offsetof(struct bpf_sock_addr, user_port)), in bind4_prog_load() 753 offsetof(struct bpf_sock_addr, user_port)), in bind4_prog_load() 758 offsetof(struct bpf_sock_addr, user_port)), in bind4_prog_load() 770 offsetof(struct bpf_sock_addr, user_port)), in bind4_prog_load() 835 offsetof(struct bpf_sock_addr, user_port)), in bind6_prog_load() 950 offsetof(struct bpf_sock_addr, user_port)), in sendmsg4_rw_asm_prog_load() 991 offsetof(struct bpf_sock_addr, user_port)), in recvmsg4_rw_asm_prog_load() 1048 offsetof(struct bpf_sock_addr, user_port)), in sendmsg6_rw_dst_asm_prog_load() 1087 offsetof(struct bpf_sock_addr, user_port)), in recvmsg6_rw_asm_prog_load()
|
| /Linux-v5.10/tools/include/uapi/linux/ |
| D | bpf.h | 4470 __u32 user_port; /* Allows 1,2,4-byte read and 4-byte write. member
|
| /Linux-v5.10/include/uapi/linux/ |
| D | bpf.h | 4470 __u32 user_port; /* Allows 1,2,4-byte read and 4-byte write. member
|
| /Linux-v5.10/net/core/ |
| D | filter.c | 7995 case bpf_ctx_range(struct bpf_sock_addr, user_port): in sock_addr_is_valid_access() 8991 case offsetof(struct bpf_sock_addr, user_port): in sock_addr_convert_ctx_access()
|