]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fa95cec03d4eda0db328fc5a75f1fc0af75659a
tree5f9eb0fef6e6e607adbfd0f19df4816868791e33
parent471a7f10380a993fb265fccbf0f43d7bb41f4311
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