Home
last modified time | relevance | path

Searched refs:sock_ops (Results 1 – 2 of 2) sorted by relevance

/net/ipv4/
Dtcp_output.c474 struct bpf_sock_ops_kern sock_ops; in bpf_skops_hdr_opt_len() local
485 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in bpf_skops_hdr_opt_len()
487 sock_ops.op = BPF_SOCK_OPS_HDR_OPT_LEN_CB; in bpf_skops_hdr_opt_len()
503 sock_ops.sk = (struct sock *)req; in bpf_skops_hdr_opt_len()
504 sock_ops.syn_skb = syn_skb; in bpf_skops_hdr_opt_len()
508 sock_ops.is_fullsock = 1; in bpf_skops_hdr_opt_len()
509 sock_ops.sk = sk; in bpf_skops_hdr_opt_len()
512 sock_ops.args[0] = bpf_skops_write_hdr_opt_arg0(skb, synack_type); in bpf_skops_hdr_opt_len()
513 sock_ops.remaining_opt_len = *remaining; in bpf_skops_hdr_opt_len()
516 bpf_skops_init_skb(&sock_ops, skb, 0); in bpf_skops_hdr_opt_len()
[all …]
Dtcp_input.c150 struct bpf_sock_ops_kern sock_ops; in bpf_skops_parse_hdr() local
168 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in bpf_skops_parse_hdr()
169 sock_ops.op = BPF_SOCK_OPS_PARSE_HDR_OPT_CB; in bpf_skops_parse_hdr()
170 sock_ops.is_fullsock = 1; in bpf_skops_parse_hdr()
171 sock_ops.sk = sk; in bpf_skops_parse_hdr()
172 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_parse_hdr()
174 BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in bpf_skops_parse_hdr()
180 struct bpf_sock_ops_kern sock_ops; in bpf_skops_established() local
184 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in bpf_skops_established()
185 sock_ops.op = bpf_op; in bpf_skops_established()
[all …]