Home
last modified time | relevance | path

Searched refs:bpf_sock (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup_kern.c63 struct bpf_sock *sk; in bpf_sk_lookup_test0()
86 struct bpf_sock *sk; in bpf_sk_lookup_test1()
98 struct bpf_sock *sk; in bpf_sk_lookup_uaf()
113 struct bpf_sock *sk; in bpf_sk_lookup_modptr()
128 struct bpf_sock *sk; in bpf_sk_lookup_modptr_or_null()
151 struct bpf_sock *sk; in bpf_sk_lookup_test3()
163 struct bpf_sock *sk; in bpf_sk_lookup_test4()
Dtest_sock_fields.c48 struct bpf_sock listen_sk = {};
49 struct bpf_sock srv_sk = {};
50 struct bpf_sock cli_sk = {};
60 static void skcpy(struct bpf_sock *dst, in skcpy()
61 const struct bpf_sock *src) in skcpy()
126 struct bpf_sock *sk, *sk_ret; in egress_read_sock_fields()
221 struct bpf_sock *sk; in ingress_read_sock_fields()
Dtest_sk_lookup.c103 struct bpf_sock *sk; in redir_port()
122 struct bpf_sock *sk; in redir_ip4()
145 struct bpf_sock *sk; in redir_ip6()
170 struct bpf_sock *sk; in select_sock_a()
185 struct bpf_sock *sk; in select_sock_a_no_reuseport()
211 struct bpf_sock *sk; in sk_assign_eexist()
244 struct bpf_sock *sk; in sk_assign_replace_flag()
276 struct bpf_sock *sk = NULL; in sk_assign_null()
319 struct bpf_sock *sk1 = NULL, *sk2 = NULL; in access_ctx_sk()
385 struct bpf_sock *sk; in ctx_narrow_access()
[all …]
Dudp_limit.c17 int sock(struct bpf_sock *ctx) in sock()
46 int sock_release(struct bpf_sock *ctx) in sock_release()
Dkfunc_call_test.c14 struct bpf_sock *sk = skb->sk; in kfunc_call_test2()
29 struct bpf_sock *sk = skb->sk; in kfunc_call_test1()
Dnetns_cookie_prog.c33 struct bpf_sock *sk = ctx->sk; in get_netns_cookie_sockops()
65 struct bpf_sock *sk = msg->sk; in get_netns_cookie_sk_msg()
Dtest_tcp_check_syncookie_kern.c26 static __always_inline __s64 gen_syncookie(void *data_end, struct bpf_sock *sk, in gen_syncookie()
49 struct bpf_sock *sk; in check_syncookie()
Dtest_sk_assign.c94 struct bpf_sock *sk; in handle_udp()
126 struct bpf_sock *sk; in handle_tcp()
Dfreplace_cls_redirect.c22 struct bpf_sock *sk; in freplace_cls_redirect_test()
Dbind_perm.c12 struct bpf_sock *sk; in bind_prog()
Drecvmsg4_prog.c19 struct bpf_sock *sk; in recvmsg4_prog()
Drecvmsg6_prog.c22 struct bpf_sock *sk; in recvmsg6_prog()
Dkfunc_call_test_subprog.c16 struct bpf_sock *sk = skb->sk; in f1()
Dtest_sockmap_update.c30 struct bpf_sock *sk; in copy_sock_map()
Dtcp_rtt.c29 struct bpf_sock *sk; in _sockops()
Dsocket_cookie_prog.c54 struct bpf_sock *sk = ctx->sk; in update_cookie_sockops()
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_sock.c53 offsetof(struct bpf_sock, src_ip6[0])),
70 offsetof(struct bpf_sock, mark)),
87 offsetof(struct bpf_sock, src_ip4)),
104 offsetof(struct bpf_sock, src_port)),
235 offsetof(struct bpf_sock, src_ip6[3])),
239 offsetof(struct bpf_sock, src_port)),
265 offsetof(struct bpf_sock, src_ip4)),
269 offsetof(struct bpf_sock, src_port)),
/Linux-v5.15/samples/bpf/
Dtest_cgrp2_sock.c44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), in prog_load()
45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load()
62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load()
63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load()
70 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, priority)), in prog_load()
71 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), in prog_load()
Dsock_flags_kern.c9 int bpf_prog1(struct bpf_sock *sk) in bpf_prog1()
32 int bpf_prog2(struct bpf_sock *sk) in bpf_prog2()
Dtcp_dumpstats_kern.c29 struct bpf_sock *sk; in _sockops()
/Linux-v5.15/tools/testing/selftests/bpf/verifier/
Dsock.c20 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, family)),
34 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, type)),
62 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)),
81 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)),
98 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, family)),
116 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, state)),
134 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port)),
152 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port) + 1),
171 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_ip6[0]) + 1),
189 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)),
[all …]
Dref_tracking.c591 offsetof(struct bpf_sock, mark)),
696 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, offsetof(struct bpf_sock, type)),
724 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
747 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
771 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, src_port)),
792 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
/Linux-v5.15/include/uapi/linux/
Dbpf.h5285 __bpf_md_ptr(struct bpf_sock *, sk);
5339 struct bpf_sock { struct
5499 __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */
5537 __bpf_md_ptr(struct bpf_sock *, sk);
5538 __bpf_md_ptr(struct bpf_sock *, migrating_sk);
5669 __bpf_md_ptr(struct bpf_sock *, sk);
5721 __bpf_md_ptr(struct bpf_sock *, sk);
6199 __bpf_md_ptr(struct bpf_sock *, sk);
6217 __bpf_md_ptr(struct bpf_sock *, sk); /* Selected socket */
/Linux-v5.15/tools/include/uapi/linux/
Dbpf.h5285 __bpf_md_ptr(struct bpf_sock *, sk);
5339 struct bpf_sock { struct
5499 __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */
5537 __bpf_md_ptr(struct bpf_sock *, sk);
5538 __bpf_md_ptr(struct bpf_sock *, migrating_sk);
5669 __bpf_md_ptr(struct bpf_sock *, sk);
5721 __bpf_md_ptr(struct bpf_sock *, sk);
6199 __bpf_md_ptr(struct bpf_sock *, sk);
6217 __bpf_md_ptr(struct bpf_sock *, sk); /* Selected socket */
/Linux-v5.15/net/core/
Dfilter.c5125 BPF_CALL_5(bpf_sock_ops_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument
5128 return _bpf_setsockopt(bpf_sock->sk, level, optname, optval, optlen); in BPF_CALL_5()
5142 static int bpf_sock_ops_get_syn(struct bpf_sock_ops_kern *bpf_sock, in bpf_sock_ops_get_syn() argument
5145 struct sk_buff *syn_skb = bpf_sock->syn_skb; in bpf_sock_ops_get_syn()
5167 struct sock *sk = bpf_sock->sk; in bpf_sock_ops_get_syn()
5210 BPF_CALL_5(bpf_sock_ops_getsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument
5218 ret = bpf_sock_ops_get_syn(bpf_sock, optname, &start); in BPF_CALL_5()
5235 return _bpf_getsockopt(bpf_sock->sk, level, optname, optval, optlen); in BPF_CALL_5()
5249 BPF_CALL_2(bpf_sock_ops_cb_flags_set, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_2() argument
5252 struct sock *sk = bpf_sock->sk; in BPF_CALL_2()
[all …]

12