Re: hook in kernel module question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Vineet Kumar <vikumar@xxxxxxxxxxx> wrote:
> I have a kernel module which has an inbound
> netfilter hook, inhook().
> I have it set to PRE_ROUTING. From my hook, I want
> to be able to pass each
> received packet to function foo(),
> which is then to pass it on to IP/TCP after a
> variable delay. my hook,
> inhook() then returns NF_STOLEN.

  Returning NF_QUEUE allows you to get the packet into
userspace and you can later reinject it, which then
goes ahead normally.

> 
> Is there an easy way to do this?
> Returning an NF_ACCEPT is not good enough because
> foo() queues packets and
> decides when to send them on to IP/TCP.
> I cannot call ip_rcv_finish() from foo() because its
> not exported.


=====
Regards,
Kiran Kumar Immidi

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux