1 #include <net/genetlink.h>
2 #include <linux/version.h>
4 /* This is analogous to rtnl_notify() but uses genl_sock instead of rtnl.
6 * This is not (yet) in any upstream kernel. */
7 void genl_notify(struct sk_buff *skb, struct net *net, u32 portid, u32 group,
8 struct nlmsghdr *nlh, gfp_t flags)
10 struct sock *sk = net->genl_sock;
14 report = nlmsg_report(nlh);
16 nlmsg_notify(sk, skb, portid, group, report, flags);