[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netfilter-devel
Subject:    Re: QUEUE, large udp message failure
From:       Russell Miller <rmiller () duskglow ! com>
Date:       2004-05-06 20:28:09
Message-ID: 200405061528.16034.rmiller () duskglow ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 06 May 2004 14:45, Scott MacKay wrote:

> Where PACKET_SIZE_MAX is 64000.  I have a normal
> ipq_read() loop using the readBuffer and it normally
> works fine, allowing me to do my stuff with the
> packet.
> The problem comes in when I get a large message
> (tested was 24000 bytes).  ipq_read fails.  I added
> some debug and it seems to be in
> ipq_netlink_recvfrom() where the recvfrom() fails with
> errno=105.  Is there some artifical cap on the size of
> a message which can be passed to the QUEUE target?
>
Don't know if this helps, but:

The payload size can be as high as 65536 bytes.  If your buffer is not large 
enough to receive the payload, ipq_read will return with ENOBUFS, which means 
your buffer is not large enough.  I bet if you set PACKET_SIZE_MAX to 65536, 
that problem goes away.

- --Russell

> -Scott
>
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover

- -- 

Russell Miller - rmiller@duskglow.com - Somewhere near Sioux City, IA.
Youth cannot know age, but age is guilty if it forgets youth
    - Professor Dumbledore
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAmp/cURTA4VCI9OARAtGgAJ40xCgkuud9kk/kckX9P8xQVFaQKgCeKCQ2
Pfb+kY6GjEFYoepess6CK98=
=2Hhi
-----END PGP SIGNATURE-----


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic