Skip to contentSkip to conversation

Netfilter Question - NF_QUEUE

DISCUSSION Sílvia Andreia Oliveira Rocha 2 participants 2 messages Jul 9, 2004 – Jul 11, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

My name is Sílvia and I'm beginning to study the NetFilter Architecture.

I've got a very simple question, I'd like to know more about the NF_QUEUE hook.

It is said that this hook is usually used to pass information to UserSpace, my question is, if somewhere a package is "popped" from the skb and a NF_QUEUE isn't invoked afterwords is the package lost? I guess it isn't, because a package is only drops on a NF_DROP verdict, but I'm getting rather confused studying an application that uses NetFilter.

Thank U a lot for your attention,
Sílvia

#1 lore raw
Quoted 5 lines · Sílvia Andreia Oliveira Rocha

It is said that this hook is usually used to pass information to UserSpace, my question is, if somewhere a package is "popped" from the skb and a NF_QUEUE isn't invoked afterwords is the package lost? I guess it isn't, because a package is only drops on a NF_DROP verdict, but I'm getting rather confused studying an application that uses NetFilter.

If the number of queued packets grow above ip_queue_maxlen (default 1024) due to the userspace application not keeping up with the packet rate for one reason or another then new packets gets dropped with a warning in the kernel log.

Regards
Henrik