| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tcp_hdr_options.c | 42 static bool skops_want_cookie(const struct bpf_sock_ops *skops) 47 static bool skops_current_mss(const struct bpf_sock_ops *skops) in skops_want_cookie() 82 static int store_option(struct bpf_sock_ops *skops, in write_test_option() 127 static int load_option(struct bpf_sock_ops *skops, in parse_test_option() 158 static int synack_opt_len(struct bpf_sock_ops *skops) in load_option() 186 static int write_synack_opt(struct bpf_sock_ops *skops) in synack_opt_len() 203 static int syn_opt_len(struct bpf_sock_ops *skops) in write_synack_opt() 221 static int write_syn_opt(struct bpf_sock_ops *skops) in syn_opt_len() 229 static int fin_opt_len(struct bpf_sock_ops *skops) in write_syn_opt() 258 static int write_fin_opt(struct bpf_sock_ops *skop in fin_opt_len() [all...] |
| H A D | test_misc_tcp_hdr_options.c | 37 static int __check_active_hdr_in(struct bpf_sock_ops *skops, bool check_syn) in __check_active_hdr_in() 129 static int check_active_syn_in(struct bpf_sock_ops *skops) in check_active_syn_in() 134 static int check_active_hdr_in(struct bpf_sock_ops *skops) in check_active_hdr_in() 160 static int active_opt_len(struct bpf_sock_ops *skops) in active_opt_len() 174 static int write_active_opt(struct bpf_sock_ops *skops) in write_active_opt() 250 static int handle_hdr_opt_len(struct bpf_sock_ops *skops) in handle_hdr_opt_len() 265 static int handle_write_hdr_opt(struct bpf_sock_ops *skops) in handle_write_hdr_opt() 273 static int handle_parse_hdr(struct bpf_sock_ops *skops) in handle_parse_hdr() 284 static int handle_passive_estab(struct bpf_sock_ops *skops) in handle_passive_estab() 305 int misc_estab(struct bpf_sock_ops *skops) in misc_estab()
|
| H A D | net_timestamping.c | 75 static bool bpf_test_access_load_hdr_opt(struct bpf_sock_ops *skops) in bpf_test_access_load_hdr_opt() 88 static bool bpf_test_access_cb_flags_set(struct bpf_sock_ops *skops) in bpf_test_access_cb_flags_set() 102 static bool bpf_test_access_bpf_calls(struct bpf_sock_ops *skops, in bpf_test_access_bpf_calls() 117 static bool bpf_test_delay(struct bpf_sock_ops *skops, const struct sock *sk) in bpf_test_delay() 211 int skops_sockopt(struct bpf_sock_ops *skops) in skops_sockopt()
|
| H A D | verifier_ctx.c | 244 narrow_load("sockops", bpf_sock_ops, sk); 245 narrow_load("sockops", bpf_sock_ops, skb_data); 246 narrow_load("sockops", bpf_sock_ops, skb_data_end); 247 narrow_load("sockops", bpf_sock_ops, skb_hwtstamp);
|
| H A D | test_tcpbpf_kern.c | 17 static __always_inline int get_tp_window_clamp(struct bpf_sock_ops *skops) in get_tp_window_clamp() 32 int bpf_testcb(struct bpf_sock_ops *skops) in bpf_testcb() 35 struct bpf_sock_ops *reuse = skops; in bpf_testcb()
|
| H A D | verifier_sockmap_mutate.c | 158 int test_sockops_delete(struct bpf_sock_ops *ctx __always_unused) in test_sockops_delete() 166 int test_sockops_update(struct bpf_sock_ops *ctx) in test_sockops_update() 174 int test_sockops_update_dedicated(struct bpf_sock_ops *ctx) in test_sockops_update_dedicated()
|
| H A D | test_sockmap_invalid_update.c | 14 int bpf_sockmap(struct bpf_sock_ops *skops) in bpf_sockmap()
|
| H A D | mptcp_sockmap.c | 19 int mptcp_sockmap_inject(struct bpf_sock_ops *skops) in mptcp_sockmap_inject()
|
| H A D | tcp_rtt.c | 26 int _sockops(struct bpf_sock_ops *ctx) in _sockops()
|
| H A D | test_tcpnotify_kern.c | 31 int bpf_testcb(struct bpf_sock_ops *skops)
|
| H A D | socket_cookie_prog.c | 52 int update_cookie_sockops(struct bpf_sock_ops *ctx) in update_cookie_sockops()
|
| H A D | mptcp_sock.c | 29 int _sockops(struct bpf_sock_ops *ctx) in _sockops()
|
| H A D | cgrp_ls_attach_cgroup.c | 53 int update_cookie_sockops(struct bpf_sock_ops *ctx) in update_cookie_sockops()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_tcp_hdr_options.h | 101 static inline __u8 skops_tcp_flags(const struct bpf_sock_ops *skops) in skops_tcp_flags() 106 static inline void clear_hdr_cb_flags(struct bpf_sock_ops *skops) in clear_hdr_cb_flags() 114 static inline void set_hdr_cb_flags(struct bpf_sock_ops *skops, __u32 extra) in set_hdr_cb_flags() 123 clear_parse_all_hdr_cb_flags(struct bpf_sock_ops *skops) in clear_parse_all_hdr_cb_flags() 131 set_parse_all_hdr_cb_flags(struct bpf_sock_ops *skops) in set_parse_all_hdr_cb_flags()
|
| H A D | cgroup_getset_retval_hooks.h | 6 BPF_RETVAL_HOOK(sock_ops, "sockops", bpf_sock_ops, -EINVAL)
|
| /linux/samples/bpf/ |
| H A D | tcp_synrto_kern.c | 25 int bpf_synrto(struct bpf_sock_ops *skops) in bpf_synrto()
|
| H A D | tcp_rwnd_kern.c | 25 int bpf_rwnd(struct bpf_sock_ops *skops) in bpf_rwnd()
|
| H A D | tcp_basertt_kern.c | 25 int bpf_basertt(struct bpf_sock_ops *skops) in bpf_basertt()
|
| H A D | tcp_cong_kern.c | 25 int bpf_cong(struct bpf_sock_ops *skops) in bpf_cong()
|
| H A D | tcp_bufs_kern.c | 26 int bpf_bufs(struct bpf_sock_ops *skops) in bpf_bufs()
|
| H A D | tcp_dumpstats_kern.c | 26 int _sockops(struct bpf_sock_ops *ctx) in _sockops()
|
| H A D | tcp_iw_kern.c | 26 int bpf_iw(struct bpf_sock_ops *skops) in bpf_iw()
|
| H A D | tcp_clamp_kern.c | 26 int bpf_clamp(struct bpf_sock_ops *skops) in bpf_clamp()
|
| H A D | tcp_tos_reflect_kern.c | 24 int bpf_basertt(struct bpf_sock_ops *skops) in bpf_basertt()
|
| /linux/net/core/ |
| H A D | filter.c | 9710 if (off < 0 || off >= sizeof(struct bpf_sock_ops)) in sock_ops_is_valid_access() 9719 case offsetof(struct bpf_sock_ops, reply): in sock_ops_is_valid_access() 9720 case offsetof(struct bpf_sock_ops, sk_txhash): in sock_ops_is_valid_access() 9729 case bpf_ctx_range_till(struct bpf_sock_ops, bytes_received, in sock_ops_is_valid_access() 9734 case bpf_ctx_range_ptr(struct bpf_sock_ops, sk): in sock_ops_is_valid_access() 9739 case bpf_ctx_range_ptr(struct bpf_sock_ops, skb_data): in sock_ops_is_valid_access() 9744 case bpf_ctx_range_ptr(struct bpf_sock_ops, skb_data_end): in sock_ops_is_valid_access() 9749 case offsetof(struct bpf_sock_ops, skb_tcp_flags): in sock_ops_is_valid_access() 9753 case bpf_ctx_range(struct bpf_sock_ops, skb_hwtstamp): in sock_ops_is_valid_access() 10830 sizeof_field(struct bpf_sock_ops, BPF_FIELD)); \ in sock_ops_convert_ctx_access() [all …]
|