Re: nfqueue buf size for recv()

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

 



Oleg <lego12239@xxxxxxxxx> wrote:
> Can anybody tell me how can i determine a right buf size for recv()
> in libnetfilter_queue program.
> 
> http://www.netfilter.org/projects/libnetfilter_queue/doxygen/group__Queue.html#gae36aee5b74d0c88d2f8530e356f68b79
> 
> tells nothing about this.

I'd suggest a 80k buffer to be on safe side.

You need to be able to hold the size of one packet, which could be up to
64k depending on options/mtu) plus all the extra netlink meta data.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux