* Bug in Netfiler_queue when using small packets in 100Mb traffic
@ 2009-01-03 14:38 VPF
2009-01-03 15:31 ` Eric Leblond
2009-01-03 15:32 ` Eric Leblond
0 siblings, 2 replies; 3+ messages in thread
From: VPF @ 2009-01-03 14:38 UTC (permalink / raw)
To: netfilter-devel
Hi, I encountered a problem with the example nfqnl_test.c when I sent
100Mb/s of <200ko packets. The program stopped running quickly and
printed "unbinding from queue 0". It appears that the call recv(fd,
buf, sizeof(buf), 0) returns an error after a few packets. (errno 105
: No buffer space available).
Do you see any solution to this problem?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in Netfiler_queue when using small packets in 100Mb traffic
2009-01-03 14:38 Bug in Netfiler_queue when using small packets in 100Mb traffic VPF
@ 2009-01-03 15:31 ` Eric Leblond
2009-01-03 15:32 ` Eric Leblond
1 sibling, 0 replies; 3+ messages in thread
From: Eric Leblond @ 2009-01-03 15:31 UTC (permalink / raw)
To: VPF; +Cc: netfilter-devel
Hi,
Le samedi 03 janvier 2009 à 15:38 +0100, VPF a écrit :
> Hi, I encountered a problem with the example nfqnl_test.c when I sent
> 100Mb/s of <200ko packets. The program stopped running quickly and
> printed "unbinding from queue 0". It appears that the call recv(fd,
> buf, sizeof(buf), 0) returns an error after a few packets. (errno 105
> : No buffer space available).
>
> Do you see any solution to this problem?
This problem is well known. This is linked with the size of the
nfnetlink buffer. The buffer is too small to contains the data when
trafic is high. A typical workaround is to increase this size.
It can be done by using the nfnl_rcvbufsiz(). The code should looks
like:
nfnl_rcvbufsiz(nfq_nfnlh(h), SIZE);
This workaround may not be sufficient and in this case a unbinding,
rebinding of the queue is needed.
BR,
--
Eric Leblond <eleblond@inl.fr>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
EdenWall: http://www.edenwall.com/
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in Netfiler_queue when using small packets in 100Mb traffic
2009-01-03 14:38 Bug in Netfiler_queue when using small packets in 100Mb traffic VPF
2009-01-03 15:31 ` Eric Leblond
@ 2009-01-03 15:32 ` Eric Leblond
1 sibling, 0 replies; 3+ messages in thread
From: Eric Leblond @ 2009-01-03 15:32 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]
Hi,
Le samedi 03 janvier 2009 à 15:38 +0100, VPF a écrit :
> Hi, I encountered a problem with the example nfqnl_test.c when I sent
> 100Mb/s of <200ko packets. The program stopped running quickly and
> printed "unbinding from queue 0". It appears that the call recv(fd,
> buf, sizeof(buf), 0) returns an error after a few packets. (errno 105
> : No buffer space available).
>
> Do you see any solution to this problem?
This problem is well known. This is linked with the size of the
nfnetlink buffer. The buffer is too small to contains the data when
trafic is high. A typical workaround is to increase this size.
It can be done by using the nfnl_rcvbufsiz(). The code should looks
like:
nfnl_rcvbufsiz(nfq_nfnlh(h), SIZE);
This workaround may not be sufficient and in this case a unbinding,
rebinding of the queue is needed.
BR,
--
Eric Leblond <eleblond@inl.fr>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
EdenWall: http://www.edenwall.com/
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-03 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 14:38 Bug in Netfiler_queue when using small packets in 100Mb traffic VPF
2009-01-03 15:31 ` Eric Leblond
2009-01-03 15:32 ` Eric Leblond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).