Home
last modified time | relevance | path

Searched refs:bpf_sock_addr (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/
H A Dcgroup_getset_retval_hooks.h8 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 Dtest_sock_addr.c768 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 Dconnect4_prog.c36 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 Dbind_perm.c10 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 Dconnect_force_port4.c30 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 Dbind4_prog.c24 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 Dconnect_force_port6.c29 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 Dbind6_prog.c30 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 Dconnect_ping.c22 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 Dfreplace_connect_v4_prog.c13 int new_connect_v4_prog(struct bpf_sock_addr *ctx) in new_connect_v4_prog()
H A Dfreplace_connect4.c10 int new_do_bind(struct bpf_sock_addr *ctx) in new_do_bind()
H A Dconnect4_dropper.c17 int connect_v4_dropper(struct bpf_sock_addr *ctx) in connect_v4_dropper()
H A Drecvmsg4_prog.c17 int recvmsg4_prog(struct bpf_sock_addr *ctx) in recvmsg4_prog()
H A Dtest_ns_current_pid_tgid.c32 int cgroup_bind4(struct bpf_sock_addr *ctx) in cgroup_bind4()
H A Dsendmsg4_prog.c22 int sendmsg_v4_prog(struct bpf_sock_addr *ctx) in sendmsg_v4_prog()
H A Drecvmsg6_prog.c20 int recvmsg6_prog(struct bpf_sock_addr *ctx) in recvmsg6_prog()
H A Dsendmsg6_prog.c26 int sendmsg_v6_prog(struct bpf_sock_addr *ctx) in sendmsg_v6_prog()
H A Dsocket_cookie_prog.c33 int set_cookie(struct bpf_sock_addr *ctx) in set_cookie()
H A Dcgrp_ls_attach_cgroup.c24 int set_cookie(struct bpf_sock_addr *ctx) in set_cookie()
H A Dconnect6_prog.c28 int connect_v6_prog(struct bpf_sock_addr *ctx) in connect_v6_prog()
H A Dsock_destroy_prog.c28 int sock_connect(struct bpf_sock_addr *ctx) in sock_connect()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dwide_access.c7 offsetof(struct bpf_sock_addr, field[off])), \
48 offsetof(struct bpf_sock_addr, field[off])), \
/openbmc/linux/include/linux/
H A Dbpf_types.h19 struct bpf_sock_addr, struct bpf_sock_addr_kern)
/openbmc/linux/net/core/
H A Dfilter.c9091 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 Dbpf.h6597 struct bpf_sock_addr { struct

12