[PATCH] socket.h for MIPS

From: roussel@efi.com
Date: Tue May 16 2000 - 14:01:13 EST


Hi,

So I found that the definitions for SOCK_DGRAM and SOCK_STREAM in files
`include/asm-mips/socket.h' and `include/asm-mips64/socket.h' were not
in sync with the definitions from `include/linux/socket.h'

That's a fairly trivial patch.

Thanks,

--- linux-2.3.99-pre9-2/include/asm-mips/socket.h Tue May 16 09:06:14 2000
+++ linux-mx/include/asm-mips/socket.h Tue May 16 09:10:07 2000
@@ -61,10 +61,10 @@
 #define SO_PEERNAME 28
 
 /* Types of sockets. */
-#define SOCK_DGRAM 1 /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_STREAM 2 /* Sequenced, reliable, connection-based
+#define SOCK_STREAM 1 /* Sequenced, reliable, connection-based
                                    byte streams. */
+#define SOCK_DGRAM 2 /* Connectionless, unreliable datagrams
+ of fixed maximum length. */
 #define SOCK_RAW 3 /* Raw protocol interface. */
 #define SOCK_RDM 4 /* Reliably-delivered messages. */
 #define SOCK_SEQPACKET 5 /* Sequenced, reliable, connection-based,
--- linux-2.3.99-pre9-2/include/asm-mips64/socket.h Tue May 16 09:06:14 2000
+++ linux-mx/include/asm-mips64/socket.h Tue May 16 09:10:19 2000
@@ -66,10 +66,10 @@
 #define SO_PEERNAME 28
 
 /* Types of sockets. */
-#define SOCK_DGRAM 1 /* Connectionless, unreliable datagrams
- of fixed maximum length. */
-#define SOCK_STREAM 2 /* Sequenced, reliable, connection-based
+#define SOCK_STREAM 1 /* Sequenced, reliable, connection-based
                                    byte streams. */
+#define SOCK_DGRAM 2 /* Connectionless, unreliable datagrams
+ of fixed maximum length. */
 #define SOCK_RAW 3 /* Raw protocol interface. */
 #define SOCK_RDM 4 /* Reliably-delivered messages. */
 #define SOCK_SEQPACKET 5 /* Sequenced, reliable, connection-based,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:11 EST