Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup_kern.c63 struct bpf_sock *sk; in bpf_sk_lookup_test0()
85 struct bpf_sock *sk; in bpf_sk_lookup_test1()
97 struct bpf_sock *sk; in bpf_sk_lookup_uaf()
112 struct bpf_sock *sk; in bpf_sk_lookup_modptr()
127 struct bpf_sock *sk; in bpf_sk_lookup_modptr_or_null()
150 struct bpf_sock *sk; in bpf_sk_lookup_test3()
162 struct bpf_sock *sk; in bpf_sk_lookup_test4()
Dtest_sock_fields_kern.c41 __type(value, struct bpf_sock);
82 static void skcpy(struct bpf_sock *dst, in skcpy()
83 const struct bpf_sock *src) in skcpy()
147 struct bpf_sock *sk, *sk_ret; in egress_read_sock_fields()
219 struct bpf_sock *sk, *sk_ret; in ingress_read_sock_fields()
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()
Dsocket_cookie_prog.c44 struct bpf_sock *sk; in update_cookie()
Dtcp_rtt.c30 struct bpf_sock *sk; in _sockops()
Dconnect4_prog.c26 struct bpf_sock *sk; in connect_v4_prog()
Dconnect6_prog.c34 struct bpf_sock *sk; in connect_v6_prog()
/Linux-v5.4/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)),
Dbpf_helpers.h170 static struct bpf_sock *(*bpf_sk_lookup_tcp)(void *ctx,
175 static struct bpf_sock *(*bpf_skc_lookup_tcp)(void *ctx,
180 static struct bpf_sock *(*bpf_sk_lookup_udp)(void *ctx,
185 static int (*bpf_sk_release)(struct bpf_sock *sk) =
197 static struct bpf_sock *(*bpf_sk_fullsock)(struct bpf_sock *sk) =
199 static struct bpf_tcp_sock *(*bpf_tcp_sock)(struct bpf_sock *sk) =
201 static struct bpf_sock *(*bpf_get_listener_sock)(struct bpf_sock *sk) =
205 static int (*bpf_tcp_check_syncookie)(struct bpf_sock *sk,
227 static void *(*bpf_sk_storage_get)(void *map, struct bpf_sock *sk,
230 static int (*bpf_sk_storage_delete)(void *map, struct bpf_sock *sk) =
[all …]
Dtest_sock_fields.c82 static void print_sk(const struct bpf_sock *sk) in print_sk()
125 struct bpf_sock srv_sk, cli_sk, listen_sk; in check_result()
/Linux-v5.4/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()
Dhbm_kern.h89 struct bpf_sock *sk; in get_tcp_info()
/Linux-v5.4/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)),
695 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, offsetof(struct bpf_sock, type)),
722 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
744 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
767 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, src_port)),
788 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
Dunpriv.c328 offsetof(struct bpf_sock, mark)),
361 offsetof(struct bpf_sock, mark)),
/Linux-v5.4/include/uapi/linux/
Dbpf.h3007 __bpf_md_ptr(struct bpf_sock *, sk);
3060 struct bpf_sock { struct
3304 __bpf_md_ptr(struct bpf_sock *, sk);
3356 __bpf_md_ptr(struct bpf_sock *, sk);
3606 __bpf_md_ptr(struct bpf_sock *, sk);
/Linux-v5.4/tools/include/uapi/linux/
Dbpf.h3007 __bpf_md_ptr(struct bpf_sock *, sk);
3060 struct bpf_sock { struct
3304 __bpf_md_ptr(struct bpf_sock *, sk);
3356 __bpf_md_ptr(struct bpf_sock *, sk);
3606 __bpf_md_ptr(struct bpf_sock *, sk);
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dskb_ctx.c64 skb.sk = (struct bpf_sock *)1; in test_skb_ctx()
/Linux-v5.4/net/core/
Dfilter.c4215 BPF_CALL_5(bpf_sockopt_event_output, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument
4235 BPF_CALL_5(bpf_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument
4238 struct sock *sk = bpf_sock->sk; in BPF_CALL_5()
4339 bool reinit = bpf_sock->op > BPF_SOCK_OPS_NEEDS_ECN; in BPF_CALL_5()
4397 BPF_CALL_5(bpf_getsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument
4400 struct sock *sk = bpf_sock->sk; in BPF_CALL_5()
4480 BPF_CALL_2(bpf_sock_ops_cb_flags_set, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_2() argument
4483 struct sock *sk = bpf_sock->sk; in BPF_CALL_2()
6643 case offsetof(struct bpf_sock, bound_dev_if): in __sock_filter_check_attach_type()
6644 case offsetof(struct bpf_sock, mark): in __sock_filter_check_attach_type()
[all …]