]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/inet_common.h
[NETNS]: Inet control socket should not hold a namespace.
[net-next-2.6.git] / include / net / inet_common.h
index 4bfcf3f3555f6c8573fcf9e5be2cbff6e0d29727..18c773286b91744ccf0447b60597db3acc353f9a 100644 (file)
@@ -42,7 +42,13 @@ extern int                   inet_ioctl(struct socket *sock,
 extern int                     inet_ctl_sock_create(struct sock **sk,
                                                     unsigned short family,
                                                     unsigned short type,
-                                                    unsigned char protocol);
+                                                    unsigned char protocol,
+                                                    struct net *net);
+
+static inline void inet_ctl_sock_destroy(struct sock *sk)
+{
+       sk_release_kernel(sk);
+}
 
 #endif