Subject: Re: How to detect net cable plug-in
To: None <tech-net@NetBSD.org>
From: David Young <firstname.lastname@example.org>
Date: 10/15/2003 03:15:26
On Tue, Oct 14, 2003 at 08:56:45PM -0500, Nate Hill wrote:
> On Tue October 14 2003 17:19, der Mouse wrote:
> > > The problem is that link status is not really one of the exported
> > > attributes of net interfaces
> > Something like it must be; ifconfig prints things like "no carrier"
> > when there's no carrier - it has to get that from somewhere....
> Of course it's available, the problem is the manner that one should
> employ to obtain such information. This problem exists because there
> have never been any standards associated with such a thing (as far as
> I know), the homogeneity found in network interfaces today is
> unprecedented. The best that can be done in this situation is an
> internally consistent interface to networking data structures and
How about adding the selected media word and media status word to struct
if_data and calling rt_ifmsg on media changes? I guess that RTM_VERSION
should be bumped with this change.
David Young OJC Technologies
email@example.com Urbana, IL * (217) 278-3933