summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-06-30 23:11:15 +0000
committermsmith <msmith@FreeBSD.org>1999-06-30 23:11:15 +0000
commitec1ef7428028b50e58c83aa468ee1b62b24ba8a0 (patch)
tree7affc0fc34014a4b268449c955ded9a73f3be395 /sys/net
parenta987e5b063b72307e9ab781869ed861743165339 (diff)
downloadFreeBSD-src-ec1ef7428028b50e58c83aa468ee1b62b24ba8a0.zip
FreeBSD-src-ec1ef7428028b50e58c83aa468ee1b62b24ba8a0.tar.gz
Increase the size of the route reference count from 15 bits to 31 bits.
This doesn't change the size or alignment of the structure on either i386 or Alpha, and thus should be binary-compatible (modulo problems with old applications and routes with more than 2^15 references). Reviewed by: peter
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index f53e4e5..d37b3ae 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.h 8.3 (Berkeley) 4/19/94
- * $Id: route.h,v 1.28 1998/03/23 13:58:02 bde Exp $
+ * $Id: route.h,v 1.29 1999/05/06 18:12:56 peter Exp $
*/
#ifndef _NET_ROUTE_H_
@@ -101,8 +101,7 @@ struct rtentry {
#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_filler; /* was short flags field */
- short rt_refcnt; /* # held references */
+ long rt_refcnt; /* # held references */
u_long rt_flags; /* up/down?, host/net */
struct ifnet *rt_ifp; /* the answer: interface to use */
struct ifaddr *rt_ifa; /* the answer: interface to use */
OpenPOWER on IntegriCloud