Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Up the size of the ifa_flags and ifa_refcnt from shorts ...
details: https://anonhg.NetBSD.org/src/rev/f7ceecbbe428
branches: trunk
changeset: 477662:f7ceecbbe428
user: wrstuden <wrstuden%NetBSD.org@localhost>
date: Tue Oct 26 22:32:44 1999 +0000
description:
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.
diffstat:
sys/conf/osrelease.sh | 4 ++--
sys/net/if.h | 6 +++---
sys/sys/param.h | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r 3846e3508ac8 -r f7ceecbbe428 sys/conf/osrelease.sh
--- a/sys/conf/osrelease.sh Tue Oct 26 22:23:20 1999 +0000
+++ b/sys/conf/osrelease.sh Tue Oct 26 22:32:44 1999 +0000
@@ -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 -r 3846e3508ac8 -r f7ceecbbe428 sys/net/if.h
--- a/sys/net/if.h Tue Oct 26 22:23:20 1999 +0000
+++ b/sys/net/if.h Tue Oct 26 22:32:44 1999 +0000
@@ -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_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 -r 3846e3508ac8 -r f7ceecbbe428 sys/sys/param.h
--- a/sys/sys/param.h Tue Oct 26 22:23:20 1999 +0000
+++ b/sys/sys/param.h Tue Oct 26 22:32:44 1999 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index