netfilter: nf_nat_ftp: remove (*mangle[]) array and functions, use %pI4
authorJoe Perches <joe@perches.com>
Mon, 11 Jan 2010 10:49:51 +0000 (11:49 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 11 Jan 2010 10:49:51 +0000 (11:49 +0100)
commitc299bd53aa2616e6afc304b4f848186af3b3a881
tree5f9eb0fef6e6e607adbfd0f19df4816868791e33
parent6f7edb4881bf51300060e89915926e070ace8c4d
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 <joe@perches.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/nf_nat_ftp.c