bpf_sock_ops
struct bpf_sock_ops, struct bpf_sock_ops_kern)
sizeof_field(struct bpf_sock_ops, BPF_FIELD)); \
sizeof_field(struct bpf_sock_ops, BPF_FIELD)); \
case offsetof(struct bpf_sock_ops, op):
case offsetof(struct bpf_sock_ops, replylong[0]) ...
offsetof(struct bpf_sock_ops, replylong[3]):
BUILD_BUG_ON(sizeof_field(struct bpf_sock_ops, reply) !=
BUILD_BUG_ON(sizeof_field(struct bpf_sock_ops, replylong) !=
off -= offsetof(struct bpf_sock_ops, replylong[0]);
case offsetof(struct bpf_sock_ops, family):
case offsetof(struct bpf_sock_ops, remote_ip4):
case offsetof(struct bpf_sock_ops, local_ip4):
case offsetof(struct bpf_sock_ops, remote_ip6[0]) ...
offsetof(struct bpf_sock_ops, remote_ip6[3]):
off -= offsetof(struct bpf_sock_ops, remote_ip6[0]);
case offsetof(struct bpf_sock_ops, local_ip6[0]) ...
offsetof(struct bpf_sock_ops, local_ip6[3]):
off -= offsetof(struct bpf_sock_ops, local_ip6[0]);
case offsetof(struct bpf_sock_ops, remote_port):
case offsetof(struct bpf_sock_ops, local_port):
case offsetof(struct bpf_sock_ops, is_fullsock):
case offsetof(struct bpf_sock_ops, state):
case offsetof(struct bpf_sock_ops, rtt_min):
case offsetof(struct bpf_sock_ops, bpf_sock_ops_cb_flags):
case offsetof(struct bpf_sock_ops, sk_txhash):
case offsetof(struct bpf_sock_ops, snd_cwnd):
case offsetof(struct bpf_sock_ops, srtt_us):
case offsetof(struct bpf_sock_ops, snd_ssthresh):
case offsetof(struct bpf_sock_ops, rcv_nxt):
case offsetof(struct bpf_sock_ops, snd_nxt):
case offsetof(struct bpf_sock_ops, snd_una):
case offsetof(struct bpf_sock_ops, mss_cache):
case offsetof(struct bpf_sock_ops, ecn_flags):
case offsetof(struct bpf_sock_ops, rate_delivered):
case offsetof(struct bpf_sock_ops, rate_interval_us):
case offsetof(struct bpf_sock_ops, packets_out):
case offsetof(struct bpf_sock_ops, retrans_out):
case offsetof(struct bpf_sock_ops, total_retrans):
case offsetof(struct bpf_sock_ops, segs_in):
case offsetof(struct bpf_sock_ops, data_segs_in):
case offsetof(struct bpf_sock_ops, segs_out):
case offsetof(struct bpf_sock_ops, data_segs_out):
case offsetof(struct bpf_sock_ops, lost_out):
case offsetof(struct bpf_sock_ops, sacked_out):
case offsetof(struct bpf_sock_ops, bytes_received):
case offsetof(struct bpf_sock_ops, bytes_acked):
case offsetof(struct bpf_sock_ops, sk):
case offsetof(struct bpf_sock_ops, skb_data_end):
case offsetof(struct bpf_sock_ops, skb_data):
case offsetof(struct bpf_sock_ops, skb_len):
case offsetof(struct bpf_sock_ops, skb_tcp_flags):
case offsetof(struct bpf_sock_ops, skb_hwtstamp): {
if (off < 0 || off >= sizeof(struct bpf_sock_ops))
case offsetof(struct bpf_sock_ops, reply):
case offsetof(struct bpf_sock_ops, sk_txhash):
case bpf_ctx_range_till(struct bpf_sock_ops, bytes_received,
case bpf_ctx_range_ptr(struct bpf_sock_ops, sk):
case bpf_ctx_range_ptr(struct bpf_sock_ops, skb_data):
case bpf_ctx_range_ptr(struct bpf_sock_ops, skb_data_end):
case offsetof(struct bpf_sock_ops, skb_tcp_flags):
case bpf_ctx_range(struct bpf_sock_ops, skb_hwtstamp):
int bpf_basertt(struct bpf_sock_ops *skops)
int bpf_bufs(struct bpf_sock_ops *skops)
int bpf_clamp(struct bpf_sock_ops *skops)
int bpf_cong(struct bpf_sock_ops *skops)
int _sockops(struct bpf_sock_ops *ctx)
int bpf_iw(struct bpf_sock_ops *skops)
int bpf_rwnd(struct bpf_sock_ops *skops)
int bpf_synrto(struct bpf_sock_ops *skops)
int bpf_basertt(struct bpf_sock_ops *skops)
BPF_RETVAL_HOOK(sock_ops, "sockops", bpf_sock_ops, -EINVAL)
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_sock_ops, BTF_F_COMPACT,
TEST_BTF_DUMP_DATA_OVER(btf, d, "struct", str, struct bpf_sock_ops,
sizeof(struct bpf_sock_ops) - 1,
TEST_BTF_DUMP_DATA_OVER(btf, d, "struct", str, struct bpf_sock_ops,
sizeof(struct bpf_sock_ops) - 1,
N(SOCK_OPS, struct bpf_sock_ops, replylong[0]),
int update_cookie_sockops(struct bpf_sock_ops *ctx)
int _sockops(struct bpf_sock_ops *ctx)
int mptcp_sockmap_inject(struct bpf_sock_ops *skops)
int mptcp_subflow(struct bpf_sock_ops *skops)
static bool bpf_test_access_bpf_calls(struct bpf_sock_ops *skops,
static bool bpf_test_delay(struct bpf_sock_ops *skops, const struct sock *sk)
int skops_sockopt(struct bpf_sock_ops *skops)
static bool bpf_test_access_load_hdr_opt(struct bpf_sock_ops *skops)
static bool bpf_test_access_cb_flags_set(struct bpf_sock_ops *skops)
int get_netns_cookie_sockops(struct bpf_sock_ops *ctx)
int skops_sockopt(struct bpf_sock_ops *skops)
int update_cookie_sockops(struct bpf_sock_ops *ctx)
int _sockops(struct bpf_sock_ops *ctx)
static int check_active_syn_in(struct bpf_sock_ops *skops)
static int check_active_hdr_in(struct bpf_sock_ops *skops)
static int active_opt_len(struct bpf_sock_ops *skops)
static int write_active_opt(struct bpf_sock_ops *skops)
static int handle_hdr_opt_len(struct bpf_sock_ops *skops)
static int handle_write_hdr_opt(struct bpf_sock_ops *skops)
static int handle_parse_hdr(struct bpf_sock_ops *skops)
static int handle_passive_estab(struct bpf_sock_ops *skops)
int misc_estab(struct bpf_sock_ops *skops)
static int __check_active_hdr_in(struct bpf_sock_ops *skops, bool check_syn)
int bpf_sockmap(struct bpf_sock_ops *skops)
int bpf_sockmap(struct bpf_sock_ops *skops)
static int load_option(struct bpf_sock_ops *skops,
static int synack_opt_len(struct bpf_sock_ops *skops)
static int write_synack_opt(struct bpf_sock_ops *skops)
static int syn_opt_len(struct bpf_sock_ops *skops)
static int write_syn_opt(struct bpf_sock_ops *skops)
static int fin_opt_len(struct bpf_sock_ops *skops)
static int write_fin_opt(struct bpf_sock_ops *skops)
static int resend_in_ack(struct bpf_sock_ops *skops)
static int nodata_opt_len(struct bpf_sock_ops *skops)
static int write_nodata_opt(struct bpf_sock_ops *skops)
static int data_opt_len(struct bpf_sock_ops *skops)
static int write_data_opt(struct bpf_sock_ops *skops)
static int current_mss_opt_len(struct bpf_sock_ops *skops)
static int handle_hdr_opt_len(struct bpf_sock_ops *skops)
static int handle_write_hdr_opt(struct bpf_sock_ops *skops)
static int set_delack_max(struct bpf_sock_ops *skops, __u8 max_delack_ms)
static int set_rto_min(struct bpf_sock_ops *skops, __u8 peer_max_delack_ms)
static int handle_active_estab(struct bpf_sock_ops *skops)
static bool skops_want_cookie(const struct bpf_sock_ops *skops)
static int handle_passive_estab(struct bpf_sock_ops *skops)
static bool skops_current_mss(const struct bpf_sock_ops *skops)
static int handle_parse_hdr(struct bpf_sock_ops *skops)
int estab(struct bpf_sock_ops *skops)
static int store_option(struct bpf_sock_ops *skops,
static __always_inline int get_tp_window_clamp(struct bpf_sock_ops *skops)
int bpf_testcb(struct bpf_sock_ops *skops)
struct bpf_sock_ops *reuse = skops;
int bpf_testcb(struct bpf_sock_ops *skops)
narrow_load("sockops", bpf_sock_ops, sk);
narrow_load("sockops", bpf_sock_ops, skb_data);
narrow_load("sockops", bpf_sock_ops, skb_data_end);
narrow_load("sockops", bpf_sock_ops, skb_hwtstamp);
int test_sockops_delete(struct bpf_sock_ops *ctx __always_unused)
int test_sockops_update(struct bpf_sock_ops *ctx)
int test_sockops_update_dedicated(struct bpf_sock_ops *ctx)
__imm_const(bpf_sock_ops_bytes_received, offsetof(struct bpf_sock_ops, bytes_received))
static inline __u8 skops_tcp_flags(const struct bpf_sock_ops *skops)
static inline void clear_hdr_cb_flags(struct bpf_sock_ops *skops)
static inline void set_hdr_cb_flags(struct bpf_sock_ops *skops, __u32 extra)
clear_parse_all_hdr_cb_flags(struct bpf_sock_ops *skops)
set_parse_all_hdr_cb_flags(struct bpf_sock_ops *skops)