Google
  Web www.spinics.net

Re: ipq_get_packet returns wrong data_len value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hello,

On Tuesday, 2008 July 15 at 15:07:30 -0700, Curtis Wyatt wrote:
> Hey guys,
> 
> I'm new at this, but does anyone know of a case where ipq_get_packet
> would return a data_len value of 671088640.  I have a toy program that
> works just fine.  However, when I tried to copy it into another
> program I receive these kinds of data lengths.  The buffer is returned
> w/ the packet contents correctly, but I can't look at it because I
> don't know how big it is, because of the corrupt data length.  Any
> suggestions?  Thank you.


Please use libnetfilter_queue. ip_queue is deprecated since at least two
years.

About your problem :
	ntohl(671088640) = 40

BR,
-- 
Eric Leblond
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/

Attachment: signature.asc
Description: Digital signature


[Linux Netfilter Development]     [Linux Kernel Development]     [TCP/IP Books]     [Linux Resources]     [LARTC]     [Home]     [Bugtraq]     [Consulting]     [Free Internet Dating]     [Yosemite Forum]     [Photo]

Powered by Linux