lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 17 Sep 2008 21:13:25 +0800 (CST)
From:	zheng yong <zy_ball@...oo.com.cn>
To:	linux-kernel@...r.kernel.org
Subject: 2.6.26:in NF_BR_FORWARD hook why packet dissapeared? 

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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