[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Many interfaces
From: |
Armin Wolfermann |
Subject: |
[PATCH] Many interfaces |
Date: |
Fri, 4 Jul 2003 11:29:11 +0200 |
User-agent: |
Mutt/1.5.4i |
Hi,
this is a rough patch to get cfengine 2.0.7p3 to run on a host with
~256 (virtual) network interfaces. This is common with webservers or
vlan firewalls in an ISP environment.
Perhaps a --max-interfaces= option would be more appropiate.
diff -ur cfengine-2.0.7p3/src/cf.defs.h cfengine-2.0.7p3-virtif/src/cf.defs.h
--- cfengine-2.0.7p3/src/cf.defs.h Wed May 7 09:36:35 2003
+++ cfengine-2.0.7p3-virtif/src/cf.defs.h Fri Jun 20 17:05:22 2003
@@ -237,7 +237,7 @@
#define true 1
#define false 0
-#define bufsize 4096
+#define bufsize 32768
#define buffer_margin 32
#define maxvarsize 1024
#define maxlinksize 256
diff -ur cfengine-2.0.7p3/src/nameinfo.c cfengine-2.0.7p3-virtif/src/nameinfo.c
--- cfengine-2.0.7p3/src/nameinfo.c Wed Apr 23 22:47:50 2003
+++ cfengine-2.0.7p3-virtif/src/nameinfo.c Fri Jun 20 15:50:04 2003
@@ -268,7 +268,7 @@
void GetInterfaceInfo(void)
{ int fd,len,i,j;
- struct ifreq ifbuf[64],ifr, *ifp;
+ struct ifreq ifbuf[300],ifr, *ifp;
struct ifconf list;
struct sockaddr_in *sin;
struct hostent *hp;
Regards,
Armin Wolfermann
- [PATCH] Many interfaces,
Armin Wolfermann <=