Packet Delay using Netfilter
Hi ,
I am trying to create a module that adds delay to certain egress packets. I am using the NF_IP_POST_ROUTING hook. The question I had was that can I set NF_STOLEN and call dev_queue_xmit( ) directly or should I call dev_hard_xmit ( ). the reason I am setting NF_STOLEN, is because I do not want netfilter to wait for tons of NF_ACCEPT because I will be holding those packets in my queue. is that a flawed argument and can I just reinject the packets into the processing by calling NF_ACCEPT?
Also if I directly send to the device are there are fields/operations I need to set before sending the packet out ?
any help will be greatly appreciated
-shrin
Quoted 2 lines · Srinivas Krishnan
I am trying to create a module that adds delay to certain egress packets. I am using the
NF_IP_POST_ROUTINGhook.
Why are you not doing this on the qdisc layer?