summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-14 20:51:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-14 20:51:17 +0000
commitea1c73234283ff4de8a029763c11267c42664fb9 (patch)
tree96e99a91b9a6301965d53338a6fca4bda129a9dc /sys/compat
parenta775aae9a46c4edf86fca31035df74445c987006 (diff)
support IP_HDRINCL
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_socket.c4
-rw-r--r--sys/compat/linux/linux_socket.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 7d7d721988a..43d64c7a8ae 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.8 1997/12/10 12:44:38 provos Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.9 1997/12/14 20:51:16 deraadt Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -571,6 +571,8 @@ linux_to_bsd_ip_sockopt(lopt)
return IP_ADD_MEMBERSHIP;
case LINUX_IP_DROP_MEMBERSHIP:
return IP_DROP_MEMBERSHIP;
+ case LINUX_IP_HDRINCL:
+ return IP_HDRINCL;
default:
return -1;
}
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 9c89c95cb6b..5bf7e913afb 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.h,v 1.3 1997/12/10 01:51:24 deraadt Exp $ */
+/* $OpenBSD: linux_socket.h,v 1.4 1997/12/14 20:51:16 deraadt Exp $ */
/* $NetBSD: linux_socket.h,v 1.3 1995/05/28 10:16:34 mycroft Exp $ */
/*
@@ -90,8 +90,9 @@
* Options vor [gs]etsockopt(2), IP level.
*/
-#define LINUX_IP_TOS 1
-#define LINUX_IP_TTL 2
+#define LINUX_IP_TOS 1
+#define LINUX_IP_TTL 2
+#define LINUX_IP_HDRINCL 3
#define LINUX_IP_MULTICAST_IF 32
#define LINUX_IP_MULTICAST_TTL 33
#define LINUX_IP_MULTICAST_LOOP 34