patch-2.2.11 linux/include/asm-mips/socket.h

Next file: linux/include/asm-mips/softirq.h
Previous file: linux/include/asm-mips/sni.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.10/linux/include/asm-mips/socket.h linux/include/asm-mips/socket.h
@@ -1,5 +1,5 @@
 /*
- * $Id: socket.h,v 1.5 1998/03/15 09:52:54 ralf Exp $
+ * $Id: socket.h,v 1.5 1998/03/17 22:16:17 ralf Exp $
  */
 #ifndef __ASM_MIPS_SOCKET_H
 #define __ASM_MIPS_SOCKET_H
@@ -13,6 +13,7 @@
  */
 #define SOL_SOCKET	0xffff
 
+
 #define SO_DEBUG	0x0001	/* Record debugging information.  */
 #define SO_REUSEADDR	0x0004	/* Allow reuse of local addresses.  */
 #define SO_KEEPALIVE	0x0008	/* Keep connections alive and send
@@ -56,17 +57,20 @@
 #define SO_ATTACH_FILTER        26
 #define SO_DETACH_FILTER        27
 
-/* Types of sockets.  */
-#define SOCK_DGRAM 1		/* Connectionless, unreliable datagrams
-				   of fixed maximum length.  */
-#define SOCK_STREAM 2		/* Sequenced, reliable, connection-based
-				   byte streams.  */
-#define SOCK_RAW 3		/* Raw protocol interface.  */
-#define SOCK_RDM 4		/* Reliably-delivered messages.  */
-#define SOCK_SEQPACKET 5	/* Sequenced, reliable, connection-based,
-				   datagrams of fixed maximum length.  */
-#define SOCK_PACKET 10		/* Linux specific way of getting packets at
-				   the dev level.  For writing rarp and
-				   other similar things on the user level.  */
+/* Socket types. */
+
+#ifdef __KERNEL__
 
+#define SOCK_DGRAM	1		/* datagram (conn.less) socket	*/
+#define SOCK_STREAM	2		/* stream (connection) socket	*/
+#define SOCK_RAW	3		/* raw socket			*/
+#define SOCK_RDM	4		/* reliably-delivered message	*/
+#define SOCK_SEQPACKET	5		/* sequential packet socket	*/
+#define SOCK_PACKET	10		/* linux specific way of	*/
+					/* getting packets at the dev	*/
+					/* level.  For writing rarp and	*/
+					/* other similar things on the	*/
+					/* user level.			*/
+
+#endif
 #endif /* __ASM_MIPS_SOCKET_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)