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@xxxxxx> INL: http://www.inl.fr/ NuFW: http://www.nufw.org/ EdenWall: http://www.edenwall.com/
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=