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 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"