• Jiri Pirko's avatar
    genetlink: introduce helpers to do filtered multicast · 971b4ad8
    Jiri Pirko authored
    Currently it is possible for netlink kernel user to pass custom
    filter function to broadcast send function netlink_broadcast_filtered().
    However, this is not exposed to multicast send and to generic
    netlink users.
    
    Extend the api and introduce a netlink helper nlmsg_multicast_filtered()
    and a generic netlink helper genlmsg_multicast_netns_filtered()
    to allow generic netlink families to specify filter function
    while sending multicast messages.
    Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    971b4ad8
genetlink.h 19.6 KB