Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
Dconnect_force_port4.c43 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()
Dconnect_force_port6.c42 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()
Dsendmsg4_prog.c38 ctx->user_port == bpf_htons(DST_PORT)) { in sendmsg_v4_prog()
40 ctx->user_port = bpf_htons(DST_REWRITE_PORT4); in sendmsg_v4_prog()
Dsendmsg6_prog.c50 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in sendmsg_v6_prog()
Dconnect6_prog.c76 ctx->user_port = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog()
Dconnect4_prog.c196 ctx->user_port = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
/tools/testing/selftests/bpf/
Dtest_sock_addr.c748 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()
/tools/include/uapi/linux/
Dbpf.h4476 __u32 user_port; /* Allows 1,2,4-byte read and 4-byte write. member