Up the size of the ifa_flags and ifa_refcnt from shorts to ints. Now will

deal correctly with more than 32767 routes out an interface.

Should close PR 7148 regarding problems when ifs_refcnt overflows.

Bump kernel version from 1.4L to 1.4M.
This commit is contained in:
wrstuden 1999-10-26 22:32:44 +00:00
parent fb6f289535
commit 2f8d442b6a
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: osrelease.sh,v 1.27 1999/10/10 01:57:10 mrg Exp $
# $NetBSD: osrelease.sh,v 1.28 1999/10/26 22:32:44 wrstuden Exp $
#
# Copyright (c) 1997 The NetBSD Foundation, Inc.
# All rights reserved.
@ -38,7 +38,7 @@
#
# Release number to use
release=1.4L
release=1.4M
case $1 in

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.h,v 1.40 1999/09/29 22:42:02 thorpej Exp $ */
/* $NetBSD: if.h,v 1.41 1999/10/26 22:32:45 wrstuden Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -258,8 +258,8 @@ struct ifaddr {
struct ifaddr_data ifa_data; /* statistics on the address */
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; /* count of references */
u_int ifa_flags; /* mostly rt_flags for cloning */
int ifa_refcnt; /* count of references */
int ifa_metric; /* cost of going out this interface */
};
#define IFA_ROUTE RTF_UP /* route installed */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.73 1999/10/10 01:57:09 mrg Exp $ */
/* $NetBSD: param.h,v 1.74 1999/10/26 22:32:45 wrstuden Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@ -65,7 +65,7 @@
*
*/
#define __NetBSD_Version__ 104120000 /* NetBSD 1.4L */
#define __NetBSD_Version__ 104130000 /* NetBSD 1.4M */
/*
* Historical NetBSD #define