From 695feac96a4d019c8514170c1313ed9bfe9bbefb Mon Sep 17 00:00:00 2001 From: pb Date: Sun, 16 May 1999 17:09:20 +0000 Subject: PR: kern/10570 Submitted by: adrian@freebsd.org Change reference count in struct ifaddr to a u_int, to be able to handle more than 2^16 routes to the same interface. Fix suggested by Andrew Bangs in PR kern/10570. Tested by and me under -current. --- sys/net/if_var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if_var.h b/sys/net/if_var.h index d8da636..35780d6 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)if.h 8.1 (Berkeley) 6/10/93 - * $Id: if_var.h,v 1.11 1999/04/16 21:22:46 peter Exp $ + * $Id: if_var.h,v 1.12 1999/05/06 18:12:55 peter Exp $ */ #ifndef _NET_IF_VAR_H_ @@ -249,7 +249,7 @@ struct ifaddr { void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ __P((int, struct rtentry *, struct sockaddr *)); u_short ifa_flags; /* mostly rt_flags for cloning */ - short ifa_refcnt; /* references to this structure */ + u_int ifa_refcnt; /* references to this structure */ int ifa_metric; /* cost of going out this interface */ #ifdef notdef struct rtentry *ifa_rt; /* XXXX for ROUTETOIF ????? */ -- cgit v1.1