summaryrefslogtreecommitdiff
path: root/sbin/sysctl
diff options
context:
space:
mode:
authorJean-Jacques Bernard-Gundol <jjbg@cvs.openbsd.org>2001-07-05 08:42:16 +0000
committerJean-Jacques Bernard-Gundol <jjbg@cvs.openbsd.org>2001-07-05 08:42:16 +0000
commit39f73f2430106e78387a9e4ab63d9ad3a07d5f5e (patch)
treeb11a7f81cebdb8c7f27b9ba00d3a3ecac97fa982 /sbin/sysctl
parentbb296cd3fec3e4086fdbb49949d517554ec6792e (diff)
IPComp support. angelos@ ok.
Diffstat (limited to 'sbin/sysctl')
-rw-r--r--sbin/sysctl/sysctl.84
-rw-r--r--sbin/sysctl/sysctl.c17
2 files changed, 18 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index f58e2af4247..6dc881d6aa8 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.8,v 1.66 2001/06/03 04:41:38 angelos Exp $
+.\" $OpenBSD: sysctl.8,v 1.67 2001/07/05 08:42:14 jjbg Exp $
.\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $
.\"
.\" Copyright (c) 1993
@@ -179,6 +179,7 @@ privilege can change the value.
.It net.inet.ip.ipsec-firstuse integer yes
.It net.inet.ip.ipsec-enc-alg string yes
.It net.inet.ip.ipsec-auth-alg string yes
+.It net.inet.ip.ipsec-comp-alg string yes
.It net.inet.ip.ipsec-expire-acquire integer yes
.It net.inet.ip.ipsec-invalid-life integer yes
.It net.inet.ip.mtudisc integer yes
@@ -205,6 +206,7 @@ privilege can change the value.
.It net.inet.udp.sendspace integer yes
.It net.inet.esp.enable integer yes
.It net.inet.ah.enable integer yes
+.It net.inet.ipcomp.enable integer yes
.It net.inet.gre.allow integer yes
.It net.inet.mobileip.allow integer yes
.It net.inet6.ip6.forwarding integer yes
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index fa613e589d9..84a7d302eef 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.73 2001/06/27 06:16:47 art Exp $ */
+/* $OpenBSD: sysctl.c,v 1.74 2001/07/05 08:42:15 jjbg 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.73 2001/06/27 06:16:47 art Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.74 2001/07/05 08:42:15 jjbg Exp $";
#endif
#endif /* not lint */
@@ -80,6 +80,7 @@ static char *rcsid = "$OpenBSD: sysctl.c,v 1.73 2001/06/27 06:16:47 art Exp $";
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
#include <netinet/ip_gre.h>
+#include <netinet/ip_ipcomp.h>
#ifdef INET6
#include <netinet/ip6.h>
@@ -1212,6 +1213,7 @@ struct ctlname ahname[] = AHCTL_NAMES;
struct ctlname etheripname[] = ETHERIPCTL_NAMES;
struct ctlname grename[] = GRECTL_NAMES;
struct ctlname mobileipname[] = MOBILEIPCTL_NAMES;
+struct ctlname ipcompname[] = IPCOMPCTL_NAMES;
struct list inetlist = { inetname, IPPROTO_MAXID };
struct list inetvars[] = {
{ ipname, IPCTL_MAXID }, /* ip */
@@ -1312,6 +1314,17 @@ struct list inetvars[] = {
{ 0, 0 },
{ 0, 0 },
{ etheripname, ETHERIPCTL_MAXID },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { 0, 0 },
+ { ipcompname, IPCOMPCTL_MAXID },
};
struct list kernmalloclist = { kernmallocname, KERN_MALLOC_MAXID };