From: Akshay Kawale <linux781@gmail.com>
To: netfilter@lists.netfilter.org
Subject: How can I add data to a packet before sending it?
Date: Sat, 2 Apr 2005 21:03:19 -0500 [thread overview]
Message-ID: <72252ed0504021803e5b298@mail.gmail.com> (raw)
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
reply other threads:[~2005-04-03 2:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72252ed0504021803e5b298@mail.gmail.com \
--to=linux781@gmail.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.