Date: Thu, 02 Oct 1997 19:25:13 -0400 From: Matt Thomas <matt@3am-software.com> To: Tom <tom@uniserve.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Which PCI Ethernet card is best for FreeBSD-current? Message-ID: <3.0.3.32.19971002192513.006f42cc@ranier.altavista-software.com> In-Reply-To: <Pine.BSF.3.96.971002161025.24987M-100000@shell.uniserve.co m> References: <3.0.3.32.19971002185741.0305e1c4@ranier.altavista-software.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 04:21 PM 10/2/97 -0700, Tom wrote:
>
>On Thu, 2 Oct 1997, Matt Thomas wrote:
>
>> FWIW, the ifmedia already supports this. Depending on if the
>> link is up, media will have IFM_ALIVE set or clear.
>
> But that won't translate into a UP or DOWN state? Somehow gated gets
>the interface states (via routing socket?). How can I read that state
>via a user-mode program?
Use the SIOCGIFMEDIA ioctl.
> I think it would be great to add some indication to ifconfig to indicate
>that the physical layer is up.
ifconfig -m de0
de1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:00:f8:02:c0:cc
media: autoselect (10baseT/UTP) status: active
supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP
(notice the status: alive)
--
Matt Thomas Internet: matt@3am-software.com
3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt.html
Nashua, NH Disclaimer: I disavow all knowledge of this message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.3.32.19971002192513.006f42cc>
