linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to replace a skb in NF_IP_LOCAL_OUT hook
@ 2005-11-04  0:20 jywang
  0 siblings, 0 replies; 2+ messages in thread
From: jywang @ 2005-11-04  0:20 UTC (permalink / raw)
  To: linux-c-programming

This question belongs on the developer list I think.

On Wed, 2 Nov 2005, jywang wrote:

> 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.




^ permalink raw reply	[flat|nested] 2+ messages in thread
* how to replace a skb in NF_IP_LOCAL_OUT hook
@ 2005-11-04  0:27 jywang
  0 siblings, 0 replies; 2+ messages in thread
From: jywang @ 2005-11-04  0:27 UTC (permalink / raw)
  To: linux-c-programming

> 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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-04  0:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-04  0:20 how to replace a skb in NF_IP_LOCAL_OUT hook jywang
  -- strict thread matches above, loose matches on Subject: below --
2005-11-04  0:27 jywang

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).