OSDN Git Service

mptcp: parse and emit MP_CAPABLE option according to v1 spec
authorChristoph Paasch <cpaasch@apple.com>
Wed, 22 Jan 2020 00:56:31 +0000 (16:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jan 2020 12:44:08 +0000 (13:44 +0100)
commitcc7972ea1932335e0a0ee00ac8a24b3e8304630d
treed21fb64626a38ba789fc9ffbedd03df45dd27b1e
parent65492c5a6ab5df5091a77562dbcca2d2dc3877c0
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.

Signed-off-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/mptcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c
net/mptcp/options.c
net/mptcp/protocol.h
net/mptcp/subflow.c