net: socket types are zero based
authorAlan Cox <alan@linux.intel.com>
Tue, 12 Jan 2016 23:18:36 +0000 (23:18 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 12 Jan 2016 23:18:36 +0000 (23:18 +0000)
Kernel/include/netdev.h

index a916a96..fa77358 100644 (file)
@@ -80,9 +80,9 @@ struct socket
 };
 
 #define NSOCKTYPE 3
-#define SOCKTYPE_TCP   1
-#define SOCKTYPE_UDP   2
-#define SOCKTYPE_RAW   3
+#define SOCKTYPE_TCP   0
+#define SOCKTYPE_UDP   1
+#define SOCKTYPE_RAW   2
 
 struct netdevice
 {