From owner-freebsd-stable Fri Dec 14 13:35:38 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mikea.ath.cx (okc-65-30-192-11.mmcable.com [65.30.192.11]) by hub.freebsd.org (Postfix) with ESMTP id 77C7737B405 for ; Fri, 14 Dec 2001 13:35:32 -0800 (PST) Received: (from mikea@localhost) by mikea.ath.cx (8.11.6/8.11.1) id fBELZVj62537 for freebsd-stable@FreeBSD.ORG; Fri, 14 Dec 2001 15:35:31 -0600 (CST) (envelope-from mikea) Date: Fri, 14 Dec 2001 15:35:31 -0600 From: mikea To: freebsd-stable@FreeBSD.ORG Subject: Re: Networking Question Message-ID: <20011214153531.A62514@mikea.ath.cx> References: <20011214153114.A47574@edgemaster.zombie.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011214153114.A47574@edgemaster.zombie.org>; from smkelly@zombie.org on Fri, Dec 14, 2001 at 03:31:14PM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 14, 2001 at 03:31:14PM -0600, Sean Kelly wrote: > I've noticed that various versions of Windows can detect whether my > ethernet card has a "live" connection. If I pull the cable or if the other > end goes dead, Windows knows about it. I've been looking at making a > firewall/NAT machine using FreeBSD and was wondering if there is any way to > determine this situation in FreeBSD. It would be nice to be able to emit a > beep or update an internal stats website when my router's connection goes > dead. Steal the code in ifconfig that determines whether the interface has carrier or not, and daemonize it or something. -- Mike Andrews mikea@mikea.ath.cx Tired old sysadmin since 1964 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message