summaryrefslogtreecommitdiff
path: root/usr.sbin/sysctl
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-09 23:30:07 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-09 23:30:07 +0000
commitf2ad7f7574cc6a0b49d54371e1731358da0a634a (patch)
tree247a550422a29e54c34b0d1440098ca5541cd1fa /usr.sbin/sysctl
parent8da7bcdbd3864aaf423ca8ac7919d77e50ff412b (diff)
The userland parts of a sysctl that can switch on/off IP-in-IP (protocol 4)
Diffstat (limited to 'usr.sbin/sysctl')
-rw-r--r--usr.sbin/sysctl/sysctl.84
-rw-r--r--usr.sbin/sysctl/sysctl.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/sysctl/sysctl.8 b/usr.sbin/sysctl/sysctl.8
index 4ae6dc96f87..3be0431bd5e 100644
--- a/usr.sbin/sysctl/sysctl.8
+++ b/usr.sbin/sysctl/sysctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.8,v 1.22 1999/02/25 03:34:38 angelos Exp $
+.\" $OpenBSD: sysctl.8,v 1.23 1999/04/09 23:30:05 niklas Exp $
.\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $
.\"
.\" Copyright (c) 1993
@@ -154,6 +154,8 @@ privilege can change the value.
.It net.inet.ip.porthilast integer yes
.It net.inet.ip.portfirst integer yes
.It net.inet.icmp.maskrepl integer yes
+.It net.inet.icmp.bmcastecho integer yes
+.It net.inet.ip4.policy integer yes
.It net.inet.tcp.rfc1323 integer yes
.It net.inet.tcp.keepinittime integer yes
.It net.inet.tcp.keepidle integer yes
diff --git a/usr.sbin/sysctl/sysctl.c b/usr.sbin/sysctl/sysctl.c
index 4b9afb5f4a6..1041d89c2e9 100644
--- a/usr.sbin/sysctl/sysctl.c
+++ b/usr.sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.37 1999/02/25 21:59:50 deraadt Exp $ */
+/* $OpenBSD: sysctl.c,v 1.38 1999/04/09 23:30:06 niklas Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.37 1999/02/25 21:59:50 deraadt Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.38 1999/04/09 23:30:06 niklas Exp $";
#endif
#endif /* not lint */
@@ -63,6 +63,7 @@ static char *rcsid = "$OpenBSD: sysctl.c,v 1.37 1999/02/25 21:59:50 deraadt Exp
#include <netinet/ip.h>
#include <netinet/in_pcb.h>
#include <netinet/ip_icmp.h>
+#include <netinet/ip_ip4.h>
#include <netinet/icmp_var.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
@@ -935,6 +936,7 @@ sysctl_ipsec(string, bufpp, mib, flags, typep)
struct ctlname inetname[] = CTL_IPPROTO_NAMES;
struct ctlname ipname[] = IPCTL_NAMES;
struct ctlname icmpname[] = ICMPCTL_NAMES;
+struct ctlname ip4name[] = IP4CTL_NAMES;
struct ctlname tcpname[] = TCPCTL_NAMES;
struct ctlname udpname[] = UDPCTL_NAMES;
struct list inetlist = { inetname, IPPROTO_MAXID };
@@ -943,7 +945,7 @@ struct list inetvars[] = {
{ icmpname, ICMPCTL_MAXID }, /* icmp */
{ 0, 0 }, /* igmp */
{ 0, 0 }, /* ggmp */
- { 0, 0 },
+ { ip4name, IP4CTL_MAXID }, /* ipencap */
{ 0, 0 },
{ tcpname, TCPCTL_MAXID }, /* tcp */
{ 0, 0 },