From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 4 18:40:18 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42F3D37B404 for ; Wed, 4 Jun 2003 18:40:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE3C43FBF for ; Wed, 4 Jun 2003 18:40:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h551eHUp065426 for ; Wed, 4 Jun 2003 18:40:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h551eHCm065425; Wed, 4 Jun 2003 18:40:17 -0700 (PDT) Resent-Date: Wed, 4 Jun 2003 18:40:17 -0700 (PDT) Resent-Message-Id: <200306050140.h551eHCm065425@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lars Eggert Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF39C37B401 for ; Wed, 4 Jun 2003 18:30:09 -0700 (PDT) Received: from nik.isi.edu (nik.isi.edu [128.9.168.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34CBB43FA3 for ; Wed, 4 Jun 2003 18:30:09 -0700 (PDT) (envelope-from larse@nik.isi.edu) Received: from nik.isi.edu (localhost [127.0.0.1]) by nik.isi.edu (8.12.9/8.12.9) with ESMTP id h551U85e099676 for ; Wed, 4 Jun 2003 18:30:08 -0700 (PDT) (envelope-from larse@nik.isi.edu) Received: (from larse@localhost) by nik.isi.edu (8.12.9/8.12.9/Submit) id h551U838099675; Wed, 4 Jun 2003 18:30:08 -0700 (PDT) Message-Id: <200306050130.h551U838099675@nik.isi.edu> Date: Wed, 4 Jun 2003 18:30:08 -0700 (PDT) From: Lars Eggert To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/52956: Bugfix: net/p5-NetPacket X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lars Eggert List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 01:40:18 -0000 >Number: 52956 >Category: ports >Synopsis: Bugfix: net/p5-NetPacket >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 04 18:40:16 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Lars Eggert >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD nik.isi.edu 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Jun 3 10:18:46 PDT 2003 root@nik.isi.edu:/usr/obj/usr/src/sys/KERNEL-1.23 i386 >Description: NetPacket::IP calculates the IP checksum incorrectly when sending packets. The attached patch fixes this, has been submitted to the authors and verified by them to fix the problem. > From: Stephanie Wehner <_@r4k.net> > To: Lars Eggert > Subject: Re: NetPacket::IP bug (with patch) > > Hi Lars, > > Sorry for the late reply, quite busy lately :( > > > I think there's a small bug in NetPacket::IP - the wrong "offset" > > variable is used when encoding a packet (see the included patch). Other > > Thanks for the patch ! I'll incorporate it tomorrow or on tuesday > (along with some additions people submitted). I'll let you know > when the new version's on cpan. > > bye, > Stephanie >How-To-Repeat: >Fix: diff -u -N -r np/Makefile p5-NetPacket/Makefile --- np/Makefile Wed Jun 4 18:17:18 2003 +++ p5-NetPacket/Makefile Wed Jun 4 18:19:25 2003 @@ -7,6 +7,7 @@ PORTNAME= NetPacket PORTVERSION= 0.03 +PORTREVISION= 1 CATEGORIES= net perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= NetPacket diff -u -N -r np/files/patch-aa p5-NetPacket/files/patch-aa --- np/files/patch-aa Wed Dec 31 16:00:00 1969 +++ p5-NetPacket/files/patch-aa Wed Jun 4 18:18:37 2003 @@ -0,0 +1,12 @@ +--- NetPacket/IP.pm Fri Jan 11 20:10:25 2002 ++++ NetPacket/IP.pm.new Fri Jan 11 20:10:35 2002 +@@ -224,7 +224,7 @@ + + # make the entire packet + $packet = pack('CCnnnCCna4a4a*a*', $tmp, $self->{tos},$self->{len}, +- $self->{id}, $self->{foffset}, $self->{ttl}, $self->{proto}, ++ $self->{id}, $offset, $self->{ttl}, $self->{proto}, + $self->{cksum}, $src_ip, $dest_ip, $self->{options}, + $self->{data}); + + >Release-Note: >Audit-Trail: >Unformatted: