From owner-freebsd-net@FreeBSD.ORG Thu Jul 26 09:40:14 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4572106566B for ; Thu, 26 Jul 2012 09:40:14 +0000 (UTC) (envelope-from mah.s.369@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 696FD8FC0C for ; Thu, 26 Jul 2012 09:40:14 +0000 (UTC) Received: by qabg1 with SMTP id g1so3364932qab.13 for ; Thu, 26 Jul 2012 02:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T/5NlLSbFAtSHs+GHqm7Uqzdl5A9PtJv56nmRrrWees=; b=PlW9xpzB9k7EhfOgFuo9YTLNbjC44fcFmH5mfGGRqinaAmZNjX9JgOl9kTJjxG43AL nIhDBpWdz3zynHnh/OvoIoebm7tRHlKoIfjxz+mAruaCKxrhAL3u1R28hgVi5wJpXBea v5UiJjs498MlUzZoC8zZa/ZgvQZBpox9GQhLPh++XYQ9QE4nGmPW+92ru0VfArGA731l tZfgoEu0xHIYw7rb0qDEq5ULznO6xxHpxf9xMPcVrCPynBu4NiFhMcWG791tpWwXm7f5 ZxRog9oH7DufuuiU3DFna7k1iPWvs8XEqNrkER+z087rIrzpWO5vF8FS69ein/ZC39UY VWiQ== MIME-Version: 1.0 Received: by 10.224.221.143 with SMTP id ic15mr1965258qab.51.1343295607905; Thu, 26 Jul 2012 02:40:07 -0700 (PDT) Received: by 10.49.86.196 with HTTP; Thu, 26 Jul 2012 02:40:07 -0700 (PDT) In-Reply-To: <20120726092549.GA3153@insomnia.benzedrine.cx> References: <20120726092549.GA3153@insomnia.benzedrine.cx> Date: Thu, 26 Jul 2012 09:40:07 +0000 Message-ID: From: m s To: Daniel Hartmeier Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: tcpdump in freebsd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 09:40:14 -0000 thank you for your help. I will test it On Thu, Jul 26, 2012 at 9:25 AM, Daniel Hartmeier wrote: > On Thu, Jul 26, 2012 at 08:35:29AM +0000, m s wrote: > > > hi all. I want to use tcpdump just for input or just for outout > > packet.isthis possible ? if no is there any other command that do > > this? > > If filtering by source MAC (or IP) is not enough, you can patch tcpdump > to hack in '-a in|out' using pcap_setdirection(). > > HTH, > Daniel >