History

mptcp: parse and emit MP_CAPABLE option according to v1 spec

This implements MP_CAPABLE options parsing and writing according to RFC 6824 bis / RFC 8684: MPTCP v1. Local key is sent on syn/ack, and both keys are sent on 3rd ack. MP_CAPABLE messages len are updated accordingly. We need the skbuff to correctly emit the above, so we push the skbuff struct as an argument all the way from tcp code to the relevant mptcp callbacks. When processing incoming MP_CAPABLE + data, build a full blown DSS-like map info, to simplify later processing. On child socket creation, we need to record the remote key, if available.

Christoph Paasch committed 6 years ago

Commit cc7972e1 parent 65492c57 files · +160 −46Browse files

Unified · Split

7 files
  1. include/linux/tcp.h +2 −1
  2. include/net/mptcp.h +10 −7
  3. net/ipv4/tcp_input.c +1 −1
  4. net/ipv4/tcp_output.c +1 −1
  5. net/mptcp/options.c +130 −32
  6. net/mptcp/protocol.h +4 −2
  7. net/mptcp/subflow.c +12 −2
include/linux/tcp.h+2−1
@@ -94,7 +94,8 @@ struct mptcp_options_received { · 93 unmodified lines
94 data_fin:1,94 data_fin:1,
95 use_ack:1,95 use_ack:1,
96 ack64:1,96 ack64:1,
97 __unused:3;97 mpc_map:1,
98 __unused:2;
98};99};
99#endif100#endif
100 101
include/net/mptcp.h+10−7
@@ -23,7 +23,8 @@ struct mptcp_ext { · 22 unmodified lines
23 data_fin:1,23 data_fin:1,
24 use_ack:1,24 use_ack:1,
25 ack64:1,25 ack64:1,
26 __unused:3;26 mpc_map:1,
27 __unused:2;
27 /* one byte hole */28 /* one byte hole */
28};29};
29 30
@@ -50,10 +51,10 @@ static inline bool rsk_is_mptcp(const struct request_sock *req) · 20 unmodified lines
50 return tcp_rsk(req)->is_mptcp;51 return tcp_rsk(req)->is_mptcp;
51}52}
52 53
53void mptcp_parse_option(const unsigned char *ptr, int opsize,54void mptcp_parse_option(const struct sk_buff *skb, const unsigned char *ptr,
54 struct tcp_options_received *opt_rx);55 int opsize, struct tcp_options_received *opt_rx);
55bool mptcp_syn_options(struct sock *sk, unsigned int *size,56bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
56 struct mptcp_out_options *opts);57 unsigned int *size, struct mptcp_out_options *opts);
57void mptcp_rcv_synsent(struct sock *sk);58void mptcp_rcv_synsent(struct sock *sk);
58bool mptcp_synack_options(const struct request_sock *req, unsigned int *size,59bool mptcp_synack_options(const struct request_sock *req, unsigned int *size,
59 struct mptcp_out_options *opts);60 struct mptcp_out_options *opts);
@@ -121,12 +122,14 @@ static inline bool rsk_is_mptcp(const struct request_sock *req) · 61 unmodified lines
121 return false;122 return false;
122}123}
123 124
124static inline void mptcp_parse_option(const unsigned char *ptr, int opsize,125static inline void mptcp_parse_option(const struct sk_buff *skb,
126 const unsigned char *ptr, int opsize,
125 struct tcp_options_received *opt_rx)127 struct tcp_options_received *opt_rx)
126{128{
127}129}
128 130
129static inline bool mptcp_syn_options(struct sock *sk, unsigned int *size,131static inline bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
132 unsigned int *size,
130 struct mptcp_out_options *opts)133 struct mptcp_out_options *opts)
131{134{
132 return false;135 return false;
net/ipv4/tcp_input.c+1−1
@@ -3926,7 +3926,7 @@ void tcp_parse_options(const struct net *net, · 3925 unmodified lines
3926 break;3926 break;
3927#endif3927#endif
3928 case TCPOPT_MPTCP:3928 case TCPOPT_MPTCP:
3929 mptcp_parse_option(ptr, opsize, opt_rx);3929 mptcp_parse_option(skb, ptr, opsize, opt_rx);
3930 break;3930 break;
3931 3931
3932 case TCPOPT_FASTOPEN:3932 case TCPOPT_FASTOPEN:
net/ipv4/tcp_output.c+1−1
@@ -685,7 +685,7 @@ static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb, · 684 unmodified lines
685 if (sk_is_mptcp(sk)) {685 if (sk_is_mptcp(sk)) {
686 unsigned int size;686 unsigned int size;
687 687
688 if (mptcp_syn_options(sk, &size, &opts->mptcp)) {688 if (mptcp_syn_options(sk, skb, &size, &opts->mptcp)) {
689 opts->options |= OPTION_MPTCP;689 opts->options |= OPTION_MPTCP;
690 remaining -= size;690 remaining -= size;
691 }691 }
net/mptcp/options.c+130−32
@@ -14,8 +14,8 @@ static bool mptcp_cap_flag_sha256(u8 flags) · 13 unmodified lines
14 return (flags & MPTCP_CAP_FLAG_MASK) == MPTCP_CAP_HMAC_SHA256;14 return (flags & MPTCP_CAP_FLAG_MASK) == MPTCP_CAP_HMAC_SHA256;
15}15}
16 16
17void mptcp_parse_option(const unsigned char *ptr, int opsize,17void mptcp_parse_option(const struct sk_buff *skb, const unsigned char *ptr,
18 struct tcp_options_received *opt_rx)18 int opsize, struct tcp_options_received *opt_rx)
19{19{
20 struct mptcp_options_received *mp_opt = &opt_rx->mptcp;20 struct mptcp_options_received *mp_opt = &opt_rx->mptcp;
21 u8 subtype = *ptr >> 4;21 u8 subtype = *ptr >> 4;
@@ -25,13 +25,29 @@ void mptcp_parse_option(const unsigned char *ptr, int opsize, · 3 unmodified lines
25 25
26 switch (subtype) {26 switch (subtype) {
27 case MPTCPOPT_MP_CAPABLE:27 case MPTCPOPT_MP_CAPABLE:
28 if (opsize != TCPOLEN_MPTCP_MPC_SYN &&28 /* strict size checking */
29 opsize != TCPOLEN_MPTCP_MPC_ACK)29 if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) {
30 if (skb->len > tcp_hdr(skb)->doff << 2)
31 expected_opsize = TCPOLEN_MPTCP_MPC_ACK_DATA;
32 else
33 expected_opsize = TCPOLEN_MPTCP_MPC_ACK;
34 } else {
35 if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACK)
36 expected_opsize = TCPOLEN_MPTCP_MPC_SYNACK;
37 else
38 expected_opsize = TCPOLEN_MPTCP_MPC_SYN;
39 }
40 if (opsize != expected_opsize)
30 break;41 break;
31 42
43 /* try to be gentle vs future versions on the initial syn */
32 version = *ptr++ & MPTCP_VERSION_MASK;44 version = *ptr++ & MPTCP_VERSION_MASK;
33 if (version != MPTCP_SUPPORTED_VERSION)45 if (opsize != TCPOLEN_MPTCP_MPC_SYN) {
46 if (version != MPTCP_SUPPORTED_VERSION)
47 break;
48 } else if (version < MPTCP_SUPPORTED_VERSION) {
34 break;49 break;
50 }
35 51
36 flags = *ptr++;52 flags = *ptr++;
37 if (!mptcp_cap_flag_sha256(flags) ||53 if (!mptcp_cap_flag_sha256(flags) ||
@@ -55,23 +71,40 @@ void mptcp_parse_option(const unsigned char *ptr, int opsize, · 17 unmodified lines
55 break;71 break;
56 72
57 mp_opt->mp_capable = 1;73 mp_opt->mp_capable = 1;
58 mp_opt->sndr_key = get_unaligned_be64(ptr);74 if (opsize >= TCPOLEN_MPTCP_MPC_SYNACK) {
59 ptr += 8;75 mp_opt->sndr_key = get_unaligned_be64(ptr);
60 76 ptr += 8;
61 if (opsize == TCPOLEN_MPTCP_MPC_ACK) {77 }
78 if (opsize >= TCPOLEN_MPTCP_MPC_ACK) {
62 mp_opt->rcvr_key = get_unaligned_be64(ptr);79 mp_opt->rcvr_key = get_unaligned_be64(ptr);
63 ptr += 8;80 ptr += 8;
64 pr_debug("MP_CAPABLE sndr=%llu, rcvr=%llu",
65 mp_opt->sndr_key, mp_opt->rcvr_key);
66 } else {
67 pr_debug("MP_CAPABLE sndr=%llu", mp_opt->sndr_key);
68 }81 }
82 if (opsize == TCPOLEN_MPTCP_MPC_ACK_DATA) {
83 /* Section 3.1.:
84 * "the data parameters in a MP_CAPABLE are semantically
85 * equivalent to those in a DSS option and can be used
86 * interchangeably."
87 */
88 mp_opt->dss = 1;
89 mp_opt->use_map = 1;
90 mp_opt->mpc_map = 1;
91 mp_opt->data_len = get_unaligned_be16(ptr);
92 ptr += 2;
93 }
94 pr_debug("MP_CAPABLE version=%x, flags=%x, optlen=%d sndr=%llu, rcvr=%llu len=%d",
95 version, flags, opsize, mp_opt->sndr_key,
96 mp_opt->rcvr_key, mp_opt->data_len);
69 break;97 break;
70 98
71 case MPTCPOPT_DSS:99 case MPTCPOPT_DSS:
72 pr_debug("DSS");100 pr_debug("DSS");
73 ptr++;101 ptr++;
74 102
103 /* we must clear 'mpc_map' be able to detect MP_CAPABLE
104 * map vs DSS map in mptcp_incoming_options(), and reconstruct
105 * map info accordingly
106 */
107 mp_opt->mpc_map = 0;
75 flags = (*ptr++) & MPTCP_DSS_FLAG_MASK;108 flags = (*ptr++) & MPTCP_DSS_FLAG_MASK;
76 mp_opt->data_fin = (flags & MPTCP_DSS_DATA_FIN) != 0;109 mp_opt->data_fin = (flags & MPTCP_DSS_DATA_FIN) != 0;
77 mp_opt->dsn64 = (flags & MPTCP_DSS_DSN64) != 0;110 mp_opt->dsn64 = (flags & MPTCP_DSS_DSN64) != 0;
@@ -176,18 +209,22 @@ void mptcp_get_options(const struct sk_buff *skb, · 98 unmodified lines
176 if (opsize > length)209 if (opsize > length)
177 return; /* don't parse partial options */210 return; /* don't parse partial options */
178 if (opcode == TCPOPT_MPTCP)211 if (opcode == TCPOPT_MPTCP)
179 mptcp_parse_option(ptr, opsize, opt_rx);212 mptcp_parse_option(skb, ptr, opsize, opt_rx);
180 ptr += opsize - 2;213 ptr += opsize - 2;
181 length -= opsize;214 length -= opsize;
182 }215 }
183 }216 }
184}217}
185 218
186bool mptcp_syn_options(struct sock *sk, unsigned int *size,219bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
187 struct mptcp_out_options *opts)220 unsigned int *size, struct mptcp_out_options *opts)
188{221{
189 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk);222 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk);
190 223
224 /* we will use snd_isn to detect first pkt [re]transmission
225 * in mptcp_established_options_mp()
226 */
227 subflow->snd_isn = TCP_SKB_CB(skb)->end_seq;
191 if (subflow->request_mptcp) {228 if (subflow->request_mptcp) {
192 pr_debug("local_key=%llu", subflow->local_key);229 pr_debug("local_key=%llu", subflow->local_key);
193 opts->suboptions = OPTION_MPTCP_MPC_SYN;230 opts->suboptions = OPTION_MPTCP_MPC_SYN;
@@ -212,20 +249,52 @@ void mptcp_rcv_synsent(struct sock *sk) · 18 unmodified lines
212 }249 }
213}250}
214 251
215static bool mptcp_established_options_mp(struct sock *sk, unsigned int *size,252static bool mptcp_established_options_mp(struct sock *sk, struct sk_buff *skb,
253 unsigned int *size,
216 unsigned int remaining,254 unsigned int remaining,
217 struct mptcp_out_options *opts)255 struct mptcp_out_options *opts)
218{256{
219 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk);257 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk);
258 struct mptcp_ext *mpext;
259 unsigned int data_len;
260
261 pr_debug("subflow=%p fourth_ack=%d seq=%x:%x remaining=%d", subflow,
262 subflow->fourth_ack, subflow->snd_isn,
263 skb ? TCP_SKB_CB(skb)->seq : 0, remaining);
264
265 if (subflow->mp_capable && !subflow->fourth_ack && skb &&
266 subflow->snd_isn == TCP_SKB_CB(skb)->seq) {
267 /* When skb is not available, we better over-estimate the
268 * emitted options len. A full DSS option is longer than
269 * TCPOLEN_MPTCP_MPC_ACK_DATA, so let's the caller try to fit
270 * that.
271 */
272 mpext = mptcp_get_ext(skb);
273 data_len = mpext ? mpext->data_len : 0;
220 274
221 if (!subflow->fourth_ack) {275 /* we will check ext_copy.data_len in mptcp_write_options() to
276 * discriminate between TCPOLEN_MPTCP_MPC_ACK_DATA and
277 * TCPOLEN_MPTCP_MPC_ACK
278 */
279 opts->ext_copy.data_len = data_len;
222 opts->suboptions = OPTION_MPTCP_MPC_ACK;280 opts->suboptions = OPTION_MPTCP_MPC_ACK;
223 opts->sndr_key = subflow->local_key;281 opts->sndr_key = subflow->local_key;
224 opts->rcvr_key = subflow->remote_key;282 opts->rcvr_key = subflow->remote_key;
225 *size = TCPOLEN_MPTCP_MPC_ACK;283
226 subflow->fourth_ack = 1;284 /* Section 3.1.
227 pr_debug("subflow=%p, local_key=%llu, remote_key=%llu",285 * The MP_CAPABLE option is carried on the SYN, SYN/ACK, and ACK
228 subflow, subflow->local_key, subflow->remote_key);286 * packets that start the first subflow of an MPTCP connection,
287 * as well as the first packet that carries data
288 */
289 if (data_len > 0)
290 *size = ALIGN(TCPOLEN_MPTCP_MPC_ACK_DATA, 4);
291 else
292 *size = TCPOLEN_MPTCP_MPC_ACK;
293
294 pr_debug("subflow=%p, local_key=%llu, remote_key=%llu map_len=%d",
295 subflow, subflow->local_key, subflow->remote_key,
296 data_len);
297
229 return true;298 return true;
230 }299 }
231 return false;300 return false;
@@ -319,7 +388,7 @@ bool mptcp_established_options(struct sock *sk, struct sk_buff *skb, · 87 unmodified lines
319 unsigned int opt_size = 0;388 unsigned int opt_size = 0;
320 bool ret = false;389 bool ret = false;
321 390
322 if (mptcp_established_options_mp(sk, &opt_size, remaining, opts))391 if (mptcp_established_options_mp(sk, skb, &opt_size, remaining, opts))
323 ret = true;392 ret = true;
324 else if (mptcp_established_options_dss(sk, skb, &opt_size, remaining,393 else if (mptcp_established_options_dss(sk, skb, &opt_size, remaining,
325 opts))394 opts))
@@ -371,11 +440,26 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb, · 45 unmodified lines
371 memset(mpext, 0, sizeof(*mpext));440 memset(mpext, 0, sizeof(*mpext));
372 441
373 if (mp_opt->use_map) {442 if (mp_opt->use_map) {
374 mpext->data_seq = mp_opt->data_seq;443 if (mp_opt->mpc_map) {
375 mpext->subflow_seq = mp_opt->subflow_seq;444 struct mptcp_subflow_context *subflow =
445 mptcp_subflow_ctx(sk);
446
447 /* this is an MP_CAPABLE carrying MPTCP data
448 * we know this map the first chunk of data
449 */
450 mptcp_crypto_key_sha(subflow->remote_key, NULL,
451 &mpext->data_seq);
452 mpext->data_seq++;
453 mpext->subflow_seq = 1;
454 mpext->dsn64 = 1;
455 mpext->mpc_map = 1;
456 } else {
457 mpext->data_seq = mp_opt->data_seq;
458 mpext->subflow_seq = mp_opt->subflow_seq;
459 mpext->dsn64 = mp_opt->dsn64;
460 }
376 mpext->data_len = mp_opt->data_len;461 mpext->data_len = mp_opt->data_len;
377 mpext->use_map = 1;462 mpext->use_map = 1;
378 mpext->dsn64 = mp_opt->dsn64;
379 }463 }
380 464
381 if (mp_opt->use_ack) {465 if (mp_opt->use_ack) {
@@ -389,8 +473,7 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb, · 7 unmodified lines
389 473
390void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts)474void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts)
391{475{
392 if ((OPTION_MPTCP_MPC_SYN |476 if ((OPTION_MPTCP_MPC_SYN | OPTION_MPTCP_MPC_SYNACK |
393 OPTION_MPTCP_MPC_SYNACK |
394 OPTION_MPTCP_MPC_ACK) & opts->suboptions) {477 OPTION_MPTCP_MPC_ACK) & opts->suboptions) {
395 u8 len;478 u8 len;
396 479
@@ -398,6 +481,8 @@ void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts) · 1 unmodified line
398 len = TCPOLEN_MPTCP_MPC_SYN;481 len = TCPOLEN_MPTCP_MPC_SYN;
399 else if (OPTION_MPTCP_MPC_SYNACK & opts->suboptions)482 else if (OPTION_MPTCP_MPC_SYNACK & opts->suboptions)
400 len = TCPOLEN_MPTCP_MPC_SYNACK;483 len = TCPOLEN_MPTCP_MPC_SYNACK;
484 else if (opts->ext_copy.data_len)
485 len = TCPOLEN_MPTCP_MPC_ACK_DATA;
401 else486 else
402 len = TCPOLEN_MPTCP_MPC_ACK;487 len = TCPOLEN_MPTCP_MPC_ACK;
403 488
@@ -405,14 +490,27 @@ void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts) · 1 unmodified line
405 (MPTCPOPT_MP_CAPABLE << 12) |490 (MPTCPOPT_MP_CAPABLE << 12) |
406 (MPTCP_SUPPORTED_VERSION << 8) |491 (MPTCP_SUPPORTED_VERSION << 8) |
407 MPTCP_CAP_HMAC_SHA256);492 MPTCP_CAP_HMAC_SHA256);
493
494 if (!((OPTION_MPTCP_MPC_SYNACK | OPTION_MPTCP_MPC_ACK) &
495 opts->suboptions))
496 goto mp_capable_done;
497
408 put_unaligned_be64(opts->sndr_key, ptr);498 put_unaligned_be64(opts->sndr_key, ptr);
409 ptr += 2;499 ptr += 2;
410 if (OPTION_MPTCP_MPC_ACK & opts->suboptions) {500 if (!((OPTION_MPTCP_MPC_ACK) & opts->suboptions))
411 put_unaligned_be64(opts->rcvr_key, ptr);501 goto mp_capable_done;
412 ptr += 2;502
413 }503 put_unaligned_be64(opts->rcvr_key, ptr);
504 ptr += 2;
505 if (!opts->ext_copy.data_len)
506 goto mp_capable_done;
507
508 put_unaligned_be32(opts->ext_copy.data_len << 16 |
509 TCPOPT_NOP << 8 | TCPOPT_NOP, ptr);
510 ptr += 1;
414 }511 }
415 512
513mp_capable_done:
416 if (opts->ext_copy.use_ack || opts->ext_copy.use_map) {514 if (opts->ext_copy.use_ack || opts->ext_copy.use_map) {
417 struct mptcp_ext *mpext = &opts->ext_copy;515 struct mptcp_ext *mpext = &opts->ext_copy;
418 u8 len = TCPOLEN_MPTCP_DSS_BASE;516 u8 len = TCPOLEN_MPTCP_DSS_BASE;
net/mptcp/protocol.h+4−2
@@ -11,7 +11,7 @@ · 10 unmodified lines
11#include <net/tcp.h>11#include <net/tcp.h>
12#include <net/inet_connection_sock.h>12#include <net/inet_connection_sock.h>
13 13
14#define MPTCP_SUPPORTED_VERSION 014#define MPTCP_SUPPORTED_VERSION 1
15 15
16/* MPTCP option bits */16/* MPTCP option bits */
17#define OPTION_MPTCP_MPC_SYN BIT(0)17#define OPTION_MPTCP_MPC_SYN BIT(0)
@@ -29,9 +29,10 @@ · 11 unmodified lines
29#define MPTCPOPT_MP_FASTCLOSE 729#define MPTCPOPT_MP_FASTCLOSE 7
30 30
31/* MPTCP suboption lengths */31/* MPTCP suboption lengths */
32#define TCPOLEN_MPTCP_MPC_SYN 1232#define TCPOLEN_MPTCP_MPC_SYN 4
33#define TCPOLEN_MPTCP_MPC_SYNACK 1233#define TCPOLEN_MPTCP_MPC_SYNACK 12
34#define TCPOLEN_MPTCP_MPC_ACK 2034#define TCPOLEN_MPTCP_MPC_ACK 20
35#define TCPOLEN_MPTCP_MPC_ACK_DATA 22
35#define TCPOLEN_MPTCP_DSS_BASE 436#define TCPOLEN_MPTCP_DSS_BASE 4
36#define TCPOLEN_MPTCP_DSS_ACK32 437#define TCPOLEN_MPTCP_DSS_ACK32 4
37#define TCPOLEN_MPTCP_DSS_ACK64 838#define TCPOLEN_MPTCP_DSS_ACK64 8
@@ -106,6 +107,7 @@ struct mptcp_subflow_context { · 68 unmodified lines
106 u64 remote_key;107 u64 remote_key;
107 u64 idsn;108 u64 idsn;
108 u64 map_seq;109 u64 map_seq;
110 u32 snd_isn;
109 u32 token;111 u32 token;
110 u32 rel_write_seq;112 u32 rel_write_seq;
111 u32 map_subflow_seq;113 u32 map_subflow_seq;
net/mptcp/subflow.c+12−2
@@ -77,7 +77,6 @@ static void subflow_init_req(struct request_sock *req, · 76 unmodified lines
77 if (err == 0)77 if (err == 0)
78 subflow_req->mp_capable = 1;78 subflow_req->mp_capable = 1;
79 79
80 subflow_req->remote_key = rx_opt.mptcp.sndr_key;
81 subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq;80 subflow_req->ssn_offset = TCP_SKB_CB(skb)->seq;
82 }81 }
83}82}
@@ -180,11 +179,22 @@ static struct sock *subflow_syn_recv_sock(const struct sock *sk, · 96 unmodified lines
180 bool *own_req)179 bool *own_req)
181{180{
182 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk);181 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk);
182 struct mptcp_subflow_request_sock *subflow_req;
183 struct tcp_options_received opt_rx;
183 struct sock *child;184 struct sock *child;
184 185
185 pr_debug("listener=%p, req=%p, conn=%p", listener, req, listener->conn);186 pr_debug("listener=%p, req=%p, conn=%p", listener, req, listener->conn);
186 187
187 /* if the sk is MP_CAPABLE, we already received the client key */188 /* if the sk is MP_CAPABLE, we need to fetch the client key */
189 subflow_req = mptcp_subflow_rsk(req);
190 if (subflow_req->mp_capable) {
191 opt_rx.mptcp.mp_capable = 0;
192 mptcp_get_options(skb, &opt_rx);
193 if (!opt_rx.mptcp.mp_capable)
194 subflow_req->mp_capable = 0;
195 else
196 subflow_req->remote_key = opt_rx.mptcp.sndr_key;
197 }
188 198
189 child = listener->icsk_af_ops->syn_recv_sock(sk, skb, req, dst,199 child = listener->icsk_af_ops->syn_recv_sock(sk, skb, req, dst,
190 req_unhash, own_req);200 req_unhash, own_req);

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