]> bbs.cooldavid.org Git - net-next-2.6.git/commit
netfilter: nf_nat: add nf_nat_csum()
authorChangli Gao <xiaosuo@gmail.com>
Wed, 15 Sep 2010 17:24:50 +0000 (19:24 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 15 Sep 2010 17:24:50 +0000 (19:24 +0200)
commit0abee5260babe0a12d468b485a28336551697925
treee7da178d0eb31ef4bd69ed6f63629d0eb7a19407
parent068e8a30320e33b1f8d15df9eaef84f04258f96d
netfilter: nf_nat: add nf_nat_csum()

Add a static function nf_nat_csum() to replace the duplicate code in
nf_nat_mangle_udp_packet() and __nf_nat_mangle_tcp_packet().

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/nf_nat_helper.c