From: "jywang" <jywang@cnic.cn>
To: <linux-kernel@vger.kernel.org>
Subject: how to replace a skb within NF_IP_LOCAL_OUT hook
Date: Wed, 2 Nov 2005 16:34:55 +0800 [thread overview]
Message-ID: <01bd01c5df88$4d6d9260$060ae29f@javaboy> (raw)
Hi,all
i do it as below.
cp = skb_copy_expand(*skb, skb_headroom(*skb)+12, skb_tailroom(*skb),
GFP_ATOMIC);
cp->csum = (*skb)->csum;
skb_set_owner_w(cp, (*skb)->sk);
*skb = cp;
return NF_ACCEPT;
but it can't work perfectly.
How?
reply other threads:[~2005-11-02 8:35 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='01bd01c5df88$4d6d9260$060ae29f@javaboy' \
--to=jywang@cnic.cn \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®