Re: Default netfilter kernel buffer size?

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

 



I too have a question in regards to this,

Ive been facing the same problem with some code of my own. I am using
a nf netlink socket via libpcap (nflog:{ID}) and experiencing ENOBUFS
during peaks.

I attempted to use
setsockopt(pcap_fileno(p), SOL_NETLINK, NETLINK_NO_ENOBUFS, &(int){1},
sizeof(int));

before

pcap_activate(p);

without success. Suggestions? Cade, did you resolve the problem?

On Mon, Jun 16, 2014 at 11:28 PM, Cade Robinson <cade.robinson@xxxxxxxxx> wrote:
>> Please, have a look at the documentation:
>
>> http://www.netfilter.org/projects/libnetfilter_queue/doxygen/
>
>> It refers to this problem.
>
> Thanks - that gives me more ideas of what to do if my current fix doesn't
> work.
> What I have done is added code to set queue length using
> nfq_set_queue_maxlen.
> This seems to have worked as well so far.
>
> But what I am looking for and can't find is what is the default queue length
> and is there a /proc file that shows the current length?
>
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux