aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2021-04-06 17:16:00 -0700
committerDavid S. Miller <[email protected]>2021-04-07 14:09:39 -0700
commitf7dafee18538a3933f2cb9d4dcf8b98ff1276ffb (patch)
treec43fb68aacd471a4a7dd89201bd50845149314db /include
parentfef6b7ecfbd465b7e27530e797c00b7384f78e44 (diff)
mptcp: use mptcp_addr_info in mptcp_options_received
This patch added a new struct mptcp_addr_info member addr in struct mptcp_options_received, and dropped the original family, addr_id, addr, addr6 and port fields in it. Then we can pass the parameter mp_opt.addr directly to mptcp_pm_add_addr_received and mptcp_pm_add_addr_echoed. Since the port number became big-endian now, use htons to convert the incoming port number to it. Also use ntohs to convert it when passing it to add_addr_generate_hmac or printing it out. Co-developed-by: Matthieu Baerts <[email protected]> Signed-off-by: Matthieu Baerts <[email protected]> Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions