summaryrefslogtreecommitdiff
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-09 23:28:46 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-09 23:28:46 +0000
commit8da7bcdbd3864aaf423ca8ac7919d77e50ff412b (patch)
tree0e6bfb357ac5e070b32361a10f0e13208959f306 /sys/netinet/in_proto.c
parentd4598455283eae16961f56b6a43d4216a6435c40 (diff)
The kernel parts of a sysctl that can switch on/off IP-in-IP (protocol 4)
support, when IPSEC is compiled in. The default is disabled. Turn on with: sysctl -w net.inet.ip4.allow=1 ***Only*** do this if you are really knowing what you do! This control does not control the tunnel modes of ESP and AH.
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r--sys/netinet/in_proto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index 3a1b928d7f8..7e9abf88109 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_proto.c,v 1.11 1999/02/24 22:32:58 angelos Exp $ */
+/* $OpenBSD: in_proto.c,v 1.12 1999/04/09 23:28:45 niklas Exp $ */
/* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */
/*
@@ -112,6 +112,7 @@ void iplinit __P((void));
#ifdef IPSEC
#include <netinet/ip_ipsp.h>
+#include <netinet/ip_ip4.h>
extern void ah_input __P((struct mbuf *, ...));
extern void esp_input __P((struct mbuf *, ...));
@@ -153,7 +154,7 @@ struct protosw inetsw[] = {
{ SOCK_RAW, &inetdomain, IPPROTO_IPIP, PR_ATOMIC|PR_ADDR,
ip4_input, rip_output, 0, rip_ctloutput,
rip_usrreq, /* XXX */
- 0, 0, 0, 0,
+ 0, 0, 0, 0, ip4_sysctl
},
#elif defined(MROUTING)
{ SOCK_RAW, &inetdomain, IPPROTO_IPIP, PR_ATOMIC|PR_ADDR,