diff options
Diffstat (limited to 'include/net/inet_common.h')
| -rw-r--r-- | include/net/inet_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/inet_common.h b/include/net/inet_common.h index 38d5a1e9980d..18c773286b91 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h | |||
| @@ -39,6 +39,17 @@ extern int inet_getname(struct socket *sock, | |||
| 39 | extern int inet_ioctl(struct socket *sock, | 39 | extern int inet_ioctl(struct socket *sock, |
| 40 | unsigned int cmd, unsigned long arg); | 40 | unsigned int cmd, unsigned long arg); |
| 41 | 41 | ||
| 42 | extern int inet_ctl_sock_create(struct sock **sk, | ||
| 43 | unsigned short family, | ||
| 44 | unsigned short type, | ||
| 45 | unsigned char protocol, | ||
| 46 | struct net *net); | ||
| 47 | |||
| 48 | static inline void inet_ctl_sock_destroy(struct sock *sk) | ||
| 49 | { | ||
| 50 | sk_release_kernel(sk); | ||
| 51 | } | ||
| 52 | |||
| 42 | #endif | 53 | #endif |
| 43 | 54 | ||
| 44 | 55 | ||
