aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 74d3ed5eb219..fd40f8c64d5f 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -452,10 +452,15 @@ struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb,
452int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb); 452int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb);
453int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len); 453int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len);
454int tcp_connect(struct sock *sk); 454int tcp_connect(struct sock *sk);
455enum tcp_synack_type {
456 TCP_SYNACK_NORMAL,
457 TCP_SYNACK_FASTOPEN,
458 TCP_SYNACK_COOKIE,
459};
455struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst, 460struct sk_buff *tcp_make_synack(const struct sock *sk, struct dst_entry *dst,
456 struct request_sock *req, 461 struct request_sock *req,
457 struct tcp_fastopen_cookie *foc, 462 struct tcp_fastopen_cookie *foc,
458 bool attach_req); 463 enum tcp_synack_type synack_type);
459int tcp_disconnect(struct sock *sk, int flags); 464int tcp_disconnect(struct sock *sk, int flags);
460 465
461void tcp_finish_connect(struct sock *sk, struct sk_buff *skb); 466void tcp_finish_connect(struct sock *sk, struct sk_buff *skb);
@@ -1728,7 +1733,7 @@ struct tcp_request_sock_ops {
1728 int (*send_synack)(const struct sock *sk, struct dst_entry *dst, 1733 int (*send_synack)(const struct sock *sk, struct dst_entry *dst,
1729 struct flowi *fl, struct request_sock *req, 1734 struct flowi *fl, struct request_sock *req,
1730 struct tcp_fastopen_cookie *foc, 1735 struct tcp_fastopen_cookie *foc,
1731 bool attach_req); 1736 enum tcp_synack_type synack_type);
1732}; 1737};
1733 1738
1734#ifdef CONFIG_SYN_COOKIES 1739#ifdef CONFIG_SYN_COOKIES