Skip to contentSkip to conversation

stealing packets

DISCUSSION Henrik Nordstrom 1 participant 1 message Nov 24, 2003 1 message not in the archive netfilter

lore
Share & tools
lore

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

#1 lore raw
Quoted 13 lines · Zeeshan Ali

Yeah, i know that but the kernel does'nt like it
when you re-inject the packet sometimes later. E.g this simple test code inside the queue handler function caused a kernel panic:

  static struct sk_buff *next = NULL;
 
  if (next != NULL) {
    nf_reinject (next, info, NF_ACCEPT);
  }

  next = skb;
Quoted 1 line

return 0; /* what should be the return value? */

You need to pass back the same skb,info pair... other than that it should work from what I can tell..

The return code is 0 for success, -ERRNO on error where ERRNO is a suitable error code describing the error.

Quoted 1 line

BTW, my first question still remains unanswered :(

I don't remember what the question was and it has already been deleted from my inbox. Maybe if you repost the questsion. But probably it was outside what I know to answer and is why it was deleted..

Regards
Henrik