From owner-freebsd-stable Fri Dec 14 16: 1:41 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 5EBC537B405 for ; Fri, 14 Dec 2001 16:01:38 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.3) with ESMTP id fBF07gb04854; Fri, 14 Dec 2001 16:07:42 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200112150007.fBF07gb04854@mass.dis.org> To: mikea Cc: freebsd-stable@FreeBSD.ORG, msmith@mass.dis.org Subject: Re: Networking Question In-Reply-To: Message from mikea of "Fri, 14 Dec 2001 15:35:31 CST." <20011214153531.A62514@mikea.ath.cx> Date: Fri, 14 Dec 2001 16:07:42 -0800 From: Mike Smith 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. ... but bear in mind that all this will tell you is whether you have a carrier to the other end of the cable. If you care about your "connection" as a whole, you need more than this. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message