From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 11:43:01 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0583311B for ; Wed, 31 Oct 2012 11:43:01 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 9D2388FC08 for ; Wed, 31 Oct 2012 11:43:00 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q9VBh0bW065617; Wed, 31 Oct 2012 06:43:00 -0500 (CDT) Date: Wed, 31 Oct 2012 06:43:00 -0500 (CDT) From: Robert Bonomi Message-Id: <201210311143.q9VBh0bW065617@mail.r-bonomi.com> To: freebsd-questions@freebsd.org Subject: Re: Access packets directly from NIC In-Reply-To: Cc: corebug@corebug.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 11:43:01 -0000 > From owner-freebsd-questions@freebsd.org Wed Oct 31 06:29:57 2012 > From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= > > Date: Wed, 31 Oct 2012 13:29:05 +0200 > Subject: Re: Access packets directly from NIC > To: Jack Mc Lauren > Cc: FreeBSD Global Users Mailing List > > 2012/10/31 Jack Mc Lauren : > > Hello FreeBSD users ! > > > > How can i access and check packets directly from NIC ? > > > > Regards, Jack > > I believe that easiest way is using tcpdump. Also you should specify what > you mean by 'accessing packets': is it the need to view raw packet data, > or what? :) > tcpdump is _the_ tool for this for command-line use. For access from within a program, 'man bpf'.