Date: Fri, 14 Dec 2001 16:07:42 -0800 From: Mike Smith <msmith@freebsd.org> To: mikea <mikea@mikea.ath.cx> Cc: freebsd-stable@FreeBSD.ORG, msmith@mass.dis.org Subject: Re: Networking Question Message-ID: <200112150007.fBF07gb04854@mass.dis.org> In-Reply-To: Message from mikea <mikea@mikea.ath.cx> of "Fri, 14 Dec 2001 15:35:31 CST." <20011214153531.A62514@mikea.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112150007.fBF07gb04854>