From owner-freebsd-hackers Sun Mar 23 12:48:16 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28028 for hackers-outgoing; Sun, 23 Mar 1997 12:48:16 -0800 (PST) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA28021 for ; Sun, 23 Mar 1997 12:48:11 -0800 (PST) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA22994; Sun, 23 Mar 1997 12:47:40 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022992; Sun Mar 23 12:47:21 1997 Received: (from archie@localhost) by bubba.whistle.com (8.7.5/8.6.12) id MAA27684; Sun, 23 Mar 1997 12:47:19 -0800 (PST) From: Archie Cobbs Message-Id: <199703232047.MAA27684@bubba.whistle.com> Subject: Re: tun0/user ppp lockups? In-Reply-To: <199703230554.FAA18935@awfulhak.demon.co.uk> from Brian Somers at "Mar 23, 97 05:54:11 am" To: brian@awfulhak.demon.co.uk (Brian Somers) Date: Sun, 23 Mar 1997 12:47:19 -0800 (PST) Cc: archie@whistle.com, danny@panda.hilink.com.au, dfr@render.com, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > The only problem is with dynamic IPs. What we really need is the > capability to trigger events that will tell natd (or whatever) > when an interface has been "changed"..... > > Then, natd could sit on an interface and do really smart things > rather than getting confused/restarted with every ifconfig. The "right" way to do this would be to listen to the routing socket, in which case you'll recieve a message whenever any interface goes up/down, renumbers, etc. This is what routed does, for example. Short of that, have natd re-check all the interfaces on a SIGHUP, or perhaps every 10 seconds or so (using ioctl(SIOCGIFCONF) to look at all the interface addresses). -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com