History

tcp: syncookies: create mptcp request socket for ACK cookies with MPTCP option

If SYN packet contains MP_CAPABLE option, keep it enabled. Syncokie validation and cookie-based socket creation is changed to instantiate an mptcp request sockets if the ACK contains an MPTCP connection request. Rather than extend both cookie_v4/6_check, add a common helper to create the (mp)tcp request socket.

Florian Westphal committed 6 years ago

Commit 6fc8c821 parent c83a47e4 files · +37 −11Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/net/tcp.h+2−0
@@ -469,6 +469,8 @@ struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb, · 468 unmodified lines
469int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,469int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
470 u32 cookie);470 u32 cookie);
471struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb);471struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb);
472struct request_sock *cookie_tcp_reqsk_alloc(const struct request_sock_ops *ops,
473 struct sock *sk, struct sk_buff *skb);
472#ifdef CONFIG_SYN_COOKIES474#ifdef CONFIG_SYN_COOKIES
473 475
474/* Syncookies use a monotonic timer which increments every 60 seconds.476/* Syncookies use a monotonic timer which increments every 60 seconds.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t