diff options
author | pb <pb@FreeBSD.org> | 1999-05-16 17:09:20 +0000 |
---|---|---|
committer | pb <pb@FreeBSD.org> | 1999-05-16 17:09:20 +0000 |
commit | 695feac96a4d019c8514170c1313ed9bfe9bbefb (patch) | |
tree | d05100b0ea3ff344f73100651e02dca0c27c1cc4 /sys | |
parent | 09345533367df3b2b788c4ed99e7cf621a90f95f (diff) | |
download | FreeBSD-src-695feac96a4d019c8514170c1313ed9bfe9bbefb.zip FreeBSD-src-695feac96a4d019c8514170c1313ed9bfe9bbefb.tar.gz |
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 <andrewb@demon.net> in PR kern/10570.
Tested by <adrian@freebsd.org> and me under -current.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_var.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 ????? */ |