diff options
Diffstat (limited to 'include/linux/net.h')
-rw-r--r-- | include/linux/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index e9ac2df079ba..99276c3dc89a 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -72,6 +72,7 @@ struct net; | |||
72 | #define SOCK_NOSPACE 2 | 72 | #define SOCK_NOSPACE 2 |
73 | #define SOCK_PASSCRED 3 | 73 | #define SOCK_PASSCRED 3 |
74 | #define SOCK_PASSSEC 4 | 74 | #define SOCK_PASSSEC 4 |
75 | #define SOCK_EXTERNALLY_ALLOCATED 5 | ||
75 | 76 | ||
76 | #ifndef ARCH_HAS_SOCKET_TYPES | 77 | #ifndef ARCH_HAS_SOCKET_TYPES |
77 | /** | 78 | /** |
@@ -247,6 +248,7 @@ extern int sock_recvmsg(struct socket *sock, struct msghdr *msg, | |||
247 | size_t size, int flags); | 248 | size_t size, int flags); |
248 | extern int sock_map_fd(struct socket *sock, int flags); | 249 | extern int sock_map_fd(struct socket *sock, int flags); |
249 | extern struct socket *sockfd_lookup(int fd, int *err); | 250 | extern struct socket *sockfd_lookup(int fd, int *err); |
251 | extern struct socket *sock_from_file(struct file *file, int *err); | ||
250 | #define sockfd_put(sock) fput(sock->file) | 252 | #define sockfd_put(sock) fput(sock->file) |
251 | extern int net_ratelimit(void); | 253 | extern int net_ratelimit(void); |
252 | 254 | ||