Source-Changes-HG archive

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

[src/netbsd-6-0]: src/sys/netinet Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/99170a042c2f
branches:  netbsd-6-0
changeset: 775049:99170a042c2f
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Feb 21 13:06:35 2015 +0000

description:
Pull up following revision(s) (requested by christos in ticket #1258):
        sys/netinet/icmp_var.h: revision 1.30
        sys/netinet/ip_icmp.h: revision 1.34
PR/49676: Ryo Shimizu: ICMP_STATINC() buffer overflows

diffstat:

 sys/netinet/icmp_var.h |  6 +++---
 sys/netinet/ip_icmp.h  |  3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 94351c8a78b4 -r 99170a042c2f sys/netinet/icmp_var.h
--- a/sys/netinet/icmp_var.h    Sat Feb 21 12:58:01 2015 +0000
+++ b/sys/netinet/icmp_var.h    Sat Feb 21 13:06:35 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp_var.h,v 1.29 2011/12/24 19:54:41 christos Exp $   */
+/*     $NetBSD: icmp_var.h,v 1.29.8.1 2015/02/21 13:06:35 martin Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -56,8 +56,8 @@
 #define        ICMP_STAT_BMCASTTSTAMP  10      /* b/mcast tstamp requests dropped */
 #define        ICMP_STAT_LAST          16      /* Allow for 5 spare ones */
 #define        ICMP_STAT_OUTHIST       ICMP_STAT_LAST
-#define        ICMP_STAT_INHIST        (ICMP_STAT_LAST + ICMP_MAXTYPE)
-#define        ICMP_NSTATS             (ICMP_STAT_LAST + 2 * ICMP_MAXTYPE)
+#define        ICMP_STAT_INHIST        (ICMP_STAT_LAST + ICMP_NTYPES)
+#define        ICMP_NSTATS             (ICMP_STAT_LAST + 2 * ICMP_NTYPES)
 
 /*
  * Names for ICMP sysctl objects
diff -r 94351c8a78b4 -r 99170a042c2f sys/netinet/ip_icmp.h
--- a/sys/netinet/ip_icmp.h     Sat Feb 21 12:58:01 2015 +0000
+++ b/sys/netinet/ip_icmp.h     Sat Feb 21 13:06:35 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_icmp.h,v 1.33 2011/12/24 20:18:54 christos Exp $    */
+/*     $NetBSD: ip_icmp.h,v 1.33.8.1 2015/02/21 13:06:35 martin Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -189,6 +189,7 @@
 #define                ICMP_PHOTURIS_NEED_AUTHZ        5       /* no authorization */
 
 #define ICMP_MAXTYPE           40
+#define ICMP_NTYPES            (ICMP_MAXTYPE + 1)
 
 #ifdef ICMP_STRINGS
 static const char *icmp_type[] = {



Home | Main Index | Thread Index | Old Index