* How can I add data to a packet before sending it?
@ 2005-04-03 2:03 Akshay Kawale
0 siblings, 0 replies; only message in thread
From: Akshay Kawale @ 2005-04-03 2:03 UTC (permalink / raw)
To: netfilter
Hi,
I am trying to add data to a packet by expanding the tailroom using
skb_copy_expand()
I am using the following statements:
*skb = skb_copy_expand(*skb, 0, 256, GFP_ATOMIC);
I am calling this in the NF_IP_LOCAL_OUT hook, and does not give any
errors if I drop the packet in the NF_IP_POST_ROUTING hook.
However if I don't drop the packet, I get a kernel panic.
I am running Fedora Core 1.
Please let me know how I can achieve this.
Thanks.
- Akshay
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-03 2:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03 2:03 How can I add data to a packet before sending it? Akshay Kawale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox