From 2f8d442b6a8680b8ad3ecce5e8913bd78d1715ec Mon Sep 17 00:00:00 2001 From: wrstuden Date: Tue, 26 Oct 1999 22:32:44 +0000 Subject: [PATCH] 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. --- sys/conf/osrelease.sh | 4 ++-- sys/net/if.h | 6 +++--- sys/sys/param.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/conf/osrelease.sh b/sys/conf/osrelease.sh index c41acd3f4a9e..e59e6a1b9300 100644 --- a/sys/conf/osrelease.sh +++ b/sys/conf/osrelease.sh @@ -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 diff --git a/sys/net/if.h b/sys/net/if.h index b64b0c74a0d6..fab77956c940 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -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 */ diff --git a/sys/sys/param.h b/sys/sys/param.h index fe1c2bbbf062..c8976cae0e42 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -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