projects
/
platform
/
upstream
/
net-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8a6725
)
Increase SIOCGIFCONF buffer size faster for many interfaces.
author
Andi Kleen
<andi@firstfloor.org>
Thu, 9 Aug 2001 15:52:39 +0000
(15:52 +0000)
committer
Andi Kleen
<andi@firstfloor.org>
Thu, 9 Aug 2001 15:52:39 +0000
(15:52 +0000)
lib/interface.c
patch
|
blob
|
history
diff --git
a/lib/interface.c
b/lib/interface.c
index
0ab29cd
..
cf31b27
100644
(file)
--- a/
lib/interface.c
+++ b/
lib/interface.c
@@
-7,7
+7,7
@@
8/2000 Andi Kleen make the list operations a bit more efficient.
People are crazy enough to use thousands of aliases now.
- $Id: interface.c,v 1.1
6 2001/07/17 07:24:36 pb
Exp $
+ $Id: interface.c,v 1.1
7 2001/08/09 15:52:39 ak
Exp $
*/
#include "config.h"
@@
-180,7
+180,7
@@
static int if_readconf(void)
}
if (ifc.ifc_len == sizeof(struct ifreq) * numreqs) {
/* assume it overflowed and try again */
- numreqs
+= 10
;
+ numreqs
*= 2
;
continue;
}
break;