Lines Matching refs:sock_ops
150 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()
186 sock_ops.is_fullsock = 1; in bpf_skops_established()
187 sock_ops.sk = sk; in bpf_skops_established()
190 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_established()
192 BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in bpf_skops_established()