From owner-freebsd-ports@FreeBSD.ORG Wed Nov 27 09:21:04 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E571179A; Wed, 27 Nov 2013 09:21:04 +0000 (UTC) Received: from smtp2-g21.free.fr (unknown [IPv6:2a01:e0c:1:1599:215:17ff:fe31:fb8]) by mx1.freebsd.org (Postfix) with ESMTP id AAA1422E0; Wed, 27 Nov 2013 09:21:02 +0000 (UTC) Received: from oldfaithful.bebik.local (unknown [82.227.164.69]) by smtp2-g21.free.fr (Postfix) with ESMTP id 252CC4B016D; Wed, 27 Nov 2013 10:20:55 +0100 (CET) Received: by oldfaithful.bebik.local (Postfix, from userid 1001) id 113EC892B98; Wed, 27 Nov 2013 10:13:14 +0100 (CET) Date: Wed, 27 Nov 2013 10:13:14 +0100 From: Rodrigo Osorio To: freebsd-ports@freebsd.org, freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: install tcpdump 4.5.1 and libpcap 1.5.1 to filter in/out trafic Message-ID: <20131127091313.GB54435@oldfaithful.bebik.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 09:21:05 -0000 Hi all, In order to take advantage of the new '-P' switch in tcpdump to filter in/out trafic from an interface, I need to move from tcpdump 4.4.0 to 4.5.1. http://www.tcpdump.org/tcpdump_man.html I did a set of minimal patches to upgrade tcpdump and its companion libpcap in ports to the latest versions. In our tests (FreeBSD-i386-9.1-RELEASE and i386-10.0-BETA1) tcpdump 4.5.1 works fine and capture the desired trafic. I didn't perform any test to check if the deinstall/package works, this will come with a future PR. regards -rodrigo http://files.bebik.net/patches/tcpdump-4.5.1/tcpdump-patch http://files.bebik.net/patches/tcpdump-4.5.1/pcap-patch