[NETLINK]: Add notification message sending interface
Adds nlmsg_notify() implementing proper notification logic. The message is multicasted to all listeners in the group. The applications the requests orignates from can request a unicast back report in which case said socket will be excluded from the multicast to avoid duplicated notifications. nlmsg_multicast() is extended to take allocation flags to allow notification in atomic contexts. Signed-off-by:Thomas Graf <tgraf@suug.ch> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/genetlink.h 3 additions, 2 deletionsinclude/net/genetlink.h
- include/net/netlink.h 4 additions, 2 deletionsinclude/net/netlink.h
- net/netlabel/netlabel_user.c 1 addition, 1 deletionnet/netlabel/netlabel_user.c
- net/netlink/af_netlink.c 33 additions, 1 deletionnet/netlink/af_netlink.c
- net/netlink/genetlink.c 1 addition, 1 deletionnet/netlink/genetlink.c
Please register or sign in to comment