Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove obsolete global variables and sysctl MIBs



details:   https://anonhg.NetBSD.org/src/rev/ddcc0fab1327
branches:  trunk
changeset: 340318:ddcc0fab1327
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Aug 31 08:06:30 2015 +0000

description:
Remove obsolete global variables and sysctl MIBs

diffstat:

 sys/netinet/if_arp.c |  20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diffs (57 lines):

diff -r a7c267d771da -r ddcc0fab1327 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Mon Aug 31 08:05:20 2015 +0000
+++ b/sys/netinet/if_arp.c      Mon Aug 31 08:06:30 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.174 2015/08/31 08:05:20 ozaki-r Exp $     */
+/*     $NetBSD: if_arp.c,v 1.175 2015/08/31 08:06:30 ozaki-r Exp $     */
 
 /*-
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.174 2015/08/31 08:05:20 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.175 2015/08/31 08:06:30 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -141,10 +141,8 @@
 #define ETHERTYPE_IPTRAILERS ETHERTYPE_TRAIL
 
 /* timer values */
-static int     arpt_prune = (5*60*1);  /* walk list every 5 minutes */
 static int     arpt_keep = (20*60);    /* once resolved, good for 20 more minutes */
 static int     arpt_down = 20;         /* once declared down, don't send for 20 secs */
-static int     arpt_refresh = (5*60);  /* time left before refreshing */
 static int     arp_maxhold = 1;        /* number of packets to hold per ARP entry */
 #define        rt_expire rt_rmx.rmx_expire
 #define        rt_pksent rt_rmx.rmx_pksent
@@ -2150,13 +2148,6 @@
 
        sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                       CTLTYPE_INT, "prune",
-                       SYSCTL_DESCR("ARP cache pruning interval in seconds"),
-                       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",
                        SYSCTL_DESCR("Valid ARP entry lifetime in seconds"),
                        NULL, 0, &arpt_keep, 0,
@@ -2170,13 +2161,6 @@
                        CTL_NET,PF_INET, node->sysctl_num, CTL_CREATE, CTL_EOL);
 
        sysctl_createv(clog, 0, NULL, NULL,
-                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
-                       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);
-       
-       sysctl_createv(clog, 0, NULL, NULL,
                        CTLFLAG_PERMANENT,
                        CTLTYPE_STRUCT, "stats",
                        SYSCTL_DESCR("ARP statistics"),



Home | Main Index | Thread Index | Old Index