Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Make the two MTU tables const and change their t...



details:   https://anonhg.NetBSD.org/src/rev/213575225b5c
branches:  trunk
changeset: 516272:213575225b5c
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Oct 20 03:18:17 2001 +0000

description:
Make the two MTU tables const and change their type to u_int (one was int
and one was u_long!).

diffstat:

 sys/netinet/ip_icmp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 340e54bf563a -r 213575225b5c sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c     Sat Oct 20 00:17:47 2001 +0000
+++ b/sys/netinet/ip_icmp.c     Sat Oct 20 03:18:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_icmp.c,v 1.60 2001/03/08 00:17:05 itojun Exp $      */
+/*     $NetBSD: ip_icmp.c,v 1.61 2001/10/20 03:18:17 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -901,8 +901,8 @@
 
        /* Table of common MTUs: */
 
-       static u_long mtu_table[] = {65535, 65280, 32000, 17914, 9180, 8166, 
-                                    4352, 2002, 1492, 1006, 508, 296, 68, 0};
+       static const u_int mtu_table[] = { 65535, 65280, 32000, 17914, 9180,
+           8166, 4352, 2002, 1492, 1006, 508, 296, 68, 0};
     
        rt = rtalloc1(dst, 1);
        if (rt == 0)
@@ -997,7 +997,7 @@
        int mtu;
        int dir;
 {
-       static int mtutab[] = {
+       static const u_int mtutab[] = {
                65535, 32000, 17914, 8166, 4352, 2002, 1492, 1006, 508, 296,
                68, 0
        };



Home | Main Index | Thread Index | Old Index