From: Joe Perches Date: Mon, 11 Jan 2010 10:49:51 +0000 (+0100) Subject: netfilter: nf_nat_ftp: remove (*mangle[]) array and functions, use %pI4 X-Git-Tag: v2.6.34-rc1~233^2~303^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c299bd53aa2616e6afc304b4f848186af3b3a881;p=pandora-kernel.git netfilter: nf_nat_ftp: remove (*mangle[]) array and functions, use %pI4 These functions merely exist to format a buffer and call nf_nat_mangle_tcp_packet. Format the buffer and perform the call in nf_nat_ftp instead. Use %pI4 for the IP address. Saves ~600 bytes of text old: $ size net/ipv4/netfilter/nf_nat_ftp.o text data bss dec hex filename 2187 160 408 2755 ac3 net/ipv4/netfilter/nf_nat_ftp.o new: $ size net/ipv4/netfilter/nf_nat_ftp.o text data bss dec hex filename 1532 112 288 1932 78c net/ipv4/netfilter/nf_nat_ftp.o Signed-off-by: Joe Perches Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed