Searched refs:sock_ops (Results 1 – 2 of 2) sorted by relevance
/net/ipv4/ |
D | tcp_output.c | 475 struct bpf_sock_ops_kern sock_ops; in bpf_skops_hdr_opt_len() local 486 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in bpf_skops_hdr_opt_len() 488 sock_ops.op = BPF_SOCK_OPS_HDR_OPT_LEN_CB; in bpf_skops_hdr_opt_len() 504 sock_ops.sk = (struct sock *)req; in bpf_skops_hdr_opt_len() 505 sock_ops.syn_skb = syn_skb; in bpf_skops_hdr_opt_len() 509 sock_ops.is_fullsock = 1; in bpf_skops_hdr_opt_len() 510 sock_ops.sk = sk; in bpf_skops_hdr_opt_len() 513 sock_ops.args[0] = bpf_skops_write_hdr_opt_arg0(skb, synack_type); in bpf_skops_hdr_opt_len() 514 sock_ops.remaining_opt_len = *remaining; in bpf_skops_hdr_opt_len() 517 bpf_skops_init_skb(&sock_ops, skb, 0); in bpf_skops_hdr_opt_len() [all …]
|
D | tcp_input.c | 151 struct bpf_sock_ops_kern sock_ops; in bpf_skops_parse_hdr() local 169 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in bpf_skops_parse_hdr() 170 sock_ops.op = BPF_SOCK_OPS_PARSE_HDR_OPT_CB; in bpf_skops_parse_hdr() 171 sock_ops.is_fullsock = 1; in bpf_skops_parse_hdr() 172 sock_ops.sk = sk; in bpf_skops_parse_hdr() 173 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_parse_hdr() 175 BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in bpf_skops_parse_hdr() 181 struct bpf_sock_ops_kern sock_ops; in bpf_skops_established() local 185 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in bpf_skops_established() 186 sock_ops.op = bpf_op; in bpf_skops_established() [all …]
|