diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index ab5c87eedc9b..3d91986d8a03 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93 -.\" $Id: sysctl.8,v 1.3 1994/10/17 18:55:21 ache Exp $ +.\" $Id: sysctl.8,v 1.4 1994/10/18 03:41:16 ache Exp $ .\" .Dd September 23, 1994 .Dt SYSCTL 8 @@ -132,11 +132,6 @@ privilege can change the value. .It kern.osreldate string no .It kern.bootfile string yes .It vm.loadavg struct no -.It net.inet.ip.forwarding integer yes -.It net.inet.ip.redirect integer yes -.It net.inet.ip.ttl integer yes -.It net.inet.icmp.maskrepl integer yes -.It net.inet.udp.checksum integer yes .It hw.machine string no .It hw.model string no .It hw.ncpu integer no diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index ebed026e2ee4..1d163e1579b4 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -40,7 +40,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "From: @(#)sysctl.c 8.1 (Berkeley) 6/6/93"; */ static const char rcsid[] = - "$Id$"; + "$Id: sysctl.c,v 1.3 1995/02/09 23:16:17 wollman Exp $"; #endif /* not lint */ #include @@ -63,6 +63,7 @@ static const char rcsid[] = #include #include #include +#include #include #include @@ -298,7 +299,8 @@ parse(string, flags) case CTL_NET: if (mib[1] == PF_INET) { - len = sysctl_inet(string, &bufp, mib, flags, &type); + len = sysctl_inet(string, &bufp, mib, flags, &type, + &special); if (len >= 0) break; return; @@ -479,13 +481,14 @@ struct ctlname ipname[] = IPCTL_NAMES; struct ctlname icmpname[] = ICMPCTL_NAMES; struct ctlname udpname[] = UDPCTL_NAMES; struct ctlname tcpname[] = TCPCTL_NAMES; +struct ctlname igmpname[] = IGMPCTL_NAMES; struct list inetlist = { inetname, IPPROTO_MAXID }; struct list inetvars[] = { { ipname, IPCTL_MAXID }, /* ip */ { icmpname, ICMPCTL_MAXID }, /* icmp */ - { 0, 0 }, /* igmp */ - { 0, 0 }, /* ggmp */ - { 0, 0 }, + { igmpname, IGMPCTL_MAXID }, /* igmp */ + { 0, 0 }, /* ggp */ + { 0, 0 }, /* ipencap */ { 0, 0 }, { tcpname, TCPCTL_MAXID }, /* tcp */ { 0, 0 }, @@ -504,12 +507,14 @@ struct list inetvars[] = { /* * handle internet requests */ -sysctl_inet(string, bufpp, mib, flags, typep) +int +sysctl_inet(string, bufpp, mib, flags, typep, specialp) char *string; char **bufpp; int mib[]; int flags; int *typep; + int *specialp; { struct list *lp; int indx; diff --git a/usr.sbin/sysctl/sysctl.8 b/usr.sbin/sysctl/sysctl.8 index ab5c87eedc9b..3d91986d8a03 100644 --- a/usr.sbin/sysctl/sysctl.8 +++ b/usr.sbin/sysctl/sysctl.8 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93 -.\" $Id: sysctl.8,v 1.3 1994/10/17 18:55:21 ache Exp $ +.\" $Id: sysctl.8,v 1.4 1994/10/18 03:41:16 ache Exp $ .\" .Dd September 23, 1994 .Dt SYSCTL 8 @@ -132,11 +132,6 @@ privilege can change the value. .It kern.osreldate string no .It kern.bootfile string yes .It vm.loadavg struct no -.It net.inet.ip.forwarding integer yes -.It net.inet.ip.redirect integer yes -.It net.inet.ip.ttl integer yes -.It net.inet.icmp.maskrepl integer yes -.It net.inet.udp.checksum integer yes .It hw.machine string no .It hw.model string no .It hw.ncpu integer no diff --git a/usr.sbin/sysctl/sysctl.c b/usr.sbin/sysctl/sysctl.c index ebed026e2ee4..1d163e1579b4 100644 --- a/usr.sbin/sysctl/sysctl.c +++ b/usr.sbin/sysctl/sysctl.c @@ -40,7 +40,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "From: @(#)sysctl.c 8.1 (Berkeley) 6/6/93"; */ static const char rcsid[] = - "$Id$"; + "$Id: sysctl.c,v 1.3 1995/02/09 23:16:17 wollman Exp $"; #endif /* not lint */ #include @@ -63,6 +63,7 @@ static const char rcsid[] = #include #include #include +#include #include #include @@ -298,7 +299,8 @@ parse(string, flags) case CTL_NET: if (mib[1] == PF_INET) { - len = sysctl_inet(string, &bufp, mib, flags, &type); + len = sysctl_inet(string, &bufp, mib, flags, &type, + &special); if (len >= 0) break; return; @@ -479,13 +481,14 @@ struct ctlname ipname[] = IPCTL_NAMES; struct ctlname icmpname[] = ICMPCTL_NAMES; struct ctlname udpname[] = UDPCTL_NAMES; struct ctlname tcpname[] = TCPCTL_NAMES; +struct ctlname igmpname[] = IGMPCTL_NAMES; struct list inetlist = { inetname, IPPROTO_MAXID }; struct list inetvars[] = { { ipname, IPCTL_MAXID }, /* ip */ { icmpname, ICMPCTL_MAXID }, /* icmp */ - { 0, 0 }, /* igmp */ - { 0, 0 }, /* ggmp */ - { 0, 0 }, + { igmpname, IGMPCTL_MAXID }, /* igmp */ + { 0, 0 }, /* ggp */ + { 0, 0 }, /* ipencap */ { 0, 0 }, { tcpname, TCPCTL_MAXID }, /* tcp */ { 0, 0 }, @@ -504,12 +507,14 @@ struct list inetvars[] = { /* * handle internet requests */ -sysctl_inet(string, bufpp, mib, flags, typep) +int +sysctl_inet(string, bufpp, mib, flags, typep, specialp) char *string; char **bufpp; int mib[]; int flags; int *typep; + int *specialp; { struct list *lp; int indx;