/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | cgroup_getset_retval_hooks.h | 8 BPF_RETVAL_HOOK(bind4, "cgroup/bind4", bpf_sock_addr, 0) 9 BPF_RETVAL_HOOK(bind6, "cgroup/bind6", bpf_sock_addr, 0) 10 BPF_RETVAL_HOOK(connect4, "cgroup/connect4", bpf_sock_addr, 0) 11 BPF_RETVAL_HOOK(connect6, "cgroup/connect6", bpf_sock_addr, 0) 12 BPF_RETVAL_HOOK(post_bind4, "cgroup/post_bind4", bpf_sock_addr, 0) 13 BPF_RETVAL_HOOK(post_bind6, "cgroup/post_bind6", bpf_sock_addr, 0) 14 BPF_RETVAL_HOOK(sendmsg4, "cgroup/sendmsg4", bpf_sock_addr, 0) 15 BPF_RETVAL_HOOK(sendmsg6, "cgroup/sendmsg6", bpf_sock_addr, 0) 17 BPF_RETVAL_HOOK(recvmsg4, "cgroup/recvmsg4", bpf_sock_addr, -EINVAL) 18 BPF_RETVAL_HOOK(recvmsg6, "cgroup/recvmsg6", bpf_sock_addr, -EINVAL) [all …]
|
H A D | test_sock_addr.c | 768 offsetof(struct bpf_sock_addr, family)), in sendmsg4_rw_asm_prog_load() 773 offsetof(struct bpf_sock_addr, type)), in sendmsg4_rw_asm_prog_load() 779 offsetof(struct bpf_sock_addr, msg_src_ip4)), in sendmsg4_rw_asm_prog_load() 784 offsetof(struct bpf_sock_addr, user_ip4)), in sendmsg4_rw_asm_prog_load() 789 offsetof(struct bpf_sock_addr, user_port)), in sendmsg4_rw_asm_prog_load() 831 offsetof(struct bpf_sock_addr, family)), in sendmsg6_rw_dst_asm_prog_load() 837 offsetof(struct bpf_sock_addr, DST[N])) in sendmsg6_rw_dst_asm_prog_load() 851 offsetof(struct bpf_sock_addr, user_port)), in sendmsg6_rw_dst_asm_prog_load()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | connect4_prog.c | 36 int do_bind(struct bpf_sock_addr *ctx) in do_bind() 50 static __inline int verify_cc(struct bpf_sock_addr *ctx, in verify_cc() 69 static __inline int set_cc(struct bpf_sock_addr *ctx) in set_cc() 87 static __inline int bind_to_device(struct bpf_sock_addr *ctx) in bind_to_device() 110 static __inline int set_keepalive(struct bpf_sock_addr *ctx) in set_keepalive() 134 static __inline int set_notsent_lowat(struct bpf_sock_addr *ctx) in set_notsent_lowat() 147 int connect_v4_prog(struct bpf_sock_addr *ctx) in connect_v4_prog()
|
H A D | bind_perm.c | 10 static __always_inline int bind_prog(struct bpf_sock_addr *ctx, int family) in bind_prog() 34 int bind_v4_prog(struct bpf_sock_addr *ctx) in bind_v4_prog() 40 int bind_v6_prog(struct bpf_sock_addr *ctx) in bind_v6_prog()
|
H A D | connect_force_port4.c | 30 int connect4(struct bpf_sock_addr *ctx) in connect4() 60 int getsockname4(struct bpf_sock_addr *ctx) in getsockname4() 74 int getpeername4(struct bpf_sock_addr *ctx) in getpeername4()
|
H A D | bind4_prog.c | 24 static __inline int bind_to_device(struct bpf_sock_addr *ctx) in bind_to_device() 58 static __inline int bind_reuseport(struct bpf_sock_addr *ctx) in bind_reuseport() 79 static __inline int misc_opts(struct bpf_sock_addr *ctx, int opt) in misc_opts() 99 int bind_v4_prog(struct bpf_sock_addr *ctx) in bind_v4_prog()
|
H A D | connect_force_port6.c | 29 int connect6(struct bpf_sock_addr *ctx) in connect6() 65 int getsockname6(struct bpf_sock_addr *ctx) in getsockname6() 82 int getpeername6(struct bpf_sock_addr *ctx) in getpeername6()
|
H A D | bind6_prog.c | 30 static __inline int bind_to_device(struct bpf_sock_addr *ctx) in bind_to_device() 64 static __inline int bind_reuseport(struct bpf_sock_addr *ctx) in bind_reuseport() 85 static __inline int misc_opts(struct bpf_sock_addr *ctx, int opt) in misc_opts() 105 int bind_v6_prog(struct bpf_sock_addr *ctx) in bind_v6_prog()
|
H A D | connect_ping.c | 22 int connect_v4_prog(struct bpf_sock_addr *ctx) in connect_v4_prog() 38 int connect_v6_prog(struct bpf_sock_addr *ctx) in connect_v6_prog()
|
H A D | freplace_connect_v4_prog.c | 13 int new_connect_v4_prog(struct bpf_sock_addr *ctx) in new_connect_v4_prog()
|
H A D | freplace_connect4.c | 10 int new_do_bind(struct bpf_sock_addr *ctx) in new_do_bind()
|
H A D | connect4_dropper.c | 17 int connect_v4_dropper(struct bpf_sock_addr *ctx) in connect_v4_dropper()
|
H A D | recvmsg4_prog.c | 17 int recvmsg4_prog(struct bpf_sock_addr *ctx) in recvmsg4_prog()
|
H A D | test_ns_current_pid_tgid.c | 32 int cgroup_bind4(struct bpf_sock_addr *ctx) in cgroup_bind4()
|
H A D | sendmsg4_prog.c | 22 int sendmsg_v4_prog(struct bpf_sock_addr *ctx) in sendmsg_v4_prog()
|
H A D | recvmsg6_prog.c | 20 int recvmsg6_prog(struct bpf_sock_addr *ctx) in recvmsg6_prog()
|
H A D | sendmsg6_prog.c | 26 int sendmsg_v6_prog(struct bpf_sock_addr *ctx) in sendmsg_v6_prog()
|
H A D | socket_cookie_prog.c | 33 int set_cookie(struct bpf_sock_addr *ctx) in set_cookie()
|
H A D | cgrp_ls_attach_cgroup.c | 24 int set_cookie(struct bpf_sock_addr *ctx) in set_cookie()
|
H A D | connect6_prog.c | 28 int connect_v6_prog(struct bpf_sock_addr *ctx) in connect_v6_prog()
|
H A D | sock_destroy_prog.c | 28 int sock_connect(struct bpf_sock_addr *ctx) in sock_connect()
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | wide_access.c | 7 offsetof(struct bpf_sock_addr, field[off])), \ 48 offsetof(struct bpf_sock_addr, field[off])), \
|
/openbmc/linux/include/linux/ |
H A D | bpf_types.h | 19 struct bpf_sock_addr, struct bpf_sock_addr_kern)
|
/openbmc/linux/net/core/ |
H A D | filter.c | 9091 struct bpf_sock_addr, in sock_addr_is_valid_access() 9096 struct bpf_sock_addr, in sock_addr_is_valid_access() 9104 struct bpf_sock_addr, in sock_addr_is_valid_access() 9109 struct bpf_sock_addr, in sock_addr_is_valid_access() 9117 case offsetof(struct bpf_sock_addr, sk): in sock_addr_is_valid_access() 10173 case offsetof(struct bpf_sock_addr, user_ip4): in sock_addr_convert_ctx_access() 10188 case offsetof(struct bpf_sock_addr, user_port): in sock_addr_convert_ctx_access() 10207 case offsetof(struct bpf_sock_addr, family): in sock_addr_convert_ctx_access() 10212 case offsetof(struct bpf_sock_addr, type): in sock_addr_convert_ctx_access() 10217 case offsetof(struct bpf_sock_addr, protocol): in sock_addr_convert_ctx_access() [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6597 struct bpf_sock_addr { struct
|