summaryrefslogtreecommitdiffstats
path: root/include/linux/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/socket.h')
-rw-r--r--include/linux/socket.h43
1 files changed, 36 insertions, 7 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h
index 224880172..44cff1fc4 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -28,12 +28,16 @@ struct linger {
/* Supported address families. */
#define AF_UNSPEC 0
-#define AF_UNIX 1
-#define AF_INET 2
-#define AF_AX25 3
-#define AF_IPX 4
-
-#define AF_MAX 8 /* For now.. */
+#define AF_UNIX 1 /* Unix domain sockets */
+#define AF_INET 2 /* Internet IP Protocol */
+#define AF_AX25 3 /* Amateur Radio AX.25 */
+#define AF_IPX 4 /* Novell IPX */
+#define AF_APPLETALK 5 /* Appletalk DDP */
+#define AF_NETROM 6 /* Amateur radio NetROM */
+#define AF_BRIDGE 7 /* Multiprotocol bridge */
+#define AF_AAL5 8 /* Reserved for Werner's ATM */
+#define AF_X25 9 /* Reserved for X.25 project */
+#define AF_MAX 12 /* For now.. */
/* Protocol families, same as address families. */
#define PF_UNSPEC AF_UNSPEC
@@ -41,8 +45,14 @@ struct linger {
#define PF_INET AF_INET
#define PF_AX25 AF_AX25
#define PF_IPX AF_IPX
+#define PF_APPLETALK AF_APPLETALK
+#define PF_NETROM AF_NETROM
+#define PF_BRIDGE AF_BRIDGE
+#define PF_AAL5 AF_AAL5
+#define PF_X25 AF_X25
#define PF_MAX AF_MAX
+
/* Flags we can use with send/ and recv. */
#define MSG_OOB 1
#define MSG_PEEK 2
@@ -53,6 +63,8 @@ struct linger {
#define SOL_IP 0
#define SOL_IPX 256
#define SOL_AX25 257
+#define SOL_ATALK 258
+#define SOL_NETROM 259
#define SOL_TCP 6
#define SOL_UDP 17
@@ -70,6 +82,7 @@ struct linger {
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
+/* To add :#define SO_REUSEPORT 14 */
/* IP options */
#define IP_TOS 1
@@ -77,7 +90,23 @@ struct linger {
#define IPTOS_THROUGHPUT 0x08
#define IPTOS_RELIABILITY 0x04
#define IP_TTL 2
-
+#ifdef V1_3_WILL_DO_THIS_FUNKY_STUFF
+#define IP_HRDINCL 3
+#define IP_OPTIONS 4
+#endif
+
+#define IP_MULTICAST_IF 32
+#define IP_MULTICAST_TTL 33
+#define IP_MULTICAST_LOOP 34
+#define IP_ADD_MEMBERSHIP 35
+#define IP_DROP_MEMBERSHIP 36
+
+
+/* These need to appear somewhere around here */
+#define IP_DEFAULT_MULTICAST_TTL 1
+#define IP_DEFAULT_MULTICAST_LOOP 1
+#define IP_MAX_MEMBERSHIPS 20
+
/* IPX options */
#define IPX_TYPE 1