[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Many interfaces
From: |
Mark Burgess |
Subject: |
Re: [PATCH] Many interfaces |
Date: |
Fri, 4 Jul 2003 12:23:04 +0200 (MEST) |
On 4 Jul, Armin Wolfermann wrote:
> 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
What is the purpose of this? This is not a good thing to do for all
buffers. It would be better to increase the size of a specific buffer
that needs to be larger.
> #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
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~