bump MAXIF (the maximum number of interfaces for which information is kept,
for 'netstat -w <delay>') to 100, from 10. 10 was definitely not sufficient for many hosts; 100 should be for most if not all. This code really should dynamically allocate the information structures, based on the number of interfaces in the kernel, account for interfaces that are added or removed, etc., but given its current structure that would require substantial changes.
This commit is contained in:
parent
525c9d6e37
commit
207dfda94d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if.c,v 1.17 1996/06/04 20:09:03 cgd Exp $ */
|
||||
/* $NetBSD: if.c,v 1.18 1996/06/04 20:22:23 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
|
||||
#else
|
||||
static char *rcsid = "$NetBSD: if.c,v 1.17 1996/06/04 20:09:03 cgd Exp $";
|
||||
static char *rcsid = "$NetBSD: if.c,v 1.18 1996/06/04 20:22:23 cgd Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -239,7 +239,7 @@ intpr(interval, ifnetaddr)
|
|||
}
|
||||
}
|
||||
|
||||
#define MAXIF 10
|
||||
#define MAXIF 100
|
||||
struct iftot {
|
||||
char ift_name[IFNAMSIZ]; /* interface name */
|
||||
int ift_ip; /* input packets */
|
||||
|
|
Loading…
Reference in New Issue