ports/net/p5-NetPacket/files/patch-aa
Foxfair Hu fb4a392b9a PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
Update p5-NetPacket to 0.04 [1], and add one patch to fix a bug of
calculating IP checksum [2].

Reviewed by:	maintainer

[1] PR:		53486	(maintainer update)
[2] PR:			52956
    Submitted by:	Lars Eggert <larse@nik.isi.edu>

Since NetPacket 0.04 has the same problem as previous version, we intend
to leave the bugfix in the patch list.
2003-06-21 06:23:40 +00:00

12 lines
447 B
Text

--- 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});