diff options
author | Geliang Tang <geliangtang@gmail.com> | 2021-04-06 17:15:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-07 14:09:39 -0700 |
commit | 30f60bae80922582a16e80b070171a865fce58cd (patch) | |
tree | 0a3147a613548e0294a595424559deb2aa8919ce /mm/z3fold.c | |
parent | daa83ab039546a906953f1821e493ddc980ed889 (diff) |
mptcp: use mptcp_addr_info in mptcp_out_options
This patch moved the mptcp_addr_info struct from protocol.h to mptcp.h,
added a new struct mptcp_addr_info member addr in struct mptcp_out_options,
and dropped the original addr, addr6, addr_id and port fields in it. Then
we can use opts->addr to get the adding address from PM directly using
mptcp_pm_add_addr_signal.
Since the port number became big-endian now, use ntohs to convert it
before sending it out with the ADD_ADDR suboption. Also convert it
when passing it to add_addr_generate_hmac or printing it out.
Co-developed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/z3fold.c')
0 files changed, 0 insertions, 0 deletions