From 883636ba544e48fbb47d9eff93f5b4ee3094000d Mon Sep 17 00:00:00 2001 From: ak Date: Thu, 9 Aug 2001 15:52:39 +0000 Subject: [PATCH] Increase SIOCGIFCONF buffer size faster for many interfaces. --- lib/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/interface.c b/lib/interface.c index 0ab29cdf2..cf31b2763 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; -- 2.11.4.GIT