From owner-freebsd-net@FreeBSD.ORG Thu Jul 20 14:40:58 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FDDE16A4DA; Thu, 20 Jul 2006 14:40:58 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37A0F43D69; Thu, 20 Jul 2006 14:40:52 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 9CC6E5D44; Thu, 20 Jul 2006 10:40:51 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K8gtimgyFjC1; Thu, 20 Jul 2006 10:40:50 -0400 (EDT) Received: from [192.168.1.251] (pool-68-161-117-245.ny325.east.verizon.net [68.161.117.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 13ACE5D3A; Thu, 20 Jul 2006 10:40:50 -0400 (EDT) Message-ID: <44BF95E9.2030102@mac.com> Date: Thu, 20 Jul 2006 10:40:41 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: gnn@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Packet Construction and Protocol Testing... 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, 20 Jul 2006 14:40:58 -0000 Hi-- gnn@freebsd.org wrote: [ ... ] > The Source Forge page is here: > > http://sourceforge.net/projects/pcs > > and the shar files submitted to get the ports created are now on: > > http://www.freebsd.org/~gnn/pcs.port.shar > http://www.freebsd.org/~gnn/py-pypcap.shar This strikes me as a pretty cool thing, thank you for putting the source out there...given a bit of free time, I'd like to at least test this, if not contribute. [1] :-) The port is missing a dependency on net/py-pcap, BTW, which makes most of the tests fail if one simply downloads the shar file and tries to run them: # cd /tmp/pcs/work/pcs-0.1/tests && python icmpv4test.py ====================================================================== ERROR: Test the underlying __compare__ functionality of the ---------------------------------------------------------------------- Traceback (most recent call last): File "icmpv4test.py", line 81, in test_icmpv4_compare file = PcapConnector("loopping.out") File "../pcs/__init__.py", line 446, in __init__ from pcap import pcap ImportError: No module named pcap [ ... ] -------------- Here's a simple patch for the port Makefile, although maybe someone might want to create a ${PYPCAP} in bsd.python.mk (similar to ${PYXML} and so forth) instead: --- pcs/Makefile.old Thu Jul 20 10:21:45 2006 +++ pcs/Makefile Thu Jul 20 10:33:40 2006 @@ -15,6 +15,8 @@ MAINTAINER= gnn@FreeBSD.org COMMENT= Protocol Construction Set +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pcap.py:${PORTSDIR}/net/py-pcap + USE_PYTHON= yes USE_PYDISTUTILS= yes USE_PYTHON_PREFIX= yes -- -Chuck [1]: If I could only get net/py-pcap to build, I might be able to do a little more... :-)