From f2ad7f7574cc6a0b49d54371e1731358da0a634a Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Fri, 9 Apr 1999 23:30:07 +0000 Subject: The userland parts of a sysctl that can switch on/off IP-in-IP (protocol 4) --- usr.sbin/sysctl/sysctl.8 | 4 +++- usr.sbin/sysctl/sysctl.c | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'usr.sbin/sysctl') 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 #include #include +#include #include #include #include @@ -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 }, -- cgit v1.2.3