From owner-freebsd-net Wed Mar 27 13:40:17 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id E28AB37B400 for ; Wed, 27 Mar 2002 13:40:10 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020327214010.LBFL2626.rwcrmhc51.attbi.com@InterJet.elischer.org>; Wed, 27 Mar 2002 21:40:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA48774; Wed, 27 Mar 2002 13:37:31 -0800 (PST) Date: Wed, 27 Mar 2002 13:37:30 -0800 (PST) From: Julian Elischer To: Gavin Atkinson Cc: freebsd-net@freebsd.org Subject: Re: How to detect link on unconfigered interface? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org you can bring it 'up' without giving it an IP address e.g. ifconfig ed0 up On Wed, 27 Mar 2002, Gavin Atkinson wrote: > > Hi, > > I have a problem I have so far been unsuccessful in solving. I want to > detect if a particular network interface has a link, before this interface > has an IP address configured. > > From looking at the source to ifconfig, which successfully does this, the > attached code should work, but doesn't. Can anyone help me please? > > Thanks, > > Gvain > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message