Marking an SKB as stolen
Rami Rosen
roszenrami at gmail.com
Wed Jul 3 03:16:26 EDT 2013
Hi, Adel,
The NF_STOLEN return code is not assigned to any sk_buff field as you know.
What would it give you if you could mark somehow the sk_buff with
NF_STOLEN? what do you want to achieve with it ? what is wrong with
how things are now- first calling the other hooks and then the NF_STOLEN?
Best,
Rami Rosen
http://ramirose.wix.com/ramirosen
On Tue, Jul 2, 2013 at 8:30 PM, Adel Qodmani <mpcadel at gmail.com> wrote:
> Hello everyone,
>
> In any Netfilter hook, we return NF_STOLEN to mark that we're handling the
> packet and we'd be responsible for its fate.
>
> My question is, my hook calls several functions on the SKB before knowing if
> I want to steal it or not so is there a way to just mark the SKB itself as
> stolen instead of using the hook NF_STOLEN return code?
>
> Thanks,
> Adel
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
More information about the Kernelnewbies
mailing list