Sysctl descriptions under net subtree (net.key not done)
This commit is contained in:
parent
d37080bc2f
commit
4de3747b89
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: uipc_domain.c,v 1.47 2004/04/22 01:01:40 matt Exp $ */
|
/* $NetBSD: uipc_domain.c,v 1.48 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1982, 1986, 1993
|
* Copyright (c) 1982, 1986, 1993
|
||||||
@ -32,7 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.47 2004/04/22 01:01:40 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.48 2004/05/25 04:33:59 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
@ -215,7 +215,8 @@ SYSCTL_SETUP(sysctl_net_setup, "sysctl net subtree setup")
|
|||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "local", NULL,
|
CTLTYPE_NODE, "local",
|
||||||
|
SYSCTL_DESCR("PF_LOCAL related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_LOCAL, CTL_EOL);
|
CTL_NET, PF_LOCAL, CTL_EOL);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: bpf.c,v 1.97 2004/05/19 13:09:11 darrenr Exp $ */
|
/* $NetBSD: bpf.c,v 1.98 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1990, 1991, 1993
|
* Copyright (c) 1990, 1991, 1993
|
||||||
@ -39,7 +39,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.97 2004/05/19 13:09:11 darrenr Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.98 2004/05/25 04:33:59 atatat Exp $");
|
||||||
|
|
||||||
#include "bpfilter.h"
|
#include "bpfilter.h"
|
||||||
|
|
||||||
@ -1676,13 +1676,15 @@ SYSCTL_SETUP(sysctl_net_bfp_setup, "sysctl net.bpf subtree setup")
|
|||||||
node = NULL;
|
node = NULL;
|
||||||
sysctl_createv(clog, 0, NULL, &node,
|
sysctl_createv(clog, 0, NULL, &node,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "bpf", NULL,
|
CTLTYPE_NODE, "bpf",
|
||||||
|
SYSCTL_DESCR("BPF options"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, CTL_CREATE, CTL_EOL);
|
CTL_NET, CTL_CREATE, CTL_EOL);
|
||||||
if (node != NULL)
|
if (node != NULL)
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maxbufsize", NULL,
|
CTLTYPE_INT, "maxbufsize",
|
||||||
|
SYSCTL_DESCR("Maximum size for data capture buffer"),
|
||||||
sysctl_net_bpf_maxbufsize, 0, &bpf_maxbufsize, 0,
|
sysctl_net_bpf_maxbufsize, 0, &bpf_maxbufsize, 0,
|
||||||
CTL_NET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
CTL_NET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
||||||
}
|
}
|
||||||
|
19
sys/net/if.c
19
sys/net/if.c
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: if.c,v 1.141 2004/04/22 01:01:40 matt Exp $ */
|
/* $NetBSD: if.c,v 1.142 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||||
@ -97,7 +97,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.141 2004/04/22 01:01:40 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.142 2004/05/25 04:33:59 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
|
|
||||||
@ -1729,30 +1729,35 @@ sysctl_net_ifq_setup(struct sysctllog **clog,
|
|||||||
CTL_NET, pf, ipn, CTL_EOL);
|
CTL_NET, pf, ipn, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "ifq", NULL,
|
CTLTYPE_NODE, "ifq",
|
||||||
|
SYSCTL_DESCR("Protocol input queue controls"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, pf, ipn, qid, CTL_EOL);
|
CTL_NET, pf, ipn, qid, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_INT, "len", NULL,
|
CTLTYPE_INT, "len",
|
||||||
|
SYSCTL_DESCR("Current input queue length"),
|
||||||
NULL, 0, &ifq->ifq_len, 0,
|
NULL, 0, &ifq->ifq_len, 0,
|
||||||
CTL_NET, pf, ipn, qid, IFQCTL_LEN, CTL_EOL);
|
CTL_NET, pf, ipn, qid, IFQCTL_LEN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maxlen", NULL,
|
CTLTYPE_INT, "maxlen",
|
||||||
|
SYSCTL_DESCR("Maximum allowed input queue length"),
|
||||||
NULL, 0, &ifq->ifq_maxlen, 0,
|
NULL, 0, &ifq->ifq_maxlen, 0,
|
||||||
CTL_NET, pf, ipn, qid, IFQCTL_MAXLEN, CTL_EOL);
|
CTL_NET, pf, ipn, qid, IFQCTL_MAXLEN, CTL_EOL);
|
||||||
#ifdef notyet
|
#ifdef notyet
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_INT, "peak", NULL,
|
CTLTYPE_INT, "peak",
|
||||||
|
SYSCTL_DESCR("Highest input queue length"),
|
||||||
NULL, 0, &ifq->ifq_peak, 0,
|
NULL, 0, &ifq->ifq_peak, 0,
|
||||||
CTL_NET, pf, ipn, qid, IFQCTL_PEAK, CTL_EOL);
|
CTL_NET, pf, ipn, qid, IFQCTL_PEAK, CTL_EOL);
|
||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_INT, "drops", NULL,
|
CTLTYPE_INT, "drops",
|
||||||
|
SYSCTL_DESCR("Packets dropped due to full input queue"),
|
||||||
NULL, 0, &ifq->ifq_drops, 0,
|
NULL, 0, &ifq->ifq_drops, 0,
|
||||||
CTL_NET, pf, ipn, qid, IFQCTL_DROPS, CTL_EOL);
|
CTL_NET, pf, ipn, qid, IFQCTL_DROPS, CTL_EOL);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rtsock.c,v 1.70 2004/04/22 01:01:40 matt Exp $ */
|
/* $NetBSD: rtsock.c,v 1.71 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
@ -61,7 +61,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.70 2004/04/22 01:01:40 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.71 2004/05/25 04:33:59 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
|
|
||||||
@ -1112,12 +1112,14 @@ SYSCTL_SETUP(sysctl_net_route_setup, "sysctl net.route subtree setup")
|
|||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "route", NULL,
|
CTLTYPE_NODE, "route",
|
||||||
|
SYSCTL_DESCR("PF_ROUTE information"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_ROUTE, CTL_EOL);
|
CTL_NET, PF_ROUTE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "rtable", NULL,
|
CTLTYPE_NODE, "rtable",
|
||||||
|
SYSCTL_DESCR("Routing table information"),
|
||||||
sysctl_rtable, 0, NULL, 0,
|
sysctl_rtable, 0, NULL, 0,
|
||||||
CTL_NET, PF_ROUTE, 0 /* any protocol */, CTL_EOL);
|
CTL_NET, PF_ROUTE, 0 /* any protocol */, CTL_EOL);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ieee80211.c,v 1.14 2004/05/09 09:00:05 dyoung Exp $ */
|
/* $NetBSD: ieee80211.c,v 1.15 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 Atsushi Onoe
|
* Copyright (c) 2001 Atsushi Onoe
|
||||||
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
|
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
|
||||||
@ -35,7 +35,7 @@
|
|||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211.c,v 1.11 2004/04/02 20:19:20 sam Exp $");
|
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211.c,v 1.11 2004/04/02 20:19:20 sam Exp $");
|
||||||
#else
|
#else
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ieee80211.c,v 1.14 2004/05/09 09:00:05 dyoung Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ieee80211.c,v 1.15 2004/05/25 04:33:59 atatat Exp $");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -978,7 +978,8 @@ SYSCTL_SETUP(sysctl_ieee80211, "sysctl ieee80211 subtree setup")
|
|||||||
/* control debugging printfs */
|
/* control debugging printfs */
|
||||||
if ((rc = sysctl_createv(clog, 0, &rnode, &cnode,
|
if ((rc = sysctl_createv(clog, 0, &rnode, &cnode,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
|
||||||
"debug", NULL, sysctl_ieee80211_verify, 0, &ieee80211_debug, 0,
|
"debug", SYSCTL_DESCR("Enable IEEE 802.11 debugging output"),
|
||||||
|
sysctl_ieee80211_verify, 0, &ieee80211_debug, 0,
|
||||||
CTL_CREATE, CTL_EOL)) != 0)
|
CTL_CREATE, CTL_EOL)) != 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
@ -989,7 +990,8 @@ SYSCTL_SETUP(sysctl_ieee80211, "sysctl ieee80211 subtree setup")
|
|||||||
/* control inactivity timer */
|
/* control inactivity timer */
|
||||||
if ((rc = sysctl_createv(clog, 0, &rnode, &cnode,
|
if ((rc = sysctl_createv(clog, 0, &rnode, &cnode,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
|
||||||
"maxinact", NULL, sysctl_ieee80211_verify, 0, &ieee80211_inact_max,
|
"maxinact", SYSCTL_DESCR("Station inactivity timeout"),
|
||||||
|
sysctl_ieee80211_verify, 0, &ieee80211_inact_max,
|
||||||
0, CTL_CREATE, CTL_EOL)) != 0)
|
0, CTL_CREATE, CTL_EOL)) != 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ieee80211_rssadapt.c,v 1.6 2004/05/06 07:11:40 dyoung Exp $ */
|
/* $NetBSD: ieee80211_rssadapt.c,v 1.7 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2003, 2004 David Young. All rights reserved.
|
* Copyright (c) 2003, 2004 David Young. All rights reserved.
|
||||||
*
|
*
|
||||||
@ -171,14 +171,16 @@ SYSCTL_SETUP(sysctl_ieee80211_rssadapt,
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
if ((rc = sysctl_createv(clog, 0, &node, &node,
|
if ((rc = sysctl_createv(clog, 0, &node, &node,
|
||||||
CTLFLAG_PERMANENT, CTLTYPE_NODE, "rssadapt", NULL,
|
CTLFLAG_PERMANENT, CTLTYPE_NODE, "rssadapt",
|
||||||
|
SYSCTL_DESCR("Received Signal Strength adaptation controls"),
|
||||||
NULL, 0, NULL, 0, CTL_CREATE, CTL_EOL)) != 0)
|
NULL, 0, NULL, 0, CTL_CREATE, CTL_EOL)) != 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
#ifdef IEEE80211_DEBUG
|
#ifdef IEEE80211_DEBUG
|
||||||
/* control debugging printfs */
|
/* control debugging printfs */
|
||||||
if ((rc = sysctl_createv(clog, 0, &node, NULL,
|
if ((rc = sysctl_createv(clog, 0, &node, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT, "debug", NULL,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT, "debug",
|
||||||
|
SYSCTL_DESCR("Enable RSS adaptation debugging output"),
|
||||||
sysctl_ieee80211_rssadapt_debug, 0, &ieee80211_rssadapt_debug, 0,
|
sysctl_ieee80211_rssadapt_debug, 0, &ieee80211_rssadapt_debug, 0,
|
||||||
CTL_CREATE, CTL_EOL)) != 0)
|
CTL_CREATE, CTL_EOL)) != 0)
|
||||||
goto err;
|
goto err;
|
||||||
@ -187,7 +189,8 @@ SYSCTL_SETUP(sysctl_ieee80211_rssadapt,
|
|||||||
/* control rate of decay for exponential averages */
|
/* control rate of decay for exponential averages */
|
||||||
if ((rc = sysctl_createv(clog, 0, &node, NULL,
|
if ((rc = sysctl_createv(clog, 0, &node, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_STRUCT,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_STRUCT,
|
||||||
"expavgctl", NULL, sysctl_ieee80211_rssadapt_expavgctl, 0,
|
"expavgctl", SYSCTL_DESCR("RSS exponential averaging control"),
|
||||||
|
sysctl_ieee80211_rssadapt_expavgctl, 0,
|
||||||
&master_expavgctl, sizeof(master_expavgctl), CTL_CREATE,
|
&master_expavgctl, sizeof(master_expavgctl), CTL_CREATE,
|
||||||
CTL_EOL)) != 0)
|
CTL_EOL)) != 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: if_arp.c,v 1.97 2004/04/28 14:09:36 ragge Exp $ */
|
/* $NetBSD: if_arp.c,v 1.98 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||||
@ -75,7 +75,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.97 2004/04/28 14:09:36 ragge Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.98 2004/05/25 04:33:59 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
@ -1523,31 +1523,36 @@ SYSCTL_SETUP(sysctl_net_inet_arp_setup, "sysctl net.inet.arp subtree setup")
|
|||||||
CTL_NET, PF_INET, CTL_EOL);
|
CTL_NET, PF_INET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, &node,
|
sysctl_createv(clog, 0, NULL, &node,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "arp", NULL,
|
CTLTYPE_NODE, "arp",
|
||||||
|
SYSCTL_DESCR("Address Resolution Protocol"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET, CTL_CREATE, CTL_EOL);
|
CTL_NET, PF_INET, CTL_CREATE, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "prune", NULL,
|
CTLTYPE_INT, "prune",
|
||||||
|
SYSCTL_DESCR("ARP cache pruning interval"),
|
||||||
NULL, 0, &arpt_prune, 0,
|
NULL, 0, &arpt_prune, 0,
|
||||||
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "keep", NULL,
|
CTLTYPE_INT, "keep",
|
||||||
|
SYSCTL_DESCR("Valid ARP entry lifetime"),
|
||||||
NULL, 0, &arpt_keep, 0,
|
NULL, 0, &arpt_keep, 0,
|
||||||
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "down", NULL,
|
CTLTYPE_INT, "down",
|
||||||
|
SYSCTL_DESCR("Failed ARP entry lifetime"),
|
||||||
NULL, 0, &arpt_down, 0,
|
NULL, 0, &arpt_down, 0,
|
||||||
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "refresh", NULL,
|
CTLTYPE_INT, "refresh",
|
||||||
|
SYSCTL_DESCR("ARP entry refresh interval"),
|
||||||
NULL, 0, &arpt_refresh, 0,
|
NULL, 0, &arpt_refresh, 0,
|
||||||
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ip_icmp.c,v 1.83 2004/04/26 01:31:56 matt Exp $ */
|
/* $NetBSD: ip_icmp.c,v 1.84 2004/05/25 04:33:59 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
@ -101,7 +101,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.83 2004/04/26 01:31:56 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.84 2004/05/25 04:33:59 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
|
|
||||||
@ -964,38 +964,47 @@ SYSCTL_SETUP(sysctl_net_inet_icmp_setup, "sysctl net.inet.icmp subtree setup")
|
|||||||
CTL_NET, PF_INET, CTL_EOL);
|
CTL_NET, PF_INET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "icmp", NULL,
|
CTLTYPE_NODE, "icmp",
|
||||||
|
SYSCTL_DESCR("ICMPv4 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_ICMP, CTL_EOL);
|
CTL_NET, PF_INET, IPPROTO_ICMP, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maskrepl", NULL,
|
CTLTYPE_INT, "maskrepl",
|
||||||
|
SYSCTL_DESCR("Respond to ICMP_MASKREQ messages"),
|
||||||
NULL, 0, &icmpmaskrepl, 0,
|
NULL, 0, &icmpmaskrepl, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_ICMP,
|
CTL_NET, PF_INET, IPPROTO_ICMP,
|
||||||
ICMPCTL_MASKREPL, CTL_EOL);
|
ICMPCTL_MASKREPL, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "returndatabytes", NULL,
|
CTLTYPE_INT, "returndatabytes",
|
||||||
|
SYSCTL_DESCR("Number of bytes to return in an ICMP "
|
||||||
|
"error message"),
|
||||||
sysctl_net_inet_icmp_returndatabytes, 0,
|
sysctl_net_inet_icmp_returndatabytes, 0,
|
||||||
&icmpreturndatabytes, 0,
|
&icmpreturndatabytes, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_ICMP,
|
CTL_NET, PF_INET, IPPROTO_ICMP,
|
||||||
ICMPCTL_RETURNDATABYTES, CTL_EOL);
|
ICMPCTL_RETURNDATABYTES, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "errppslimit", NULL,
|
CTLTYPE_INT, "errppslimit",
|
||||||
|
SYSCTL_DESCR("Maximum number of outgoing ICMP error "
|
||||||
|
"messages per second"),
|
||||||
NULL, 0, &icmperrppslim, 0,
|
NULL, 0, &icmperrppslim, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_ICMP,
|
CTL_NET, PF_INET, IPPROTO_ICMP,
|
||||||
ICMPCTL_ERRPPSLIMIT, CTL_EOL);
|
ICMPCTL_ERRPPSLIMIT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "rediraccept", NULL,
|
CTLTYPE_INT, "rediraccept",
|
||||||
|
SYSCTL_DESCR("Accept ICMP_REDIRECT messages"),
|
||||||
NULL, 0, &icmp_rediraccept, 0,
|
NULL, 0, &icmp_rediraccept, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_ICMP,
|
CTL_NET, PF_INET, IPPROTO_ICMP,
|
||||||
ICMPCTL_REDIRACCEPT, CTL_EOL);
|
ICMPCTL_REDIRACCEPT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "redirtimeout", NULL,
|
CTLTYPE_INT, "redirtimeout",
|
||||||
|
SYSCTL_DESCR("Lifetime of ICMP_REDIRECT generated "
|
||||||
|
"routes"),
|
||||||
sysctl_net_inet_icmp_redirtimeout, 0,
|
sysctl_net_inet_icmp_redirtimeout, 0,
|
||||||
&icmp_redirtimeout, 0,
|
&icmp_redirtimeout, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_ICMP,
|
CTL_NET, PF_INET, IPPROTO_ICMP,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ip_input.c,v 1.202 2004/05/02 05:02:53 darrenr Exp $ */
|
/* $NetBSD: ip_input.c,v 1.203 2004/05/25 04:34:00 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
@ -98,7 +98,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.202 2004/05/02 05:02:53 darrenr Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.203 2004/05/25 04:34:00 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_gateway.h"
|
#include "opt_gateway.h"
|
||||||
@ -2154,107 +2154,126 @@ SYSCTL_SETUP(sysctl_net_inet_ip_setup, "sysctl net.inet.ip subtree setup")
|
|||||||
CTL_NET, CTL_EOL);
|
CTL_NET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "inet", NULL,
|
CTLTYPE_NODE, "inet",
|
||||||
|
SYSCTL_DESCR("PF_INET related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET, CTL_EOL);
|
CTL_NET, PF_INET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "ip", NULL,
|
CTLTYPE_NODE, "ip",
|
||||||
|
SYSCTL_DESCR("IPv4 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP, CTL_EOL);
|
CTL_NET, PF_INET, IPPROTO_IP, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "forwarding", NULL,
|
CTLTYPE_INT, "forwarding",
|
||||||
|
SYSCTL_DESCR("Enable forwarding of INET datagrams"),
|
||||||
NULL, 0, &ipforwarding, 0,
|
NULL, 0, &ipforwarding, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_FORWARDING, CTL_EOL);
|
IPCTL_FORWARDING, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "redirect", NULL,
|
CTLTYPE_INT, "redirect",
|
||||||
|
SYSCTL_DESCR("Enable sending of ICMP redirect messages"),
|
||||||
NULL, 0, &ipsendredirects, 0,
|
NULL, 0, &ipsendredirects, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_SENDREDIRECTS, CTL_EOL);
|
IPCTL_SENDREDIRECTS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ttl", NULL,
|
CTLTYPE_INT, "ttl",
|
||||||
|
SYSCTL_DESCR("Default TTL for an INET datagram"),
|
||||||
NULL, 0, &ip_defttl, 0,
|
NULL, 0, &ip_defttl, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_DEFTTL, CTL_EOL);
|
IPCTL_DEFTTL, CTL_EOL);
|
||||||
#ifdef IPCTL_DEFMTU
|
#ifdef IPCTL_DEFMTU
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT /* |CTLFLAG_READWRITE? */,
|
CTLFLAG_PERMANENT /* |CTLFLAG_READWRITE? */,
|
||||||
CTLTYPE_INT, "mtu", NULL,
|
CTLTYPE_INT, "mtu",
|
||||||
|
SYSCTL_DESCR("Default MTA for an INET route"),
|
||||||
NULL, 0, &ip_mtu, 0,
|
NULL, 0, &ip_mtu, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_DEFMTU, CTL_EOL);
|
IPCTL_DEFMTU, CTL_EOL);
|
||||||
#endif /* IPCTL_DEFMTU */
|
#endif /* IPCTL_DEFMTU */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READONLY1,
|
CTLFLAG_PERMANENT|CTLFLAG_READONLY1,
|
||||||
CTLTYPE_INT, "forwsrcrt", NULL,
|
CTLTYPE_INT, "forwsrcrt",
|
||||||
|
SYSCTL_DESCR("Enable forwarding of source-routed "
|
||||||
|
"datagrams"),
|
||||||
NULL, 0, &ip_forwsrcrt, 0,
|
NULL, 0, &ip_forwsrcrt, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_FORWSRCRT, CTL_EOL);
|
IPCTL_FORWSRCRT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "directed-broadcast", NULL,
|
CTLTYPE_INT, "directed-broadcast",
|
||||||
|
SYSCTL_DESCR("Enable forwarding of broadcast datagrams"),
|
||||||
NULL, 0, &ip_directedbcast, 0,
|
NULL, 0, &ip_directedbcast, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_DIRECTEDBCAST, CTL_EOL);
|
IPCTL_DIRECTEDBCAST, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "allowsrcrt", NULL,
|
CTLTYPE_INT, "allowsrcrt",
|
||||||
|
SYSCTL_DESCR("Accept source-routed datagrams"),
|
||||||
NULL, 0, &ip_allowsrcrt, 0,
|
NULL, 0, &ip_allowsrcrt, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_ALLOWSRCRT, CTL_EOL);
|
IPCTL_ALLOWSRCRT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "subnetsarelocal", NULL,
|
CTLTYPE_INT, "subnetsarelocal",
|
||||||
|
SYSCTL_DESCR("Whether logical subnets are considered "
|
||||||
|
"local"),
|
||||||
NULL, 0, &subnetsarelocal, 0,
|
NULL, 0, &subnetsarelocal, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_SUBNETSARELOCAL, CTL_EOL);
|
IPCTL_SUBNETSARELOCAL, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "mtudisc", NULL,
|
CTLTYPE_INT, "mtudisc",
|
||||||
|
SYSCTL_DESCR("Use RFC1191 Path MTU Discovery"),
|
||||||
NULL, 0, &ip_mtudisc, 0,
|
NULL, 0, &ip_mtudisc, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_MTUDISC, CTL_EOL);
|
IPCTL_MTUDISC, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "anonportmin", NULL,
|
CTLTYPE_INT, "anonportmin",
|
||||||
|
SYSCTL_DESCR("Lowest ephemeral port number to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &anonportmin, 0,
|
sysctl_net_inet_ip_ports, 0, &anonportmin, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_ANONPORTMIN, CTL_EOL);
|
IPCTL_ANONPORTMIN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "anonportmax", NULL,
|
CTLTYPE_INT, "anonportmax",
|
||||||
|
SYSCTL_DESCR("Highest ephemeral port number to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &anonportmax, 0,
|
sysctl_net_inet_ip_ports, 0, &anonportmax, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_ANONPORTMAX, CTL_EOL);
|
IPCTL_ANONPORTMAX, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "mtudisctimeout", NULL,
|
CTLTYPE_INT, "mtudisctimeout",
|
||||||
|
SYSCTL_DESCR("Lifetime of a Path MTU Discovered route"),
|
||||||
sysctl_net_inet_ip_pmtudto, 0, &ip_mtudisc_timeout, 0,
|
sysctl_net_inet_ip_pmtudto, 0, &ip_mtudisc_timeout, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_MTUDISCTIMEOUT, CTL_EOL);
|
IPCTL_MTUDISCTIMEOUT, CTL_EOL);
|
||||||
#ifdef GATEWAY
|
#ifdef GATEWAY
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maxflows", NULL,
|
CTLTYPE_INT, "maxflows",
|
||||||
|
SYSCTL_DESCR("Number of flows for fast forwarding"),
|
||||||
sysctl_net_inet_ip_maxflows, 0, &ip_maxflows, 0,
|
sysctl_net_inet_ip_maxflows, 0, &ip_maxflows, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_MAXFLOWS, CTL_EOL);
|
IPCTL_MAXFLOWS, CTL_EOL);
|
||||||
#endif /* GATEWAY */
|
#endif /* GATEWAY */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "hostzerobroadcast", NULL,
|
CTLTYPE_INT, "hostzerobroadcast",
|
||||||
|
SYSCTL_DESCR("All zeroes address is broadcast address"),
|
||||||
NULL, 0, &hostzeroisbroadcast, 0,
|
NULL, 0, &hostzeroisbroadcast, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_HOSTZEROBROADCAST, CTL_EOL);
|
IPCTL_HOSTZEROBROADCAST, CTL_EOL);
|
||||||
#if NGIF > 0
|
#if NGIF > 0
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "gifttl", NULL,
|
CTLTYPE_INT, "gifttl",
|
||||||
|
SYSCTL_DESCR("Default TTL for a gif tunnel datagram"),
|
||||||
NULL, 0, &ip_gif_ttl, 0,
|
NULL, 0, &ip_gif_ttl, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_GIF_TTL, CTL_EOL);
|
IPCTL_GIF_TTL, CTL_EOL);
|
||||||
@ -2262,40 +2281,50 @@ SYSCTL_SETUP(sysctl_net_inet_ip_setup, "sysctl net.inet.ip subtree setup")
|
|||||||
#ifndef IPNOPRIVPORTS
|
#ifndef IPNOPRIVPORTS
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "lowportmin", NULL,
|
CTLTYPE_INT, "lowportmin",
|
||||||
|
SYSCTL_DESCR("Lowest privileged ephemeral port number "
|
||||||
|
"to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &lowportmin, 0,
|
sysctl_net_inet_ip_ports, 0, &lowportmin, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_LOWPORTMIN, CTL_EOL);
|
IPCTL_LOWPORTMIN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "lowportmax", NULL,
|
CTLTYPE_INT, "lowportmax",
|
||||||
|
SYSCTL_DESCR("Highest privileged ephemeral port number "
|
||||||
|
"to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &lowportmax, 0,
|
sysctl_net_inet_ip_ports, 0, &lowportmax, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_LOWPORTMAX, CTL_EOL);
|
IPCTL_LOWPORTMAX, CTL_EOL);
|
||||||
#endif /* IPNOPRIVPORTS */
|
#endif /* IPNOPRIVPORTS */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maxfragpackets", NULL,
|
CTLTYPE_INT, "maxfragpackets",
|
||||||
|
SYSCTL_DESCR("Maximum number of fragments to retain for "
|
||||||
|
"possible reassembly"),
|
||||||
NULL, 0, &ip_maxfragpackets, 0,
|
NULL, 0, &ip_maxfragpackets, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_MAXFRAGPACKETS, CTL_EOL);
|
IPCTL_MAXFRAGPACKETS, CTL_EOL);
|
||||||
#if NGRE > 0
|
#if NGRE > 0
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "grettl", NULL,
|
CTLTYPE_INT, "grettl",
|
||||||
|
SYSCTL_DESCR("Default TTL for a gre tunnel datagram"),
|
||||||
NULL, 0, &ip_gre_ttl, 0,
|
NULL, 0, &ip_gre_ttl, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_GRE_TTL, CTL_EOL);
|
IPCTL_GRE_TTL, CTL_EOL);
|
||||||
#endif /* NGRE */
|
#endif /* NGRE */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "checkinterface", NULL,
|
CTLTYPE_INT, "checkinterface",
|
||||||
|
SYSCTL_DESCR("Enable receive side of Strong ES model "
|
||||||
|
"from RFC1122"),
|
||||||
NULL, 0, &ip_checkinterface, 0,
|
NULL, 0, &ip_checkinterface, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_CHECKINTERFACE, CTL_EOL);
|
IPCTL_CHECKINTERFACE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "random_id", NULL,
|
CTLTYPE_INT, "random_id",
|
||||||
|
SYSCTL_DESCR("Assign random ip_id values"),
|
||||||
NULL, 0, &ip_do_randomid, 0,
|
NULL, 0, &ip_do_randomid, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_IP,
|
CTL_NET, PF_INET, IPPROTO_IP,
|
||||||
IPCTL_RANDOMID, CTL_EOL);
|
IPCTL_RANDOMID, CTL_EOL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: tcp_usrreq.c,v 1.91 2004/05/18 14:44:16 itojun Exp $ */
|
/* $NetBSD: tcp_usrreq.c,v 1.92 2004/05/25 04:34:00 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
@ -98,7 +98,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.91 2004/05/18 14:44:16 itojun Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.92 2004/05/25 04:34:00 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
@ -1207,124 +1207,155 @@ sysctl_net_inet_tcp_setup2(struct sysctllog **clog, int pf, const char *pfname,
|
|||||||
CTL_NET, pf, CTL_EOL);
|
CTL_NET, pf, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, tcpname, NULL,
|
CTLTYPE_NODE, tcpname,
|
||||||
|
SYSCTL_DESCR("TCP related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "rfc1323", NULL,
|
CTLTYPE_INT, "rfc1323",
|
||||||
|
SYSCTL_DESCR("Enable RFC1323 TCP extensions"),
|
||||||
NULL, 0, &tcp_do_rfc1323, 0,
|
NULL, 0, &tcp_do_rfc1323, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_RFC1323, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_RFC1323, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "sendspace", NULL,
|
CTLTYPE_INT, "sendspace",
|
||||||
|
SYSCTL_DESCR("Default TCP send buffer size"),
|
||||||
NULL, 0, &tcp_sendspace, 0,
|
NULL, 0, &tcp_sendspace, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SENDSPACE, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SENDSPACE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "recvspace", NULL,
|
CTLTYPE_INT, "recvspace",
|
||||||
|
SYSCTL_DESCR("Default TCP receive buffer size"),
|
||||||
NULL, 0, &tcp_recvspace, 0,
|
NULL, 0, &tcp_recvspace, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_RECVSPACE, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_RECVSPACE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "mssdflt", NULL,
|
CTLTYPE_INT, "mssdflt",
|
||||||
|
SYSCTL_DESCR("Default maximum segment size"),
|
||||||
sysctl_net_inet_tcp_mssdflt, 0, &tcp_mssdflt, 0,
|
sysctl_net_inet_tcp_mssdflt, 0, &tcp_mssdflt, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_MSSDFLT, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_MSSDFLT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "syn_cache_limit", NULL,
|
CTLTYPE_INT, "syn_cache_limit",
|
||||||
|
SYSCTL_DESCR("Maximum number of entries in the TCP "
|
||||||
|
"compressed state engine"),
|
||||||
NULL, 0, &tcp_syn_cache_limit, 0,
|
NULL, 0, &tcp_syn_cache_limit, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SYN_CACHE_LIMIT,
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SYN_CACHE_LIMIT,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "syn_bucket_limit", NULL,
|
CTLTYPE_INT, "syn_bucket_limit",
|
||||||
|
SYSCTL_DESCR("Maximum number of entries per hash "
|
||||||
|
"bucket in the TCP compressed state "
|
||||||
|
"engine"),
|
||||||
NULL, 0, &tcp_syn_bucket_limit, 0,
|
NULL, 0, &tcp_syn_bucket_limit, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SYN_BUCKET_LIMIT,
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SYN_BUCKET_LIMIT,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
#if 0 /* obsoleted */
|
#if 0 /* obsoleted */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "syn_cache_interval", NULL,
|
CTLTYPE_INT, "syn_cache_interval",
|
||||||
|
SYSCTL_DESCR("TCP compressed state engine's timer interval"),
|
||||||
NULL, 0, &tcp_syn_cache_interval, 0,
|
NULL, 0, &tcp_syn_cache_interval, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SYN_CACHE_INTER,
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SYN_CACHE_INTER,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "init_win", NULL,
|
CTLTYPE_INT, "init_win",
|
||||||
|
SYSCTL_DESCR("Initial TCP congestion window"),
|
||||||
NULL, 0, &tcp_init_win, 0,
|
NULL, 0, &tcp_init_win, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_INIT_WIN, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_INIT_WIN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "mss_ifmtu", NULL,
|
CTLTYPE_INT, "mss_ifmtu",
|
||||||
|
SYSCTL_DESCR("Use interface MTU for calculating MSS"),
|
||||||
NULL, 0, &tcp_mss_ifmtu, 0,
|
NULL, 0, &tcp_mss_ifmtu, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_MSS_IFMTU, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_MSS_IFMTU, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "sack", NULL,
|
CTLTYPE_INT, "sack",
|
||||||
|
SYSCTL_DESCR("Enable RFC2018 Selection ACKnowledgement "
|
||||||
|
"(not implemented)"),
|
||||||
NULL, 0, &tcp_do_sack, 0,
|
NULL, 0, &tcp_do_sack, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SACK, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SACK, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "win_scale", NULL,
|
CTLTYPE_INT, "win_scale",
|
||||||
|
SYSCTL_DESCR("Use RFC1323 window scale options"),
|
||||||
NULL, 0, &tcp_do_win_scale, 0,
|
NULL, 0, &tcp_do_win_scale, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_WSCALE, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_WSCALE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "timestamps", NULL,
|
CTLTYPE_INT, "timestamps",
|
||||||
|
SYSCTL_DESCR("Use RFC1323 time stamp options"),
|
||||||
NULL, 0, &tcp_do_timestamps, 0,
|
NULL, 0, &tcp_do_timestamps, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_TSTAMP, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_TSTAMP, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "compat_42", NULL,
|
CTLTYPE_INT, "compat_42",
|
||||||
|
SYSCTL_DESCR("Enable workarounds for 4.2BSD TCP bugs"),
|
||||||
NULL, 0, &tcp_compat_42, 0,
|
NULL, 0, &tcp_compat_42, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_COMPAT_42, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_COMPAT_42, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "cwm", NULL,
|
CTLTYPE_INT, "cwm",
|
||||||
|
SYSCTL_DESCR("Hughes/Touch/Heidemann Congestion Window "
|
||||||
|
"Monitoring"),
|
||||||
NULL, 0, &tcp_cwm, 0,
|
NULL, 0, &tcp_cwm, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_CWM, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_CWM, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "cwm_burstsize", NULL,
|
CTLTYPE_INT, "cwm_burstsize",
|
||||||
|
SYSCTL_DESCR("Congestion Window Monitoring allowed "
|
||||||
|
"burst count in packets"),
|
||||||
NULL, 0, &tcp_cwm_burstsize, 0,
|
NULL, 0, &tcp_cwm_burstsize, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_CWM_BURSTSIZE,
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_CWM_BURSTSIZE,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ack_on_push", NULL,
|
CTLTYPE_INT, "ack_on_push",
|
||||||
|
SYSCTL_DESCR("Immediately return ACK when PSH is "
|
||||||
|
"received"),
|
||||||
NULL, 0, &tcp_ack_on_push, 0,
|
NULL, 0, &tcp_ack_on_push, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_ACK_ON_PUSH, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_ACK_ON_PUSH, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "keepidle", NULL,
|
CTLTYPE_INT, "keepidle",
|
||||||
|
SYSCTL_DESCR("Allowed connection idle ticks before a "
|
||||||
|
"keepalive probe is sent"),
|
||||||
NULL, 0, &tcp_keepidle, 0,
|
NULL, 0, &tcp_keepidle, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_KEEPIDLE, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_KEEPIDLE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "keepintvl", NULL,
|
CTLTYPE_INT, "keepintvl",
|
||||||
|
SYSCTL_DESCR("Ticks before next keepalive probe is sent"),
|
||||||
NULL, 0, &tcp_keepintvl, 0,
|
NULL, 0, &tcp_keepintvl, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_KEEPINTVL, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_KEEPINTVL, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "keepcnt", NULL,
|
CTLTYPE_INT, "keepcnt",
|
||||||
|
SYSCTL_DESCR("Number of keepalive probes to send"),
|
||||||
NULL, 0, &tcp_keepcnt, 0,
|
NULL, 0, &tcp_keepcnt, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_KEEPCNT, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_KEEPCNT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
|
CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
|
||||||
CTLTYPE_INT, "slowhz", NULL,
|
CTLTYPE_INT, "slowhz",
|
||||||
|
SYSCTL_DESCR("Keepalive ticks per second"),
|
||||||
NULL, PR_SLOWHZ, NULL, 0,
|
NULL, PR_SLOWHZ, NULL, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SLOWHZ, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_SLOWHZ, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "newreno", NULL,
|
CTLTYPE_INT, "newreno",
|
||||||
|
SYSCTL_DESCR("NewReno congestion control algorithm"),
|
||||||
NULL, 0, &tcp_do_newreno, 0,
|
NULL, 0, &tcp_do_newreno, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_NEWRENO, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_NEWRENO, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "log_refused", NULL,
|
CTLTYPE_INT, "log_refused",
|
||||||
|
SYSCTL_DESCR("Log refused TCP connections"),
|
||||||
NULL, 0, &tcp_log_refused, 0,
|
NULL, 0, &tcp_log_refused, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_LOG_REFUSED, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_LOG_REFUSED, CTL_EOL);
|
||||||
#if 0 /* obsoleted */
|
#if 0 /* obsoleted */
|
||||||
@ -1336,23 +1367,28 @@ sysctl_net_inet_tcp_setup2(struct sysctllog **clog, int pf, const char *pfname,
|
|||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "rstppslimit", NULL,
|
CTLTYPE_INT, "rstppslimit",
|
||||||
|
SYSCTL_DESCR("Maximum number of RST packets to send "
|
||||||
|
"per second"),
|
||||||
NULL, 0, &tcp_rst_ppslim, 0,
|
NULL, 0, &tcp_rst_ppslim, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_RSTPPSLIMIT, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_RSTPPSLIMIT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "delack_ticks", NULL,
|
CTLTYPE_INT, "delack_ticks",
|
||||||
|
SYSCTL_DESCR("Number of ticks to delay sending an ACK"),
|
||||||
NULL, 0, &tcp_delack_ticks, 0,
|
NULL, 0, &tcp_delack_ticks, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_DELACK_TICKS, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_DELACK_TICKS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "init_win_local", NULL,
|
CTLTYPE_INT, "init_win_local",
|
||||||
|
SYSCTL_DESCR("Initial TCP window size (in segments)"),
|
||||||
NULL, 0, &tcp_init_win_local, 0,
|
NULL, 0, &tcp_init_win_local, 0,
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_INIT_WIN_LOCAL,
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_INIT_WIN_LOCAL,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_STRUCT, "ident", NULL,
|
CTLTYPE_STRUCT, "ident",
|
||||||
|
SYSCTL_DESCR("RFC1413 Identification Protocol lookups"),
|
||||||
sysctl_net_inet_tcp_ident, 0, NULL, sizeof(uid_t),
|
sysctl_net_inet_tcp_ident, 0, NULL, sizeof(uid_t),
|
||||||
CTL_NET, pf, IPPROTO_TCP, TCPCTL_IDENT, CTL_EOL);
|
CTL_NET, pf, IPPROTO_TCP, TCPCTL_IDENT, CTL_EOL);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: udp_usrreq.c,v 1.121 2004/05/07 00:55:15 jonathan Exp $ */
|
/* $NetBSD: udp_usrreq.c,v 1.122 2004/05/25 04:34:00 atatat Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||||
@ -61,7 +61,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.121 2004/05/07 00:55:15 jonathan Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.122 2004/05/25 04:34:00 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
@ -1089,25 +1089,29 @@ SYSCTL_SETUP(sysctl_net_inet_udp_setup, "sysctl net.inet.udp subtree setup")
|
|||||||
CTL_NET, PF_INET, CTL_EOL);
|
CTL_NET, PF_INET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "udp", NULL,
|
CTLTYPE_NODE, "udp",
|
||||||
|
SYSCTL_DESCR("UDPv4 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_UDP, CTL_EOL);
|
CTL_NET, PF_INET, IPPROTO_UDP, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "checksum", NULL,
|
CTLTYPE_INT, "checksum",
|
||||||
|
SYSCTL_DESCR("Compute and check UDP checksums"),
|
||||||
NULL, 0, &udpcksum, 0,
|
NULL, 0, &udpcksum, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_CHECKSUM,
|
CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_CHECKSUM,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "sendspace", NULL,
|
CTLTYPE_INT, "sendspace",
|
||||||
|
SYSCTL_DESCR("Default UDP send buffer size"),
|
||||||
NULL, 0, &udp_sendspace, 0,
|
NULL, 0, &udp_sendspace, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_SENDSPACE,
|
CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_SENDSPACE,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "recvspace", NULL,
|
CTLTYPE_INT, "recvspace",
|
||||||
|
SYSCTL_DESCR("Default UDP receive buffer size"),
|
||||||
NULL, 0, &udp_recvspace, 0,
|
NULL, 0, &udp_recvspace, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_RECVSPACE,
|
CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_RECVSPACE,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: icmp6.c,v 1.106 2004/03/26 03:35:02 itojun Exp $ */
|
/* $NetBSD: icmp6.c,v 1.107 2004/05/25 04:34:00 atatat Exp $ */
|
||||||
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
|
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -62,7 +62,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.106 2004/03/26 03:35:02 itojun Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.107 2004/05/25 04:34:00 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
@ -2867,25 +2867,29 @@ SYSCTL_SETUP(sysctl_net_inet6_icmp6_setup,
|
|||||||
CTL_NET, PF_INET6, CTL_EOL);
|
CTL_NET, PF_INET6, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "icmp6", NULL,
|
CTLTYPE_NODE, "icmp6",
|
||||||
|
SYSCTL_DESCR("ICMPv6 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6, CTL_EOL);
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_STRUCT, "stats", NULL,
|
CTLTYPE_STRUCT, "stats",
|
||||||
|
SYSCTL_DESCR("ICMPv6 transmission statistics"),
|
||||||
NULL, 0, &icmp6stat, sizeof(icmp6stat),
|
NULL, 0, &icmp6stat, sizeof(icmp6stat),
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_STATS, CTL_EOL);
|
ICMPV6CTL_STATS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "rediraccept", NULL,
|
CTLTYPE_INT, "rediraccept",
|
||||||
|
SYSCTL_DESCR("Accept and process redirect messages"),
|
||||||
NULL, 0, &icmp6_rediraccept, 0,
|
NULL, 0, &icmp6_rediraccept, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_REDIRACCEPT, CTL_EOL);
|
ICMPV6CTL_REDIRACCEPT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "redirtimeout", NULL,
|
CTLTYPE_INT, "redirtimeout",
|
||||||
|
SYSCTL_DESCR("Redirect generated route lifetime"),
|
||||||
NULL, 0, &icmp6_redirtimeout, 0,
|
NULL, 0, &icmp6_redirtimeout, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_REDIRTIMEOUT, CTL_EOL);
|
ICMPV6CTL_REDIRTIMEOUT, CTL_EOL);
|
||||||
@ -2899,31 +2903,36 @@ SYSCTL_SETUP(sysctl_net_inet6_icmp6_setup,
|
|||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_prune", NULL,
|
CTLTYPE_INT, "nd6_prune",
|
||||||
|
SYSCTL_DESCR("Neighbor discovery prune interval"),
|
||||||
NULL, 0, &nd6_prune, 0,
|
NULL, 0, &nd6_prune, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_PRUNE, CTL_EOL);
|
ICMPV6CTL_ND6_PRUNE, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_delay", NULL,
|
CTLTYPE_INT, "nd6_delay",
|
||||||
|
SYSCTL_DESCR("First probe delay time"),
|
||||||
NULL, 0, &nd6_delay, 0,
|
NULL, 0, &nd6_delay, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_DELAY, CTL_EOL);
|
ICMPV6CTL_ND6_DELAY, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_umaxtries", NULL,
|
CTLTYPE_INT, "nd6_umaxtries",
|
||||||
|
SYSCTL_DESCR("Number of unicast discovery attempts"),
|
||||||
NULL, 0, &nd6_umaxtries, 0,
|
NULL, 0, &nd6_umaxtries, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_UMAXTRIES, CTL_EOL);
|
ICMPV6CTL_ND6_UMAXTRIES, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_mmaxtries", NULL,
|
CTLTYPE_INT, "nd6_mmaxtries",
|
||||||
|
SYSCTL_DESCR("Number of multicast discovery attempts"),
|
||||||
NULL, 0, &nd6_mmaxtries, 0,
|
NULL, 0, &nd6_mmaxtries, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_MMAXTRIES, CTL_EOL);
|
ICMPV6CTL_ND6_MMAXTRIES, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_useloopback", NULL,
|
CTLTYPE_INT, "nd6_useloopback",
|
||||||
|
SYSCTL_DESCR("Use loopback interface for local traffic"),
|
||||||
NULL, 0, &nd6_useloopback, 0,
|
NULL, 0, &nd6_useloopback, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_USELOOPBACK, CTL_EOL);
|
ICMPV6CTL_ND6_USELOOPBACK, CTL_EOL);
|
||||||
@ -2937,49 +2946,57 @@ SYSCTL_SETUP(sysctl_net_inet6_icmp6_setup,
|
|||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nodeinfo", NULL,
|
CTLTYPE_INT, "nodeinfo",
|
||||||
|
SYSCTL_DESCR("Respond to node information requests"),
|
||||||
NULL, 0, &icmp6_nodeinfo, 0,
|
NULL, 0, &icmp6_nodeinfo, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_NODEINFO, CTL_EOL);
|
ICMPV6CTL_NODEINFO, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "errppslimit", NULL,
|
CTLTYPE_INT, "errppslimit",
|
||||||
|
SYSCTL_DESCR("Maximum ICMP errors sent per second"),
|
||||||
NULL, 0, &icmp6errppslim, 0,
|
NULL, 0, &icmp6errppslim, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ERRPPSLIMIT, CTL_EOL);
|
ICMPV6CTL_ERRPPSLIMIT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_maxnudhint", NULL,
|
CTLTYPE_INT, "nd6_maxnudhint",
|
||||||
|
SYSCTL_DESCR("Maximum neighbor unreachable hint count"),
|
||||||
NULL, 0, &nd6_maxnudhint, 0,
|
NULL, 0, &nd6_maxnudhint, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_MAXNUDHINT, CTL_EOL);
|
ICMPV6CTL_ND6_MAXNUDHINT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "mtudisc_hiwat", NULL,
|
CTLTYPE_INT, "mtudisc_hiwat",
|
||||||
|
SYSCTL_DESCR("Low mark on MTU Discovery route timers"),
|
||||||
NULL, 0, &icmp6_mtudisc_hiwat, 0,
|
NULL, 0, &icmp6_mtudisc_hiwat, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_MTUDISC_HIWAT, CTL_EOL);
|
ICMPV6CTL_MTUDISC_HIWAT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "mtudisc_lowat", NULL,
|
CTLTYPE_INT, "mtudisc_lowat",
|
||||||
|
SYSCTL_DESCR("Low mark on MTU Discovery route timers"),
|
||||||
NULL, 0, &icmp6_mtudisc_lowat, 0,
|
NULL, 0, &icmp6_mtudisc_lowat, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_MTUDISC_LOWAT, CTL_EOL);
|
ICMPV6CTL_MTUDISC_LOWAT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "nd6_debug", NULL,
|
CTLTYPE_INT, "nd6_debug",
|
||||||
|
SYSCTL_DESCR("Enable neighbor discovery debug output"),
|
||||||
NULL, 0, &nd6_debug, 0,
|
NULL, 0, &nd6_debug, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_DEBUG, CTL_EOL);
|
ICMPV6CTL_ND6_DEBUG, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_STRUCT, "nd6_drlist", NULL,
|
CTLTYPE_STRUCT, "nd6_drlist",
|
||||||
|
SYSCTL_DESCR("Default router list"),
|
||||||
sysctl_net_inet6_icmp6_nd6, 0, NULL, 0,
|
sysctl_net_inet6_icmp6_nd6, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_DRLIST, CTL_EOL);
|
ICMPV6CTL_ND6_DRLIST, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_STRUCT, "nd6_prlist", NULL,
|
CTLTYPE_STRUCT, "nd6_prlist",
|
||||||
|
SYSCTL_DESCR("Prefix list"),
|
||||||
sysctl_net_inet6_icmp6_nd6, 0, NULL, 0,
|
sysctl_net_inet6_icmp6_nd6, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
CTL_NET, PF_INET6, IPPROTO_ICMPV6,
|
||||||
ICMPV6CTL_ND6_PRLIST, CTL_EOL);
|
ICMPV6CTL_ND6_PRLIST, CTL_EOL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ip6_input.c,v 1.73 2004/03/24 15:34:54 atatat Exp $ */
|
/* $NetBSD: ip6_input.c,v 1.74 2004/05/25 04:34:00 atatat Exp $ */
|
||||||
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
|
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -62,7 +62,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.73 2004/03/24 15:34:54 atatat Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.74 2004/05/25 04:34:00 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
@ -1445,30 +1445,35 @@ SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, "sysctl net.inet6.ip6 subtree setup")
|
|||||||
CTL_NET, CTL_EOL);
|
CTL_NET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "inet6", NULL,
|
CTLTYPE_NODE, "inet6",
|
||||||
|
SYSCTL_DESCR("PF_INET6 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, CTL_EOL);
|
CTL_NET, PF_INET6, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "ip6", NULL,
|
CTLTYPE_NODE, "ip6",
|
||||||
|
SYSCTL_DESCR("IPv6 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6, CTL_EOL);
|
CTL_NET, PF_INET6, IPPROTO_IPV6, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "forwarding", NULL,
|
CTLTYPE_INT, "forwarding",
|
||||||
|
SYSCTL_DESCR("Enable forwarding of INET6 datagrams"),
|
||||||
NULL, 0, &ip6_forwarding, 0,
|
NULL, 0, &ip6_forwarding, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_FORWARDING, CTL_EOL);
|
IPV6CTL_FORWARDING, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "redirect", NULL,
|
CTLTYPE_INT, "redirect",
|
||||||
|
SYSCTL_DESCR("Enable sending of ICMPv6 redirect messages"),
|
||||||
NULL, 0, &ip6_sendredirects, 0,
|
NULL, 0, &ip6_sendredirects, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_SENDREDIRECTS, CTL_EOL);
|
IPV6CTL_SENDREDIRECTS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "hlim", NULL,
|
CTLTYPE_INT, "hlim",
|
||||||
|
SYSCTL_DESCR("Hop limit for an INET6 datagram"),
|
||||||
NULL, 0, &ip6_defhlim, 0,
|
NULL, 0, &ip6_defhlim, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_DEFHLIM, CTL_EOL);
|
IPV6CTL_DEFHLIM, CTL_EOL);
|
||||||
@ -1508,7 +1513,9 @@ SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, "sysctl net.inet6.ip6 subtree setup")
|
|||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maxfragpackets", NULL,
|
CTLTYPE_INT, "maxfragpackets",
|
||||||
|
SYSCTL_DESCR("Maximum number of fragments to buffer "
|
||||||
|
"for reassembly"),
|
||||||
NULL, 0, &ip6_maxfragpackets, 0,
|
NULL, 0, &ip6_maxfragpackets, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_MAXFRAGPACKETS, CTL_EOL);
|
IPV6CTL_MAXFRAGPACKETS, CTL_EOL);
|
||||||
@ -1528,63 +1535,76 @@ SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, "sysctl net.inet6.ip6 subtree setup")
|
|||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "accept_rtadv", NULL,
|
CTLTYPE_INT, "accept_rtadv",
|
||||||
|
SYSCTL_DESCR("Accept router advertisements"),
|
||||||
NULL, 0, &ip6_accept_rtadv, 0,
|
NULL, 0, &ip6_accept_rtadv, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_ACCEPT_RTADV, CTL_EOL);
|
IPV6CTL_ACCEPT_RTADV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "keepfaith", NULL,
|
CTLTYPE_INT, "keepfaith",
|
||||||
|
SYSCTL_DESCR("Activate faith interface"),
|
||||||
NULL, 0, &ip6_keepfaith, 0,
|
NULL, 0, &ip6_keepfaith, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_KEEPFAITH, CTL_EOL);
|
IPV6CTL_KEEPFAITH, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "log_interval", NULL,
|
CTLTYPE_INT, "log_interval",
|
||||||
|
SYSCTL_DESCR("Minumum interval between logging "
|
||||||
|
"unroutable packets"),
|
||||||
NULL, 0, &ip6_log_interval, 0,
|
NULL, 0, &ip6_log_interval, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_LOG_INTERVAL, CTL_EOL);
|
IPV6CTL_LOG_INTERVAL, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "hdrnestlimit", NULL,
|
CTLTYPE_INT, "hdrnestlimit",
|
||||||
|
SYSCTL_DESCR("Maximum number of nested IPv6 headers"),
|
||||||
NULL, 0, &ip6_hdrnestlimit, 0,
|
NULL, 0, &ip6_hdrnestlimit, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_HDRNESTLIMIT, CTL_EOL);
|
IPV6CTL_HDRNESTLIMIT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "dad_count", NULL,
|
CTLTYPE_INT, "dad_count",
|
||||||
|
SYSCTL_DESCR("Number of Duplicate Address Detection "
|
||||||
|
"probes to send"),
|
||||||
NULL, 0, &ip6_dad_count, 0,
|
NULL, 0, &ip6_dad_count, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_DAD_COUNT, CTL_EOL);
|
IPV6CTL_DAD_COUNT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "auto_flowlabel", NULL,
|
CTLTYPE_INT, "auto_flowlabel",
|
||||||
|
SYSCTL_DESCR("Assign random IPv6 flow labels"),
|
||||||
NULL, 0, &ip6_auto_flowlabel, 0,
|
NULL, 0, &ip6_auto_flowlabel, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_AUTO_FLOWLABEL, CTL_EOL);
|
IPV6CTL_AUTO_FLOWLABEL, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "defmcasthlim", NULL,
|
CTLTYPE_INT, "defmcasthlim",
|
||||||
|
SYSCTL_DESCR("Default multicast hop limit"),
|
||||||
NULL, 0, &ip6_defmcasthlim, 0,
|
NULL, 0, &ip6_defmcasthlim, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_DEFMCASTHLIM, CTL_EOL);
|
IPV6CTL_DEFMCASTHLIM, CTL_EOL);
|
||||||
#if NGIF > 0
|
#if NGIF > 0
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "gifhlim", NULL,
|
CTLTYPE_INT, "gifhlim",
|
||||||
|
SYSCTL_DESCR("Default hop limit for a gif tunnel datagram"),
|
||||||
NULL, 0, &ip6_gif_hlim, 0,
|
NULL, 0, &ip6_gif_hlim, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_GIF_HLIM, CTL_EOL);
|
IPV6CTL_GIF_HLIM, CTL_EOL);
|
||||||
#endif /* NGIF */
|
#endif /* NGIF */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_STRING, "kame_version", NULL,
|
CTLTYPE_STRING, "kame_version",
|
||||||
|
SYSCTL_DESCR("KAME Version"),
|
||||||
NULL, 0, __KAME_VERSION, 0,
|
NULL, 0, __KAME_VERSION, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_KAME_VERSION, CTL_EOL);
|
IPV6CTL_KAME_VERSION, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "use_deprecated", NULL,
|
CTLTYPE_INT, "use_deprecated",
|
||||||
|
SYSCTL_DESCR("Allow use of deprecated addresses as "
|
||||||
|
"source addresses"),
|
||||||
NULL, 0, &ip6_use_deprecated, 0,
|
NULL, 0, &ip6_use_deprecated, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_USE_DEPRECATED, CTL_EOL);
|
IPV6CTL_USE_DEPRECATED, CTL_EOL);
|
||||||
@ -1599,39 +1619,48 @@ SYSCTL_SETUP(sysctl_net_inet6_ip6_setup, "sysctl net.inet6.ip6 subtree setup")
|
|||||||
#ifndef INET6_BINDV6ONLY
|
#ifndef INET6_BINDV6ONLY
|
||||||
|CTLFLAG_READWRITE,
|
|CTLFLAG_READWRITE,
|
||||||
#endif
|
#endif
|
||||||
CTLTYPE_INT, "v6only", NULL,
|
CTLTYPE_INT, "v6only",
|
||||||
|
SYSCTL_DESCR("Disallow PF_INET6 sockets from connecting "
|
||||||
|
"to PF_INET sockets"),
|
||||||
NULL, 0, &ip6_v6only, 0,
|
NULL, 0, &ip6_v6only, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_V6ONLY, CTL_EOL);
|
IPV6CTL_V6ONLY, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "anonportmin", NULL,
|
CTLTYPE_INT, "anonportmin",
|
||||||
|
SYSCTL_DESCR("Lowest ephemeral port number to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &ip6_anonportmin, 0,
|
sysctl_net_inet_ip_ports, 0, &ip6_anonportmin, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_ANONPORTMIN, CTL_EOL);
|
IPV6CTL_ANONPORTMIN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "anonportmax", NULL,
|
CTLTYPE_INT, "anonportmax",
|
||||||
|
SYSCTL_DESCR("Highest ephemeral port number to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &ip6_anonportmax, 0,
|
sysctl_net_inet_ip_ports, 0, &ip6_anonportmax, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_ANONPORTMAX, CTL_EOL);
|
IPV6CTL_ANONPORTMAX, CTL_EOL);
|
||||||
#ifndef IPNOPRIVPORTS
|
#ifndef IPNOPRIVPORTS
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "lowportmin", NULL,
|
CTLTYPE_INT, "lowportmin",
|
||||||
|
SYSCTL_DESCR("Lowest privileged ephemeral port number "
|
||||||
|
"to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &ip6_lowportmin, 0,
|
sysctl_net_inet_ip_ports, 0, &ip6_lowportmin, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_LOWPORTMIN, CTL_EOL);
|
IPV6CTL_LOWPORTMIN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "lowportmax", NULL,
|
CTLTYPE_INT, "lowportmax",
|
||||||
|
SYSCTL_DESCR("Highest privileged ephemeral port number "
|
||||||
|
"to assign"),
|
||||||
sysctl_net_inet_ip_ports, 0, &ip6_lowportmax, 0,
|
sysctl_net_inet_ip_ports, 0, &ip6_lowportmax, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_LOWPORTMAX, CTL_EOL);
|
IPV6CTL_LOWPORTMAX, CTL_EOL);
|
||||||
#endif /* IPNOPRIVPORTS */
|
#endif /* IPNOPRIVPORTS */
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "maxfrags", NULL,
|
CTLTYPE_INT, "maxfrags",
|
||||||
|
SYSCTL_DESCR("Maximum fragments in reassembly queue"),
|
||||||
NULL, 0, &ip6_maxfrags, 0,
|
NULL, 0, &ip6_maxfrags, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
CTL_NET, PF_INET6, IPPROTO_IPV6,
|
||||||
IPV6CTL_MAXFRAGS, CTL_EOL);
|
IPV6CTL_MAXFRAGS, CTL_EOL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ipsec.c,v 1.96 2004/04/20 17:12:03 itojun Exp $ */
|
/* $NetBSD: ipsec.c,v 1.97 2004/05/25 04:34:01 atatat Exp $ */
|
||||||
/* $KAME: ipsec.c,v 1.136 2002/05/19 00:36:39 itojun Exp $ */
|
/* $KAME: ipsec.c,v 1.136 2002/05/19 00:36:39 itojun Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -35,7 +35,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.96 2004/04/20 17:12:03 itojun Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.97 2004/05/25 04:34:01 atatat Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_ipsec.h"
|
#include "opt_ipsec.h"
|
||||||
@ -3624,43 +3624,54 @@ SYSCTL_SETUP(sysctl_net_inet_ipsec_setup, "sysctl net.inet.ipsec subtree setup")
|
|||||||
CTL_NET, PF_INET, CTL_EOL);
|
CTL_NET, PF_INET, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "ipsec", NULL,
|
CTLTYPE_NODE, "ipsec",
|
||||||
|
SYSCTL_DESCR("IPv4 related IPSec settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH, CTL_EOL);
|
CTL_NET, PF_INET, IPPROTO_AH, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_STRUCT, "stats", NULL,
|
CTLTYPE_STRUCT, "stats",
|
||||||
|
SYSCTL_DESCR("IPSec statistics and counters"),
|
||||||
NULL, 0, &ipsecstat, sizeof(ipsecstat),
|
NULL, 0, &ipsecstat, sizeof(ipsecstat),
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_STATS, CTL_EOL);
|
IPSECCTL_STATS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "def_policy", NULL,
|
CTLTYPE_INT, "def_policy",
|
||||||
|
SYSCTL_DESCR("Default action for non-IPSec packets"),
|
||||||
sysctl_ipsec, 0, &ip4_def_policy, 0,
|
sysctl_ipsec, 0, &ip4_def_policy, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_POLICY, CTL_EOL);
|
IPSECCTL_DEF_POLICY, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "esp_trans_deflev", NULL,
|
CTLTYPE_INT, "esp_trans_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"transport mode traffic"),
|
||||||
sysctl_ipsec, 0, &ip4_esp_trans_deflev, 0,
|
sysctl_ipsec, 0, &ip4_esp_trans_deflev, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_ESP_TRANSLEV, CTL_EOL);
|
IPSECCTL_DEF_ESP_TRANSLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "esp_net_deflev", NULL,
|
CTLTYPE_INT, "esp_net_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"tunneled traffic"),
|
||||||
sysctl_ipsec, 0, &ip4_esp_net_deflev, 0,
|
sysctl_ipsec, 0, &ip4_esp_net_deflev, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_ESP_NETLEV, CTL_EOL);
|
IPSECCTL_DEF_ESP_NETLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ah_trans_deflev", NULL,
|
CTLTYPE_INT, "ah_trans_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"transport mode headers"),
|
||||||
sysctl_ipsec, 0, &ip4_ah_trans_deflev, 0,
|
sysctl_ipsec, 0, &ip4_ah_trans_deflev, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_AH_TRANSLEV, CTL_EOL);
|
IPSECCTL_DEF_AH_TRANSLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ah_net_deflev", NULL,
|
CTLTYPE_INT, "ah_net_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"tunneled headers"),
|
||||||
sysctl_ipsec, 0, &ip4_ah_net_deflev, 0,
|
sysctl_ipsec, 0, &ip4_ah_net_deflev, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_AH_NETLEV, CTL_EOL);
|
IPSECCTL_DEF_AH_NETLEV, CTL_EOL);
|
||||||
@ -3674,31 +3685,38 @@ SYSCTL_SETUP(sysctl_net_inet_ipsec_setup, "sysctl net.inet.ipsec subtree setup")
|
|||||||
#endif
|
#endif
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ah_cleartos", NULL,
|
CTLTYPE_INT, "ah_cleartos",
|
||||||
|
SYSCTL_DESCR("Clear IP TOS field before calculating AH"),
|
||||||
NULL, 0, &ip4_ah_cleartos, 0,
|
NULL, 0, &ip4_ah_cleartos, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_AH_CLEARTOS, CTL_EOL);
|
IPSECCTL_AH_CLEARTOS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ah_offsetmask", NULL,
|
CTLTYPE_INT, "ah_offsetmask",
|
||||||
|
SYSCTL_DESCR("Mask for IP fragment offset field when "
|
||||||
|
"calculating AH"),
|
||||||
NULL, 0, &ip4_ah_offsetmask, 0,
|
NULL, 0, &ip4_ah_offsetmask, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_AH_OFFSETMASK, CTL_EOL);
|
IPSECCTL_AH_OFFSETMASK, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "dfbit", NULL,
|
CTLTYPE_INT, "dfbit",
|
||||||
|
SYSCTL_DESCR("IP header DF bit setting for tunneled "
|
||||||
|
"traffic"),
|
||||||
NULL, 0, &ip4_ipsec_dfbit, 0,
|
NULL, 0, &ip4_ipsec_dfbit, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DFBIT, CTL_EOL);
|
IPSECCTL_DFBIT, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ecn", NULL,
|
CTLTYPE_INT, "ecn",
|
||||||
|
SYSCTL_DESCR("Behavior of ECN for tunneled traffic"),
|
||||||
NULL, 0, &ip4_ipsec_ecn, 0,
|
NULL, 0, &ip4_ipsec_ecn, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_ECN, CTL_EOL);
|
IPSECCTL_ECN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "debug", NULL,
|
CTLTYPE_INT, "debug",
|
||||||
|
SYSCTL_DESCR("Enable IPSec debugging output"),
|
||||||
NULL, 0, &ipsec_debug, 0,
|
NULL, 0, &ipsec_debug, 0,
|
||||||
CTL_NET, PF_INET, IPPROTO_AH,
|
CTL_NET, PF_INET, IPPROTO_AH,
|
||||||
IPSECCTL_DEBUG, CTL_EOL);
|
IPSECCTL_DEBUG, CTL_EOL);
|
||||||
@ -3752,55 +3770,68 @@ SYSCTL_SETUP(sysctl_net_inet6_ipsec6_setup,
|
|||||||
CTL_NET, PF_INET6, CTL_EOL);
|
CTL_NET, PF_INET6, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "ipsec6", NULL,
|
CTLTYPE_NODE, "ipsec6",
|
||||||
|
SYSCTL_DESCR("IPv6 related IPSec settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH, CTL_EOL);
|
CTL_NET, PF_INET6, IPPROTO_AH, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_STRUCT, "stats", NULL,
|
CTLTYPE_STRUCT, "stats",
|
||||||
|
SYSCTL_DESCR("IPSec statistics and counters"),
|
||||||
NULL, 0, &ipsec6stat, sizeof(ipsec6stat),
|
NULL, 0, &ipsec6stat, sizeof(ipsec6stat),
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_STATS, CTL_EOL);
|
IPSECCTL_STATS, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "def_policy", NULL,
|
CTLTYPE_INT, "def_policy",
|
||||||
|
SYSCTL_DESCR("Default action for non-IPSec packets"),
|
||||||
sysctl_ipsec, 0, &ip6_def_policy, 0,
|
sysctl_ipsec, 0, &ip6_def_policy, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_POLICY, CTL_EOL);
|
IPSECCTL_DEF_POLICY, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "esp_trans_deflev", NULL,
|
CTLTYPE_INT, "esp_trans_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"transport mode traffic"),
|
||||||
sysctl_ipsec, 0, &ip6_esp_trans_deflev, 0,
|
sysctl_ipsec, 0, &ip6_esp_trans_deflev, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_ESP_TRANSLEV, CTL_EOL);
|
IPSECCTL_DEF_ESP_TRANSLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "esp_net_deflev", NULL,
|
CTLTYPE_INT, "esp_net_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"tunneled traffic"),
|
||||||
sysctl_ipsec, 0, &ip6_esp_net_deflev, 0,
|
sysctl_ipsec, 0, &ip6_esp_net_deflev, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_ESP_NETLEV, CTL_EOL);
|
IPSECCTL_DEF_ESP_NETLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ah_trans_deflev", NULL,
|
CTLTYPE_INT, "ah_trans_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"transport mode headers"),
|
||||||
sysctl_ipsec, 0, &ip6_ah_trans_deflev, 0,
|
sysctl_ipsec, 0, &ip6_ah_trans_deflev, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_AH_TRANSLEV, CTL_EOL);
|
IPSECCTL_DEF_AH_TRANSLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ah_net_deflev", NULL,
|
CTLTYPE_INT, "ah_net_deflev",
|
||||||
|
SYSCTL_DESCR("Default required security level for "
|
||||||
|
"tunneled headers"),
|
||||||
sysctl_ipsec, 0, &ip6_ah_net_deflev, 0,
|
sysctl_ipsec, 0, &ip6_ah_net_deflev, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_DEF_AH_NETLEV, CTL_EOL);
|
IPSECCTL_DEF_AH_NETLEV, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "ecn", NULL,
|
CTLTYPE_INT, "ecn",
|
||||||
|
SYSCTL_DESCR("Behavior of ECN for tunneled traffic"),
|
||||||
NULL, 0, &ip6_ipsec_ecn, 0,
|
NULL, 0, &ip6_ipsec_ecn, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_ECN, CTL_EOL);
|
IPSECCTL_ECN, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "debug", NULL,
|
CTLTYPE_INT, "debug",
|
||||||
|
SYSCTL_DESCR("Enable IPSec debugging output"),
|
||||||
NULL, 0, &ipsec_debug, 0,
|
NULL, 0, &ipsec_debug, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_AH,
|
CTL_NET, PF_INET6, IPPROTO_AH,
|
||||||
IPSECCTL_DEBUG, CTL_EOL);
|
IPSECCTL_DEBUG, CTL_EOL);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: udp6_usrreq.c,v 1.62 2004/03/24 15:34:55 atatat Exp $ */
|
/* $NetBSD: udp6_usrreq.c,v 1.63 2004/05/25 04:34:01 atatat Exp $ */
|
||||||
/* $KAME: udp6_usrreq.c,v 1.86 2001/05/27 17:33:00 itojun Exp $ */
|
/* $KAME: udp6_usrreq.c,v 1.86 2001/05/27 17:33:00 itojun Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -62,7 +62,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.62 2004/03/24 15:34:55 atatat Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: udp6_usrreq.c,v 1.63 2004/05/25 04:34:01 atatat Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
@ -426,19 +426,22 @@ SYSCTL_SETUP(sysctl_net_inet6_udp6_setup, "sysctl net.inet6.udp6 subtree setup")
|
|||||||
CTL_NET, PF_INET6, CTL_EOL);
|
CTL_NET, PF_INET6, CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT,
|
CTLFLAG_PERMANENT,
|
||||||
CTLTYPE_NODE, "udp6", NULL,
|
CTLTYPE_NODE, "udp6",
|
||||||
|
SYSCTL_DESCR("UDPv6 related settings"),
|
||||||
NULL, 0, NULL, 0,
|
NULL, 0, NULL, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_UDP, CTL_EOL);
|
CTL_NET, PF_INET6, IPPROTO_UDP, CTL_EOL);
|
||||||
|
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "sendspace", NULL,
|
CTLTYPE_INT, "sendspace",
|
||||||
|
SYSCTL_DESCR("Default UDP send buffer size"),
|
||||||
NULL, 0, &udp6_sendspace, 0,
|
NULL, 0, &udp6_sendspace, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_UDP, UDP6CTL_SENDSPACE,
|
CTL_NET, PF_INET6, IPPROTO_UDP, UDP6CTL_SENDSPACE,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
sysctl_createv(clog, 0, NULL, NULL,
|
sysctl_createv(clog, 0, NULL, NULL,
|
||||||
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
|
||||||
CTLTYPE_INT, "recvspace", NULL,
|
CTLTYPE_INT, "recvspace",
|
||||||
|
SYSCTL_DESCR("Default UDP receive buffer size"),
|
||||||
NULL, 0, &udp6_recvspace, 0,
|
NULL, 0, &udp6_recvspace, 0,
|
||||||
CTL_NET, PF_INET6, IPPROTO_UDP, UDP6CTL_RECVSPACE,
|
CTL_NET, PF_INET6, IPPROTO_UDP, UDP6CTL_RECVSPACE,
|
||||||
CTL_EOL);
|
CTL_EOL);
|
||||||
|
Loading…
Reference in New Issue
Block a user