Merge tag 'vfio-v3.17-rc1' of git://github.com/awilliam/linux-vfio
[pandora-kernel.git] / include / net / genetlink.h
index 1b177ed..93695f0 100644 (file)
@@ -73,6 +73,7 @@ struct genl_family {
  * @attrs: netlink attributes
  * @_net: network namespace
  * @user_ptr: user pointers
+ * @dst_sk: destination socket
  */
 struct genl_info {
        u32                     snd_seq;
@@ -85,6 +86,7 @@ struct genl_info {
        struct net *            _net;
 #endif
        void *                  user_ptr[2];
+       struct sock *           dst_sk;
 };
 
 static inline struct net *genl_info_net(struct genl_info *info)
@@ -177,6 +179,8 @@ void genl_notify(struct genl_family *family,
                 struct sk_buff *skb, struct net *net, u32 portid,
                 u32 group, struct nlmsghdr *nlh, gfp_t flags);
 
+struct sk_buff *genlmsg_new_unicast(size_t payload, struct genl_info *info,
+                                   gfp_t flags);
 void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq,
                  struct genl_family *family, int flags, u8 cmd);