* how to replace a skb within NF_IP_LOCAL_OUT hook
@ 2005-11-02 8:34 jywang
0 siblings, 0 replies; only message in thread
From: jywang @ 2005-11-02 8:34 UTC (permalink / raw)
To: linux-kernel
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-02 8:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-02 8:34 how to replace a skb within NF_IP_LOCAL_OUT hook jywang
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®