From owner-freebsd-net@FreeBSD.ORG Mon May 26 01:06:33 2003 Return-Path: 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 4EF6637B405 for ; Mon, 26 May 2003 01:06:33 -0700 (PDT) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 15D1A43F75 for ; Mon, 26 May 2003 01:06:31 -0700 (PDT) (envelope-from bra@fsn.hu) Received: (qmail 8874 invoked from network); 26 May 2003 06:32:24 -0000 Received: from localhost (HELO fsn.hu) (127.0.0.1) by localhost with SMTP; 26 May 2003 06:32:24 -0000 Message-ID: <3ED1CB03.8010005@fsn.hu> Date: Mon, 26 May 2003 10:06:27 +0200 From: Attila Nagy Organization: Free Software Network Foundation - http://www.fsn.hu/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: hu, en-us, en MIME-Version: 1.0 To: "Eric W.Bates" References: <20030526010717.98E8391682@vineyard.net> In-Reply-To: <20030526010717.98E8391682@vineyard.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: net@freebsd.org Subject: Re: A problem with too many network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 08:06:33 -0000 Eric W.Bates wrote: > I'm trying to build a router/filter on FreeBSD 4.8 with 4 real NIC and > 32 vlan interfaces. > Starting dhcpd generates an error after 15 interfaces: > "[interface] not found" > My C skills are lacking so while I'm grovelling thru dhcpd source to > find the problem; I was wondering if anyone knows of a kernel limit I > need to increase? It has nothing to do with FreeBSD. Take a look at common/discover.c to find the following code snippet: void discover_interfaces (state) int state; { struct interface_info *tmp, *ip; struct interface_info *last, *next; char buf [2048]; ^^^^ Increase the size of buf for example to 32768 and it will work. -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415/127 ISOs: http://www.fsn.hu/?f=download cell.: +3630 306 6758