Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2006 21:03:38 +1200
From:      Andrew Thompson <thompsa@freebsd.org>
To:        "Eric W. Bates" <ericx_lists@vineyard.net>
Cc:        freebsd-net@freebsd.org, Jon Otterholm <jon.otterholm@ide.resurscentrum.se>
Subject:   Re: Sub-interfaces
Message-ID:  <20060415090338.GA43966@heff.fud.org.nz>
In-Reply-To: <443FB763.3010808@vineyard.net>
References:  <443CF4D7.1030204@ide.resurscentrum.se> <20060412201725.GA42102@heff.fud.org.nz> <443D6325.2050109@vineyard.net> <443DFBF0.70606@ide.resurscentrum.se> <443FB763.3010808@vineyard.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 14, 2006 at 10:53:23AM -0400, Eric W. Bates wrote:
> Jon Otterholm wrote:
> > Eric W. Bates wrote:
> >> Andrew Thompson wrote:
> >>> On Wed, Apr 12, 2006 at 02:38:47PM +0200, Jon Otterholm wrote:
> >> We did run into a problem when we had too many (more than 15)
> >> addresses/interfaces on a system.  isc-dhcpd has some table sizes
> >> hard-coded for some data structures. This was solved by patching
> >> common/discover.c (thanks to help from this list).
> >>
> # ***************
> # *** 135,144 ****
> #   {
> #   	struct interface_info *tmp, *ip;
> #   	struct interface_info *last, *next;
> # ! 	/* In order to support more than 15 interfaces we need to
> # ! 	   increase the size of the buffer. */
> # ! 	/* char buf [2048]; */
> # ! 	char buf [32768];
> #   	struct ifconf ic;
> #   	struct ifreq ifr;
> #   	int i;
> # --- 135,141 ----
> #   {
> #   	struct interface_info *tmp, *ip;
> #   	struct interface_info *last, *next;
> # ! 	char buf [2048];
> #   	struct ifconf ic;
> #   	struct ifreq ifr;
> #   	int i;
> 
> I originally got this patch from a kind soul on this list (sadly I
> didn't keep the name).  I do not fully appreciate the consequences of
> patching ISC's code; but our copy has run flawlessly.  We currently have
> 151 IP's on the one machine.

I dont see why this needs to be done, the isc-dhcp ports were updated to
use getifaddrs() two years ago.

http://www.freebsd.org/cgi/query-pr.cgi?pr=61011


Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060415090338.GA43966>