]> 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)
commitc53938dfb53a53325a4e5631c96affe8a9dc639b
tree53af04a955ad82a889b2495fe64e9b6a752c3251
parentd797a2eb08d3bdde0d1b0af5e76c12438b82b472
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