From owner-freebsd-current Thu Oct 2 16:28:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA01111 for current-outgoing; Thu, 2 Oct 1997 16:28:13 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA01099 for ; Thu, 2 Oct 1997 16:28:05 -0700 (PDT) Received: from chop.cdsnet.net (chop.cdsnet.net [204.118.244.3]) by mail.cdsnet.net (8.8.6/8.8.6) with ESMTP id QAA06691; Thu, 2 Oct 1997 16:28:03 -0700 (PDT) Received: from nowin (1Cust76.max3.boston.ma.ms.uu.net [153.35.70.204]) by chop.cdsnet.net (8.8.5/8.8.5) with SMTP id QAA11505; Thu, 2 Oct 1997 16:28:00 -0700 (PDT) Message-Id: <3.0.3.32.19971002192513.006f42cc@ranier.altavista-software.com> X-Sender: 3ampop@ranier.altavista-software.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Thu, 02 Oct 1997 19:25:13 -0400 To: Tom From: Matt Thomas Subject: Re: Which PCI Ethernet card is best for FreeBSD-current? Cc: freebsd-current@FreeBSD.ORG In-Reply-To: References: <3.0.3.32.19971002185741.0305e1c4@ranier.altavista-software.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 mtu 1500 address: 00:00:f8:02:c0:cc media: autoselect (10baseT/UTP) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 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