Skip to contentSkip to conversation

How to pass packets up to protocols layer ?

DISCUSSION Andi Kleen 2 participants 2 messages Jun 28, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw

Either use netif_rx()/ for complete packets that should go through the whole stack again or nf_reinject() from your hook.

-Andi

#2 lore raw
In reply to a message not in the archive
Quoted 2 lines

Either use netif_rx()/ for complete packets that should go through the whole stack again or nf_reinject() from your hook.

Is it really possible to call netif_rx from netfilter hook? I try to call netif_rx(skb) from PRE_ROUTING hook (returning NF_STOLEN) and kernel immediately crashes, even if I did nothing with skb at all. Why it happens this way?

Signature · 1 line
Alexey