Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Sysctl descriptions under net subtree (net.key not done)



details:   https://anonhg.NetBSD.org/src/rev/1020b57209a7
branches:  trunk
changeset: 566938:1020b57209a7
user:      atatat <atatat%NetBSD.org@localhost>
date:      Tue May 25 04:33:59 2004 +0000

description:
Sysctl descriptions under net subtree (net.key not done)

diffstat:

 sys/kern/uipc_domain.c            |   7 +-
 sys/net/bpf.c                     |  10 ++-
 sys/net/if.c                      |  19 ++++--
 sys/net/rtsock.c                  |  10 ++-
 sys/net80211/ieee80211.c          |  10 ++-
 sys/net80211/ieee80211_rssadapt.c |  11 ++-
 sys/netinet/if_arp.c              |  19 ++++--
 sys/netinet/ip_icmp.c             |  25 +++++++---
 sys/netinet/ip_input.c            |  79 ++++++++++++++++++++++----------
 sys/netinet/tcp_usrreq.c          |  94 ++++++++++++++++++++++++++------------
 sys/netinet/udp_usrreq.c          |  16 ++++--
 sys/netinet6/icmp6.c              |  55 ++++++++++++++-------
 sys/netinet6/ip6_input.c          |  77 +++++++++++++++++++++---------
 sys/netinet6/ipsec.c              |  77 ++++++++++++++++++++++---------
 sys/netinet6/udp6_usrreq.c        |  13 +++--
 15 files changed, 350 insertions(+), 172 deletions(-)

diffs (truncated from 1485 to 300 lines):

diff -r 73a259662a2b -r 1020b57209a7 sys/kern/uipc_domain.c
--- a/sys/kern/uipc_domain.c    Tue May 25 04:31:48 2004 +0000
+++ b/sys/kern/uipc_domain.c    Tue May 25 04:33:59 2004 +0000
@@ -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
@@ -32,7 +32,7 @@
  */
 
 #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_ipsec.h"
@@ -215,7 +215,8 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "local", NULL,
+                      CTLTYPE_NODE, "local",
+                      SYSCTL_DESCR("PF_LOCAL related settings"),
                       NULL, 0, NULL, 0,
                       CTL_NET, PF_LOCAL, CTL_EOL);
 
diff -r 73a259662a2b -r 1020b57209a7 sys/net/bpf.c
--- a/sys/net/bpf.c     Tue May 25 04:31:48 2004 +0000
+++ b/sys/net/bpf.c     Tue May 25 04:33:59 2004 +0000
@@ -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
@@ -39,7 +39,7 @@
  */
 
 #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"
 
@@ -1676,13 +1676,15 @@
        node = NULL;
        sysctl_createv(clog, 0, NULL, &node,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "bpf", NULL,
+                      CTLTYPE_NODE, "bpf",
+                      SYSCTL_DESCR("BPF options"),
                       NULL, 0, NULL, 0,
                       CTL_NET, CTL_CREATE, CTL_EOL);
        if (node != NULL)
                sysctl_createv(clog, 0, NULL, NULL,
                        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,
                        CTL_NET, node->sysctl_num, CTL_CREATE, CTL_EOL);
 }
diff -r 73a259662a2b -r 1020b57209a7 sys/net/if.c
--- a/sys/net/if.c      Tue May 25 04:31:48 2004 +0000
+++ b/sys/net/if.c      Tue May 25 04:33:59 2004 +0000
@@ -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.
@@ -97,7 +97,7 @@
  */
 
 #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"
 
@@ -1729,30 +1729,35 @@
                       CTL_NET, pf, ipn, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "ifq", NULL,
+                      CTLTYPE_NODE, "ifq",
+                      SYSCTL_DESCR("Protocol input queue controls"),
                       NULL, 0, NULL, 0,
                       CTL_NET, pf, ipn, qid, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_INT, "len", NULL,
+                      CTLTYPE_INT, "len",
+                      SYSCTL_DESCR("Current input queue length"),
                       NULL, 0, &ifq->ifq_len, 0,
                       CTL_NET, pf, ipn, qid, IFQCTL_LEN, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                      CTLTYPE_INT, "maxlen", NULL,
+                      CTLTYPE_INT, "maxlen",
+                      SYSCTL_DESCR("Maximum allowed input queue length"),
                       NULL, 0, &ifq->ifq_maxlen, 0,
                       CTL_NET, pf, ipn, qid, IFQCTL_MAXLEN, CTL_EOL);
 #ifdef notyet
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_INT, "peak", NULL,
+                      CTLTYPE_INT, "peak",
+                      SYSCTL_DESCR("Highest input queue length"),
                       NULL, 0, &ifq->ifq_peak, 0,
                       CTL_NET, pf, ipn, qid, IFQCTL_PEAK, CTL_EOL);
 #endif
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_INT, "drops", NULL,
+                      CTLTYPE_INT, "drops",
+                      SYSCTL_DESCR("Packets dropped due to full input queue"),
                       NULL, 0, &ifq->ifq_drops, 0,
                       CTL_NET, pf, ipn, qid, IFQCTL_DROPS, CTL_EOL);
 }
