OSDN Git Service

netfilter: nft_tproxy: Fix port selector on Big Endian
authorPhil Sutter <phil@nwl.cc>
Tue, 17 Dec 2019 23:59:29 +0000 (00:59 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Dec 2019 01:12:28 +0000 (02:12 +0100)
commit8cb4ec44de42b99b92399b4d1daf3dc430ed0186
treefc8591c51a73d48bd2b0d2f6787449219bc22cc8
parente608f631f0ba5f1fc5ee2e260a3a35d13107cbfe
netfilter: nft_tproxy: Fix port selector on Big Endian

On Big Endian architectures, u16 port value was extracted from the wrong
parts of u32 sreg_port, just like commit 10596608c4d62 ("netfilter:
nf_tables: fix mismatch in big-endian system") describes.

Fixes: 4ed8eb6570a49 ("netfilter: nf_tables: Add native tproxy support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
Acked-by: Máté Eckl <ecklm94@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_tproxy.c