nfqueue buf size for recv()
Hi, all.
Can anybody tell me how can i determine a right buf size for recv() in libnetfilter_queue program.
tells nothing about this.
P.S. sorry, for noob question.P.P.S. sorry, if i chosen a wrong list for my question.
Signature · 1 line
Олег Неманов (Oleg Nemanov)
Florian Westphal
maintainerQuoted 6 lines · Oleg
Can anybody tell me how can i determine a right buf size for
recv()inlibnetfilter_queueprogram.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.
Quoted 9 lines · Florian Westphal
Quoted 6 lines · Oleg
Can anybody tell me how can i determine a right buf size for
recv()inlibnetfilter_queueprogram.tells nothing about this.
I'd suggest a 80k buffer to be on safe side.
My computations give my 70k buffer, but 80k is also suitable. Thanks.
Signature · 1 line
Олег Неманов (Oleg Nemanov)