* 2.6.26:in NF_BR_FORWARD hook why packet dissapeared?
@ 2008-09-17 13:13 zheng yong
0 siblings, 0 replies; only message in thread
From: zheng yong @ 2008-09-17 13:13 UTC (permalink / raw)
To: linux-kernel
in NF_BR_FORWARD hook function,
I get a sk_buff * parameter called skb.
I use the skb and skb_copy_expand to create a new
sk_buff * called new_skb,
the new_skb has the same ip header and tcp header with
skb, except recompute ip/tcp checksum,
then send it out using dev_queue_xmit,
dev_queue_xmit returnes successful(returnes 0),
and in NF_BR_FORWARD hook function I return NF_DROP.
but at the peer, can not receive the packet sent.
I use ethereal, sometimes, I will receive some
"Ethernet II" packets, but their ethernet addresses
are wrong, It seems they were filled using the first
12 bytes of ip header.
why?
___________________________________________________________
雅虎邮箱,您的终生邮箱!
http://cn.mail.yahoo.com/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-17 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17 13:13 2.6.26:in NF_BR_FORWARD hook why packet dissapeared? zheng yong
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®