All of lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH 2/2] mptcp: Include ADD_ADDR port value for path manager
@ 2020-03-20 17:51 Peter Krystad
  0 siblings, 0 replies; only message in thread
From: Peter Krystad @ 2020-03-20 17:51 UTC (permalink / raw)
  To: mptcp

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

Include the port value in the addr info passed to
mptcp_pm_add_addr_received().

squashto: Add path manager interface

Signed-off-by: Peter Krystad <peter.krystad(a)linux.intel.com>
---
 net/mptcp/options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index d951f7d325a3..e8cb7d836cb7 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -652,7 +652,7 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb,
 	if (mp_opt->add_addr && add_addr_hmac_valid(msk, mp_opt)) {
 		struct mptcp_addr_info addr;
 
-		addr.port = 0;
+		addr.port = htons(mp_opt->port);
 		addr.id = mp_opt->addr_id;
 		if (mp_opt->family == MPTCP_ADDR_IPVERSION_4) {
 			addr.family = AF_INET;
-- 
2.17.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-20 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 17:51 [MPTCP] [PATCH 2/2] mptcp: Include ADD_ADDR port value for path manager Peter Krystad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.