diff -r 73a259662a2b -r 1020b57209a7 sys/net/rtsock.c
--- a/sys/net/rtsock.c  Tue May 25 04:31:48 2004 +0000
+++ b/sys/net/rtsock.c  Tue May 25 04:33:59 2004 +0000
@@ -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.
@@ -61,7 +61,7 @@
  */
 
 #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"
 
@@ -1112,12 +1112,14 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "route", NULL,
+                      CTLTYPE_NODE, "route",
+                      SYSCTL_DESCR("PF_ROUTE information"),
                       NULL, 0, NULL, 0,
                       CTL_NET, PF_ROUTE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
-                      CTLTYPE_NODE, "rtable", NULL,
+                      CTLTYPE_NODE, "rtable",
+                      SYSCTL_DESCR("Routing table information"),
                       sysctl_rtable, 0, NULL, 0,
                       CTL_NET, PF_ROUTE, 0 /* any protocol */, CTL_EOL);
 }
diff -r 73a259662a2b -r 1020b57209a7 sys/net80211/ieee80211.c
--- a/sys/net80211/ieee80211.c  Tue May 25 04:31:48 2004 +0000
+++ b/sys/net80211/ieee80211.c  Tue May 25 04:33:59 2004 +0000
@@ -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) 2002, 2003 Sam Leffler, Errno Consulting
@@ -35,7 +35,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211.c,v 1.11 2004/04/02 20:19:20 sam Exp $");
 #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
 
 /*
@@ -978,7 +978,8 @@
        /* control debugging printfs */
        if ((rc = sysctl_createv(clog, 0, &rnode, &cnode,
            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)
                goto err;
 
@@ -989,7 +990,8 @@
        /* control inactivity timer */
        if ((rc = sysctl_createv(clog, 0, &rnode, &cnode,
            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)
                goto err;
 
diff -r 73a259662a2b -r 1020b57209a7 sys/net80211/ieee80211_rssadapt.c
--- a/sys/net80211/ieee80211_rssadapt.c Tue May 25 04:31:48 2004 +0000
+++ b/sys/net80211/ieee80211_rssadapt.c Tue May 25 04:33:59 2004 +0000
@@ -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.
  *
@@ -171,14 +171,16 @@
                goto err;
 
        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)
                goto err;
 
 #ifdef IEEE80211_DEBUG
        /* control debugging printfs */
        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,
            CTL_CREATE, CTL_EOL)) != 0)
                goto err;
@@ -187,7 +189,8 @@
        /* control rate of decay for exponential averages */
        if ((rc = sysctl_createv(clog, 0, &node, NULL,
            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,
            CTL_EOL)) != 0)
                goto err;
diff -r 73a259662a2b -r 1020b57209a7 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Tue May 25 04:31:48 2004 +0000
+++ b/sys/netinet/if_arp.c      Tue May 25 04:33:59 2004 +0000
@@ -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.
@@ -75,7 +75,7 @@
  */
 
 #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_inet.h"
@@ -1523,31 +1523,36 @@
                        CTL_NET, PF_INET, CTL_EOL);
        sysctl_createv(clog, 0, NULL, &node,
                        CTLFLAG_PERMANENT,
-                       CTLTYPE_NODE, "arp", NULL,
+                       CTLTYPE_NODE, "arp",
+                       SYSCTL_DESCR("Address Resolution Protocol"),
                        NULL, 0, NULL, 0,
                        CTL_NET, PF_INET, CTL_CREATE, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                       CTLTYPE_INT, "prune", NULL,
+                       CTLTYPE_INT, "prune",
+                       SYSCTL_DESCR("ARP cache pruning interval"),
                        NULL, 0, &arpt_prune, 0,
                        CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                       CTLTYPE_INT, "keep", NULL,
+                       CTLTYPE_INT, "keep",
+                       SYSCTL_DESCR("Valid ARP entry lifetime"),
                        NULL, 0, &arpt_keep, 0,
                        CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                       CTLTYPE_INT, "down", NULL,
+                       CTLTYPE_INT, "down",
+                       SYSCTL_DESCR("Failed ARP entry lifetime"),
                        NULL, 0, &arpt_down, 0,
                        CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                       CTLTYPE_INT, "refresh", NULL,
+                       CTLTYPE_INT, "refresh",
+                       SYSCTL_DESCR("ARP entry refresh interval"),
                        NULL, 0, &arpt_refresh, 0,
                        CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
 }
diff -r 73a259662a2b -r 1020b57209a7 sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c     Tue May 25 04:31:48 2004 +0000
+++ b/sys/netinet/ip_icmp.c     Tue May 25 04:33:59 2004 +0000
@@ -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 $      */



Home | Main Index | Thread Index | Old Index