summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/socket_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'ucspi-tcp-0.88/socket_opts.c')
-rw-r--r--ucspi-tcp-0.88/socket_opts.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/socket_opts.c b/ucspi-tcp-0.88/socket_opts.c
new file mode 100644
index 0000000..ce5d170
--- /dev/null
+++ b/ucspi-tcp-0.88/socket_opts.c
@@ -0,0 +1,10 @@
+#include <sys/types.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include "socket.h"
+
+int socket_ipoptionskill(int s)
+{
+ return setsockopt(s,IPPROTO_IP,1,(char *) 0,0); /* 1 == IP_OPTIONS */
+}