Home
last modified time | relevance | path

Searched refs:saved_syn (Results 1 – 6 of 6) sorted by relevance

/linux/include/linux/
A Dtcp.h414 struct saved_syn *saved_syn; member
482 tp->saved_syn = req->saved_syn; in tcp_move_syn()
483 req->saved_syn = NULL; in tcp_move_syn()
488 kfree(tp->saved_syn); in tcp_saved_syn_free()
489 tp->saved_syn = NULL; in tcp_saved_syn_free()
492 static inline u32 tcp_saved_syn_len(const struct saved_syn *saved_syn) in tcp_saved_syn_len() argument
494 return saved_syn->mac_hdrlen + saved_syn->network_hdrlen + in tcp_saved_syn_len()
495 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
/linux/include/net/
A Drequest_sock.h44 struct saved_syn { struct
70 struct saved_syn *saved_syn; argument
106 req->saved_syn = NULL; in reqsk_alloc()
120 kfree(req->saved_syn); in __reqsk_free()
/linux/net/core/
A Dfilter.c5168 struct saved_syn *saved_syn; in bpf_sock_ops_get_syn() local
5175 saved_syn = inet_reqsk(sk)->saved_syn; in bpf_sock_ops_get_syn()
5177 saved_syn = tcp_sk(sk)->saved_syn; in bpf_sock_ops_get_syn()
5179 if (!saved_syn) in bpf_sock_ops_get_syn()
5184 saved_syn->mac_hdrlen + in bpf_sock_ops_get_syn()
5185 saved_syn->network_hdrlen; in bpf_sock_ops_get_syn()
5186 ret = saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()
5189 saved_syn->mac_hdrlen; in bpf_sock_ops_get_syn()
5191 saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()
5196 if (!saved_syn->mac_hdrlen) in bpf_sock_ops_get_syn()
[all …]
/linux/net/ipv4/
A Dtcp_input.c6766 struct saved_syn *saved_syn; in tcp_reqsk_record_syn() local
6779 saved_syn = kmalloc(struct_size(saved_syn, data, len), in tcp_reqsk_record_syn()
6781 if (saved_syn) { in tcp_reqsk_record_syn()
6782 saved_syn->mac_hdrlen = mac_hdrlen; in tcp_reqsk_record_syn()
6783 saved_syn->network_hdrlen = skb_network_header_len(skb); in tcp_reqsk_record_syn()
6784 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn()
6785 memcpy(saved_syn->data, base, len); in tcp_reqsk_record_syn()
6786 req->saved_syn = saved_syn; in tcp_reqsk_record_syn()
A Dtcp.c4128 if (tp->saved_syn) { in do_tcp_getsockopt()
4129 if (len < tcp_saved_syn_len(tp->saved_syn)) { in do_tcp_getsockopt()
4130 if (put_user(tcp_saved_syn_len(tp->saved_syn), in do_tcp_getsockopt()
4138 len = tcp_saved_syn_len(tp->saved_syn); in do_tcp_getsockopt()
4143 if (copy_to_user(optval, tp->saved_syn->data, len)) { in do_tcp_getsockopt()
A Dinet_connection_sock.c750 req->saved_syn = NULL; in reqsk_migrate_reset()

Completed in 46 milliseconds