aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/net.h')
-rw-r--r--include/linux/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index 8b5383c45b45..3a9b06d4d0fe 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -47,6 +47,7 @@ struct net;
47#define SYS_GETSOCKOPT 15 /* sys_getsockopt(2) */ 47#define SYS_GETSOCKOPT 15 /* sys_getsockopt(2) */
48#define SYS_SENDMSG 16 /* sys_sendmsg(2) */ 48#define SYS_SENDMSG 16 /* sys_sendmsg(2) */
49#define SYS_RECVMSG 17 /* sys_recvmsg(2) */ 49#define SYS_RECVMSG 17 /* sys_recvmsg(2) */
50#define SYS_PACCEPT 18 /* sys_paccept(2) */
50 51
51typedef enum { 52typedef enum {
52 SS_FREE = 0, /* not allocated */ 53 SS_FREE = 0, /* not allocated */
@@ -219,6 +220,8 @@ extern int sock_map_fd(struct socket *sock, int flags);
219extern struct socket *sockfd_lookup(int fd, int *err); 220extern struct socket *sockfd_lookup(int fd, int *err);
220#define sockfd_put(sock) fput(sock->file) 221#define sockfd_put(sock) fput(sock->file)
221extern int net_ratelimit(void); 222extern int net_ratelimit(void);
223extern long do_accept(int fd, struct sockaddr __user *upeer_sockaddr,
224 int __user *upeer_addrlen, int flags);
222 225
223#define net_random() random32() 226#define net_random() random32()
224#define net_srandom(seed) srandom32((__force u32)seed) 227#define net_srandom(seed) srandom32((__force u32)seed)