linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "jywang" <jywang@cnic.cn>
To: linux-c-programming@vger.kernel.org
Subject: how to replace a skb in NF_IP_LOCAL_OUT hook
Date: Fri, 4 Nov 2005 08:27:26 +0800	[thread overview]
Message-ID: <00e301c5e0d6$888751c0$060ae29f@javaboy> (raw)

> i want to replace the skb with my own, and in my skb i will change the
data
> in it.
>
> How to do it?
>
> what i do as below:
>
> cp = skb_copy_expand(*skb, skb_headroom(*skb)+12, skb_tailroom(*skb),
GFP_ATOMIC);
> //change the skb->data here
> skb_set_owner_w(cp, (*skb)->sk);
> *skb = cp;
> return NF_ACCEPT;
>
> but, it can't work.




             reply	other threads:[~2005-11-04  0:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-04  0:27 jywang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-04  0:20 how to replace a skb in NF_IP_LOCAL_OUT hook jywang

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='00e301c5e0d6$888751c0$060ae29f@javaboy' \
    --to=jywang@cnic.cn \
    --cc=linux-c-programming@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;
as well as URLs for NNTP newsgroup(s).