Skip to contentSkip to conversation

cthelper's and default QueueLen -- bug?

DISCUSSION Chas Williams III 2 participants 2 messages May 7, 2015 – May 17, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

conntracked.conf states that the default QueueLen is 1024.

# Maximum number of packets waiting in the queue to receive # a verdict from user-space. Default is 1024.

However, if the config file doesn't specify a queue length, the default length is zero (due to the calloc() allocation). The queue always seems to be pushed up to the kernel regardless in cthelper_nfqueue_setup() so the kernel default is overwritten.

#1 lore raw
Quoted 9 lines · Chas Williams III

conntracked.conf states that the default QueueLen is 1024.

# Maximum number of packets waiting in the queue to receive # a verdict from user-space. Default is 1024.

However, if the config file doesn't specify a queue length, the default length is zero (due to the calloc() allocation). The queue always seems to be pushed up to the kernel regardless in cthelper_nfqueue_setup() so the kernel default is overwritten.

Would you send a patch that I can apply via git am to fix this?

Thanks for reporting.