From owner-freebsd-questions@FreeBSD.ORG Thu May 12 22:02:41 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE09F16A4CE for ; Thu, 12 May 2005 22:02:41 +0000 (GMT) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FD1943D80 for ; Thu, 12 May 2005 22:02:41 +0000 (GMT) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=hercules.codepad.net) by pih-relay05.plus.net with esmtp (Exim) id 1DWLlQ-0000dy-1s for freebsd-questions@freebsd.org; Thu, 12 May 2005 23:02:40 +0100 From: Xian To: freebsd-questions@freebsd.org Date: Thu, 12 May 2005 22:52:03 +0100 User-Agent: KMail/1.8 References: <8ca9329050512094520970fbc@mail.gmail.com> <8f6eba07182b27707ac41b1356cc4f98@mac.com> In-Reply-To: <8f6eba07182b27707ac41b1356cc4f98@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505122252.03159.ian@codepad.net> Subject: Re: Network interface counters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 22:02:41 -0000 On Thursday 12 May 2005 17:57, Charles Swiger wrote: > On May 12, 2005, at 12:45 PM, Chad Morland wrote: > > I was wondering if there is a FreeBSD equivalent to /proc/net/dev from > > Linux. I am trying to get bit and packet counter info from my network > > devices. > > I would use the counters built into IPFW for this purpose, as you can > configure rules or pipes to match any subset of traffic you care > about... netstat -s might be usefull. -- /Xian "TEAMWORK... means never having to take all the blame yourself" unknown author