summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/redirect.t
diff options
context:
space:
mode:
authorShivani Bhardwaj <shivanib134@gmail.com>2016-01-29 01:05:37 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2016-01-31 22:47:14 +0100
commit878b97fc251a09c12db489c32b87bf33aa5aa81b (patch)
treec3821368cd82a30a47b638efdcbec14f705d0197 /tests/py/ip6/redirect.t
parent6f137a2db3419e961e41eda28668cd99e8a3f2e2 (diff)
src: netlink_linearize: Fix bug for redirect target
Before this patch, $ sudo nft --debug=netlink add rule ip nat post ip protocol tcp redirect to 100-200 ip nat post [ payload load 1b @ network header + 9 => reg 1 ] [ cmp eq reg 1 0x00000006 ] [ immediate reg 1 0x00006400 ] [ immediate reg 2 0x0000c800 ] [ redir proto_min reg 1 proto_max reg 5 ] <cmdline>:1:1-56: Error: Could not process rule: Invalid argument add rule ip nat post ip protocol tcp redirect to 100-200 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ After this patch, $ sudo nft --debug=netlink add rule ip nat post ip protocol tcp redirect to 100-200 ip nat post [ payload load 1b @ network header + 9 => reg 1 ] [ cmp eq reg 1 0x00000006 ] [ immediate reg 1 0x00006400 ] [ immediate reg 2 0x0000c800 ] [ redir proto_min reg 1 proto_max reg 2 ] Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip6/redirect.t')
0 files changed, 0 insertions, 0 deletions