netfilter: nf_tables: fix port natting in little endian archs
authorleroy christophe <christophe.leroy@c-s.fr>
Mon, 22 Dec 2014 12:20:14 +0000 (13:20 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 Dec 2014 14:34:28 +0000 (15:34 +0100)
commit7b5bca4676c7cd78b0f1ef8a132ef3ba9863c9ef
treef466b44988780926ca70fab588acc1b5b3c2c21b
parent70314fc684b3406960dfc2bd1a6af7d9f82f0131
netfilter: nf_tables: fix port natting in little endian archs

Make sure this fetches 16-bits port data from the register.
Remove casting to make sparse happy, not needed anymore.

Signed-off-by: leroy christophe <christophe.leroy@c-s.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nft_redir_ipv4.c
net/ipv6/netfilter/nft_redir_ipv6.c
net/netfilter/nft_nat.c