mptcp: drop all sub-options except ADD_ADDR when the echo bit is set
authorDavide Caratti <dcaratti@redhat.com>
Wed, 7 Apr 2021 00:16:04 +0000 (17:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:09:40 +0000 (14:09 -0700)
commit07f8252fe0e3c2b6320eeff18bdc5b7fb8845cb3
treeecab1b16cc976d788105879860c0b6727b2c76d3
parentc3eaa5f667cb60ea23c1bbc59e83c4f71de18e48
mptcp: drop all sub-options except ADD_ADDR when the echo bit is set

Current Linux carries echo-ed ADD_ADDR over pure TCP ACKs, so there is no
need to add a DSS element that would fit only ADD_ADDR with IPv4 address.
Drop the DSS from echo-ed ADD_ADDR, regardless of the IP version.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c