diff options
author | Andi Kleen <andi@firstfloor.org> | 2001-08-09 15:52:39 +0000 |
---|---|---|
committer | Andi Kleen <andi@firstfloor.org> | 2001-08-09 15:52:39 +0000 |
commit | fc474dcd60323a4b3fc3cb84be5a33930f358d86 (patch) | |
tree | 1b4b3eb2a3a52fc57cf13404258b27d5e63c92b8 /lib | |
parent | Remove Debian-specific path. (diff) | |
download | net-tools-fc474dcd60323a4b3fc3cb84be5a33930f358d86.tar.gz net-tools-fc474dcd60323a4b3fc3cb84be5a33930f358d86.tar.bz2 net-tools-fc474dcd60323a4b3fc3cb84be5a33930f358d86.zip |
Increase SIOCGIFCONF buffer size faster for many interfaces.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/interface.c b/lib/interface.c index 0ab29cd..cf31b27 100644 --- 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.16 2001/07/17 07:24:36 pb Exp $ + $Id: interface.c,v 1.17 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; |