Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Declare icmperrppslim in ip_icmp.c, it shouldn't...



details:   https://anonhg.NetBSD.org/src/rev/54b7150e50bb
branches:  trunk
changeset: 829530:54b7150e50bb
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Feb 05 08:38:06 2018 +0000

description:
Declare icmperrppslim in ip_icmp.c, it shouldn't be used elsewhere.

diffstat:

 sys/netinet/in_proto.c |  6 ++----
 sys/netinet/ip_icmp.c  |  6 +++---
 2 files changed, 5 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 8a681156037e -r 54b7150e50bb sys/netinet/in_proto.c
--- a/sys/netinet/in_proto.c    Mon Feb 05 06:22:27 2018 +0000
+++ b/sys/netinet/in_proto.c    Mon Feb 05 08:38:06 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_proto.c,v 1.125 2017/09/27 10:05:04 ozaki-r Exp $   */
+/*     $NetBSD: in_proto.c,v 1.126 2018/02/05 08:38:06 maxv Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.125 2017/09/27 10:05:04 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.126 2018/02/05 08:38:06 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mrouting.h"
@@ -526,8 +526,6 @@
 
 u_char ip_protox[IPPROTO_MAX];
 
-int icmperrppslim = 100;                       /* 100pps */
-
 static void
 sockaddr_in_addrlen(const struct sockaddr *sa, socklen_t *slenp)
 {
diff -r 8a681156037e -r 54b7150e50bb sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c     Mon Feb 05 06:22:27 2018 +0000
+++ b/sys/netinet/ip_icmp.c     Mon Feb 05 08:38:06 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_icmp.c,v 1.166 2018/01/23 07:33:49 maxv Exp $       */
+/*     $NetBSD: ip_icmp.c,v 1.167 2018/02/05 08:38:06 maxv Exp $       */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.166 2018/01/23 07:33:49 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.167 2018/02/05 08:38:06 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -161,7 +161,7 @@
 /* unused... */
 u_int ip_next_mtu(u_int, int);
 
-extern int icmperrppslim;
+static int icmperrppslim = 100;                        /* 100pps */
 static int icmperrpps_count = 0;
 static struct timeval icmperrppslim_last;
 static int icmp_rediraccept = 1;



Home | Main Index | Thread Index | Old Index