Searched refs:saved_syn (Results 1 – 4 of 4) sorted by relevance
/net/core/ |
D | filter.c | 5034 if (optlen <= 0 || !tp->saved_syn || in _bpf_getsockopt() 5035 optlen > tcp_saved_syn_len(tp->saved_syn)) in _bpf_getsockopt() 5037 memcpy(optval, tp->saved_syn->data, optlen); in _bpf_getsockopt() 5199 struct saved_syn *saved_syn; in bpf_sock_ops_get_syn() local 5206 saved_syn = inet_reqsk(sk)->saved_syn; in bpf_sock_ops_get_syn() 5208 saved_syn = tcp_sk(sk)->saved_syn; in bpf_sock_ops_get_syn() 5210 if (!saved_syn) in bpf_sock_ops_get_syn() 5214 hdr_start = saved_syn->data + in bpf_sock_ops_get_syn() 5215 saved_syn->mac_hdrlen + in bpf_sock_ops_get_syn() 5216 saved_syn->network_hdrlen; in bpf_sock_ops_get_syn() [all …]
|
/net/ipv4/ |
D | tcp_input.c | 6813 struct saved_syn *saved_syn; in tcp_reqsk_record_syn() local 6826 saved_syn = kmalloc(struct_size(saved_syn, data, len), in tcp_reqsk_record_syn() 6828 if (saved_syn) { in tcp_reqsk_record_syn() 6829 saved_syn->mac_hdrlen = mac_hdrlen; in tcp_reqsk_record_syn() 6830 saved_syn->network_hdrlen = skb_network_header_len(skb); in tcp_reqsk_record_syn() 6831 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn() 6832 memcpy(saved_syn->data, base, len); in tcp_reqsk_record_syn() 6833 req->saved_syn = saved_syn; in tcp_reqsk_record_syn()
|
D | tcp.c | 4186 if (tp->saved_syn) { in do_tcp_getsockopt() 4187 if (len < tcp_saved_syn_len(tp->saved_syn)) { in do_tcp_getsockopt() 4188 if (put_user(tcp_saved_syn_len(tp->saved_syn), in do_tcp_getsockopt() 4196 len = tcp_saved_syn_len(tp->saved_syn); in do_tcp_getsockopt() 4201 if (copy_to_user(optval, tp->saved_syn->data, len)) { in do_tcp_getsockopt()
|
D | inet_connection_sock.c | 758 req->saved_syn = NULL; in reqsk_migrate_reset()
|