summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-11 19:41:42 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-11 19:41:42 +0000
commit7ab4566c34fb0c170d5805b34cd71d628eb1b501 (patch)
tree2a3692c04b3c0ed1032a41936fd4cdecb7b23796 /sys/netinet/ip_input.c
parentecae586b2a272f8463fb63b561d690b87f1d8b4c (diff)
Introduce net.inet.{ah,esp}.enable sysctl controls that are off by default.
If you are going to use either of AH or ESP or both, enable these in /etc/sysctl.conf. Also correct the IPSec debugging sysctl code, it is now named net.inet.ip.encdebug. Some corrected function signatures too.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index f7ada6e46ff..2e01890273c 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.37 1999/02/21 04:01:46 deraadt Exp $ */
+/* $OpenBSD: ip_input.c,v 1.38 1999/04/11 19:41:38 niklas Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -64,6 +64,7 @@
#include <netinet/in_var.h>
#include <netinet/ip_var.h>
#include <netinet/ip_icmp.h>
+#include <netinet/ip_ipsp.h>
#ifndef IPFORWARDING
#ifdef GATEWAY
@@ -1430,6 +1431,8 @@ ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
case IPCTL_IPPORT_MAXQUEUE:
return (sysctl_int(oldp, oldlenp, newp, newlen,
&ip_maxqueue));
+ case IPCTL_ENCDEBUG:
+ return (sysctl_int(oldp, oldlenp, newp, newlen, &encdebug));
default:
return (EOPNOTSUPP);
}