Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 08:57:14 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Samuel Tardieu <sam@inf.enst.fr>
Cc:        hackers@freebsd.org
Subject:   Re: Link up/down events
Message-ID:  <Pine.NEB.3.96L.1010110085515.78872B-100000@fledge.watson.org>
In-Reply-To: <2001-01-10-12-03-26%2Btrackit%2Bsam@inf.enst.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Jan 2001, Samuel Tardieu wrote:

> Is there a way to be warned about ethernet link up/down events? I have a
> laptop with an internal fxp0 interface, and I'd like to launch/kill
> dhclient whenever the link goes up/down. 

I've been wondering about this also -- Darwin has this, and it's pretty
cool to watch dhclient run as soon as the ethernet cable is stuck in, and
not have to dig around to find out how to pursuade the system to make the
change.  Windows 2000 also appears to do this for appropriate ethernet
cards.  The traditional means of notifying userland processes of
interface/network events has been the routing socket -- presumably we want
to notify on interface arrive / depart, as well as for condition changes,
including a link up / down (differentiated from administrative up / down).

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1010110085515.78872B-100000>