summaryrefslogtreecommitdiffstats
path: root/include/linux/net.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
committer <ralf@linux-mips.org>1995-11-14 08:00:00 +0000
commite7c2a72e2680827d6a733931273a93461c0d8d1b (patch)
treec9abeda78ef7504062bb2e816bcf3e3c9d680112 /include/linux/net.h
parentec6044459060a8c9ce7f64405c465d141898548c (diff)
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'include/linux/net.h')
-rw-r--r--include/linux/net.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index a19f619cb..bad60518f 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -23,7 +23,8 @@
#include <linux/socket.h>
-#define NSOCKETS 128 /* should be dynamic, later... */
+#define NSOCKETS 2000 /* Dynamic, this is MAX LIMIT */
+#define NSOCKETS_UNIX 128 /* unix domain static limit */
#define NPROTO 16 /* should be enough for now.. */
@@ -53,6 +54,8 @@ typedef enum {
} socket_state;
#define SO_ACCEPTCON (1<<16) /* performed a listen */
+#define SO_WAITDATA (1<<17) /* wait data to read */
+#define SO_NOSPACE (1<<18) /* no space to write */
#ifdef __KERNEL__
/*
@@ -128,10 +131,11 @@ struct net_proto {
void (*init_func)(struct net_proto *); /* Bootstrap */
};
-extern int sock_awaitconn(struct socket *mysock, struct socket *servsock);
-extern int sock_wake_async(struct socket *sock);
+extern int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags);
+extern int sock_wake_async(struct socket *sock, int how);
extern int sock_register(int family, struct proto_ops *ops);
extern int sock_unregister(int family);
-
+extern struct socket *sock_alloc(void);
+extern void sock_release(struct socket *sock);
#endif /* __KERNEL__ */
#endif /* _LINUX_NET_H */