From owner-freebsd-net@FreeBSD.ORG Sat Apr 15 09:03:45 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A168716A400 for ; Sat, 15 Apr 2006 09:03:45 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from dbmail-mx1.orcon.net.nz (loadbalancer1.orcon.net.nz [219.88.242.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1085543D46 for ; Sat, 15 Apr 2006 09:03:44 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received-SPF: none Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by dbmail-mx1.orcon.net.nz (8.13.6/8.13.6/Debian-1) with SMTP id k3F94UPP009656; Sat, 15 Apr 2006 21:04:31 +1200 Received: by heff.fud.org.nz (Postfix, from userid 1001) id BCE1E1CC37; Sat, 15 Apr 2006 21:03:38 +1200 (NZST) Date: Sat, 15 Apr 2006 21:03:38 +1200 From: Andrew Thompson To: "Eric W. Bates" Message-ID: <20060415090338.GA43966@heff.fud.org.nz> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <443FB763.3010808@vineyard.net> User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on dbmail-mx1.orcon.net.nz X-Virus-Status: Clean Cc: freebsd-net@freebsd.org, Jon Otterholm Subject: Re: Sub-interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 09:03:45 -0000 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