From owner-freebsd-stable@FreeBSD.ORG Mon Dec 24 09:24:44 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8CA616A420 for ; Mon, 24 Dec 2007 09:24:44 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9083513C4D1 for ; Mon, 24 Dec 2007 09:24:44 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 239E3124A5; Mon, 24 Dec 2007 11:24:42 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43380-03; Mon, 24 Dec 2007 11:24:39 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id BF85D1249F; Mon, 24 Dec 2007 11:24:39 +0200 (EET) Message-ID: <476F7AD6.40802@bulinfo.net> Date: Mon, 24 Dec 2007 11:24:38 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.9 (X11/20071122) MIME-Version: 1.0 To: Richard Arends References: <476F7581.8080100@bulinfo.net> <20071224091127.GV36624@shell.unixguru.nl> In-Reply-To: <20071224091127.GV36624@shell.unixguru.nl> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: FreeBSD Subject: Re: ifconfig options? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2007 09:24:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Arends wrote: > On Mon, Dec 24, 2007 at 11:01:53AM +0200, Krassimir Slavchev wrote: > >> I need this functionality to get all ethernet interfaces. Is there other >> way to do this? > > netstat -i -f link > > Maybe? > No, this lists all interfaces: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll fxp0 1500 00:90:27:7c:b8:68 8088136 0 6987967 0 0 plip0 1500 0 0 0 0 0 lo0 16384 138029 0 138029 0 0 pfsyn 2020 0 0 0 0 0 pflog 33208 0 0 0 0 0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHb3rWxJBWvpalMpkRAtlNAJ4yXhYcLlF7MyHg0XzKTtjWSqpBcgCfRMUp fOwhWgxe+Uv+y25Rfb1DWD0= =zopa -----END PGP SIGNATURE-----