Skip to contentSkip to conversation

Packet Delay using Netfilter

DISCUSSION Srinivas Krishnan 2 participants 2 messages Apr 20, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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_ROUTING hook.

Why are you not doing this on the qdisc layer?