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.
This commit is contained in:
parent
0934553336
commit
695feac96a
@ -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 ????? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user