diff options
author | Geliang Tang <[email protected]> | 2024-03-01 19:18:30 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-03-04 13:07:45 +0000 |
commit | c19ee3c7e38857b7d266d09129fa509d34716ec3 (patch) | |
tree | ed14d7852bcec09c1c13f8a63fff7fb0ea8a041d /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 9ae7846c4b6b3c7ccd0c9c96012b92f443295a7d (diff) |
mptcp: check userspace pm flags
Just like MPTCP_PM_ADDR_FLAG_SIGNAL flag is checked in userspace PM
announce mptcp_pm_nl_announce_doit(), PM flags should be checked in
mptcp_pm_nl_subflow_create_doit() too.
If MPTCP_PM_ADDR_FLAG_SUBFLOW flag is not set, there's no flags field
in the output of dump_addr. This looks a bit strange:
id 10 flags 10.0.3.2
This patch uses mptcp_pm_parse_entry() instead of mptcp_pm_parse_addr()
to get the PM flags of the entry and check it. MPTCP_PM_ADDR_FLAG_SIGNAL
flag shouldn't be set here, and if MPTCP_PM_ADDR_FLAG_SUBFLOW flag is
missing from the netlink attribute, always set this flag.
Signed-off-by: Geliang Tang <[email protected]>
Reviewed-by: Matthieu Baerts (NGI0) <[email protected]>
Reviewed-by: Mat Martineau <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions