mptcp: reflect remote port (not 0) in ANNOUNCED events
authorKishen Maloor <kishen.maloor@intel.com>
Mon, 2 May 2022 20:52:34 +0000 (13:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 May 2022 23:54:55 +0000 (16:54 -0700)
commitd1ace2d9abf3eb5aaa91621050bfd02695721d18
tree53ada923486b7cf0e87daced865ffdd0dc7d0fe1
parent8a348392209ffdd70926253f014eec0c04dbf3e7
mptcp: reflect remote port (not 0) in ANNOUNCED events

Per RFC 8684, if no port is specified in an ADD_ADDR message, MPTCP
SHOULD attempt to connect to the specified address on the same port
as the port that is already in use by the subflow on which the
ADD_ADDR signal was sent.

To facilitate that, this change reflects the specific remote port in
use by that subflow in MPTCP_EVENT_ANNOUNCED events.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Kishen Maloor <kishen.maloor@intel.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/options.c
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.h