Browse code

- increased initial interface list probing buffer (should work better/start faster for hosts with >100 network interfaces)

Andrei Pelinescu-Onciul authored on 26/02/2004 17:58:33
Showing 1 changed files
... ...
@@ -265,7 +265,7 @@ int add_interfaces(char* if_name, int family, unsigned short port,
265 265
 	ret=-1;
266 266
 	lastlen=0;
267 267
 	ifc.ifc_req=0;
268
-	for (size=10; ; size*=2){
268
+	for (size=100; ; size*=2){
269 269
 		ifc.ifc_len=size*sizeof(struct ifreq);
270 270
 		ifc.ifc_req=(struct ifreq*) pkg_malloc(size*sizeof(struct ifreq));
271 271
 		if (ifc.ifc_req==0){