Source-Changes-HG archive

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

[src/trunk]: src/sys/net Change rt_refcnt from short to int, to allow more th...



details:   https://anonhg.NetBSD.org/src/rev/5cb444b7a3b7
branches:  trunk
changeset: 485748:5cb444b7a3b7
user:      ragge <ragge%NetBSD.org@localhost>
date:      Thu May 04 17:33:03 2000 +0000

description:
Change rt_refcnt from short to int, to allow more than 32k routes thru
one interface without unexpected side effects.

diffstat:

 sys/net/route.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 6e2b70f96482 -r 5cb444b7a3b7 sys/net/route.h
--- a/sys/net/route.h   Thu May 04 17:27:25 2000 +0000
+++ b/sys/net/route.h   Thu May 04 17:33:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.21 2000/03/06 20:49:00 thorpej Exp $       */
+/*     $NetBSD: route.h,v 1.22 2000/05/04 17:33:03 ragge Exp $ */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -99,8 +99,8 @@
 #define        rt_key(r)       ((struct sockaddr *)((r)->rt_nodes->rn_key))
 #define        rt_mask(r)      ((struct sockaddr *)((r)->rt_nodes->rn_mask))
        struct  sockaddr *rt_gateway;   /* value */
-       short   rt_flags;               /* up/down?, host/net */
-       short   rt_refcnt;              /* # held references */
+       int     rt_flags;               /* up/down?, host/net */
+       int     rt_refcnt;              /* # held references */
        u_long  rt_use;                 /* raw # packets forwarded */
        struct  ifnet *rt_ifp;          /* the answer: interface to use */
        struct  ifaddr *rt_ifa;         /* the answer: interface to use */



Home | Main Index | Thread Index | Old Index