From owner-freebsd-net Tue Mar 23 10:15:43 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.promo.de (mail.Promo.DE [194.45.188.65]) by hub.freebsd.org (Postfix) with ESMTP id F3C3614DF8 for ; Tue, 23 Mar 1999 10:15:03 -0800 (PST) (envelope-from stefan.bethke@hanse.de) Received: from d225.promo.de (d225.Promo.DE [194.45.188.225]) by mail.promo.de (8.8.8/8.8.8) with ESMTP id TAA16504 for ; Tue, 23 Mar 1999 19:14:37 +0100 (CET) Date: Tue, 23 Mar 1999 19:14:37 +0100 From: Stefan Bethke To: freebsd-net@freebsd.org Subject: natd fails for -interface Message-ID: <153968.3131205277@d225.promo.de> Originator-Info: login-id=stefan; server=mail X-Mailer: Mulberry (MacOS) [1.4.2, s/n U-301178] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Finally, I found the solution to a nagging problem: For some interfaces, I wasn't able to run natd -interface if0. It started OK, but as the first packet arrived, it said natd: Unknown interface name isp5. (Undefined error: 0) The problem is in SetAliasAddressFromIfName(), where for the SIOCGIFCONF, = a buffer for only 32 entries is allocated: struct ifreq buf[32]; While space for 32 addresses will suffice for a home setup with only two = or three interfaces and a limited number of addresses, I have three machines with multiple ISDN connections which have up to 42 (sic!) interface addresses assigned. I would suggest to up this to at least 128 entries. Alternatively, a method to dynamically size the buffer should be implemented.=B4 If this is considered to be needed, I'll implement it. Thanks, Stefan -- M=FChlendamm 12 | Voice +49-40-256848, +49-177-3504009 D-22089 Hamburg | e-mail: stefan.bethke@hanse.de Germany | stb@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message