Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the NetPacket CPAN distribution.

Report information
The Basics
Id: 21945
Status: resolved
Priority: 0/
Queue: NetPacket

People
Owner: Nobody in particular
Requestors: alex [...] yalab.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: NetPacket::TCP wrong data length
Date: Sat, 7 Oct 2006 13:53:32 +0200
To: bug-NetPacket [...] rt.cpan.org
From: Alex <alex [...] yalab.net>
The ethernet layer may add trailer, currently TCP module take up this trailer as TCP data, this is wrong. This is the way that work for me: $tcp_data_len = $ip->{len} - (($ip->{hlen} + $tcp->{hlen})*4); Regards. Alex
On Sat Oct 07 07:53:50 2006, alex@yalab.net wrote: Show quoted text
> The ethernet layer may add trailer, currently TCP module take up this > trailer > as TCP data, this is wrong. > This is the way that work for me: > $tcp_data_len = $ip->{len} - (($ip->{hlen} + $tcp->{hlen})*4);
I think the issue is fixed now. The IP layer will truncate its payload in function of its length parameter, and so the TCP layer will not receive the trailing noise. I'll close the issue for now. If you still see an issue, please feel free to raise it again.