aboutsummaryrefslogtreecommitdiff
path: root/pfinet/linux/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet/linux/socket.h')
-rw-r--r--pfinet/linux/socket.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/pfinet/linux/socket.h b/pfinet/linux/socket.h
new file mode 100644
index 00000000..22dd05ce
--- /dev/null
+++ b/pfinet/linux/socket.h
@@ -0,0 +1,27 @@
+#ifndef _HACK_SOCKET_H_
+#define _HACK_SOCKET_H_
+
+#include <sys/socket.h>
+#include <sys/ioctl.h>
+
+#define IP_MAX_MEMBERSHIPS 10
+
+#define IPTOS_LOWDELAY 0x10
+#define IPTOS_THROUGHPUT 0x08
+#define IPTOS_RELIABILITY 0x04
+
+#define SOPRI_INTERACTIVE 0
+#define SOPRI_NORMAL 1
+#define SOPRI_BACKGROUND 2
+
+#define SOL_IP IPPROTO_IP
+#define SOL_TCP IPPROTO_TCP
+
+/* TCP options */
+#define TCP_NODELAY 1
+#define TCP_MAXSEG 2
+
+#define SO_NO_CHECK 11
+#define SO_PRIORITY 12
+
+#endif