netfilter: xt_nat: fix incorrect hooks for SNAT and DNAT targets
authorElison Niven <elison.niven@cyberoam.com>
Mon, 15 Oct 2012 00:44:48 +0000 (00:44 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Oct 2012 11:39:12 +0000 (13:39 +0200)
commit939ccba437da1726a5c8a5b702a47d473da927ae
tree0eaf9c653e34ddd5f4d3edb06f905e4be6962477
parent0153d5a810ab335aae86acfe69722a7efc1db536
netfilter: xt_nat: fix incorrect hooks for SNAT and DNAT targets

In (c7232c9 netfilter: add protocol independent NAT core), the
hooks were accidentally modified:

SNAT hooks are POST_ROUTING and LOCAL_IN (before it was LOCAL_OUT).
DNAT hooks are PRE_ROUTING and LOCAL_OUT (before it was LOCAL_IN).

Signed-off-by: Elison Niven <elison.niven@cyberoam.com>
Signed-off-by: Sanket Shah <sanket.shah@cyberoam.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_nat.c