Send a packet at a specific time
Hi! I'm developing a kernel module that should run on a pc configured as a bridge. It should look for every packet that pass on the bridge and, only for some packets, stop them and then let them go only at a specific time.
The amount of time that these packets needs to hold is about some milliseconds.
My idea was to filter packets with an hook on POST_ROUTING and look for packets that needs to be "temporary blocked". For these packets I'm going to return NF_QUEUE, and then in my queue hook function make them wait with the msleep function. The Netfilter Hacking HowTo says "This has similar semantics to registering for a hook, except you can block processing the packet", so I understand that my queue hook function can block his execution with an msleep without problems.
Anyway, running this module on a bridge makes it hang, and I must reset the pc. What's wrong? How can I make a work like this?
Thanks
Emanuele Colombo