X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Finet_common.h;h=18c773286b91744ccf0447b60597db3acc353f9a;hb=3dbfd0801bbbaf2800d7497d83d743a614430e82;hp=38d5a1e9980da3a09f6e6f2c96122bbedf7cc21f;hpb=0048e1c44a4529d4ea93e6920fa5468730c68c94;p=linux-2.6 diff --git a/include/net/inet_common.h b/include/net/inet_common.h index 38d5a1e998..18c773286b 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h @@ -39,6 +39,17 @@ extern int inet_getname(struct socket *sock, extern int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); +extern int inet_ctl_sock_create(struct sock **sk, + unsigned short family, + unsigned short type, + unsigned char protocol, + struct net *net); + +static inline void inet_ctl_sock_destroy(struct sock *sk) +{ + sk_release_kernel(sk); +} + #endif