]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: add netlink event support
authorFlorian Westphal <fw@strlen.de>
Sat, 13 Feb 2021 00:00:01 +0000 (16:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2021 00:31:46 +0000 (16:31 -0800)
commit6757daa5149f637fe25919f791123f9398a6e8c4
tree53af04a955ad82a889b2495fe64e9b6a752c3251
parent5520854b6d5516e3b83759a9b77dc00ea6e92c22
mptcp: add netlink event support

Allow userspace (mptcpd) to subscribe to mptcp genl multicast events.
This implementation reuses the same event API as the mptcp kernel fork
to ease integration of existing tools, e.g. mptcpd.

Supported events include:
1. start and close of an mptcp connection
2. start and close of subflows (joins)
3. announce and withdrawals of addresses
4. subflow priority (backup/non-backup) change.

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/mptcp.h
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.c
net/mptcp/protocol.h