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
This commit is contained in:
Mike Smith 1999-06-30 23:11:15 +00:00
parent 2835cbd026
commit 64e41ba7c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48381

View file

@ -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 */