summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/redirect.t.json
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-04-04 15:30:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-04-05 15:57:17 +0200
commit2c227f00f0df9552b786080a8fd27c6a360e5828 (patch)
tree425dfb781fd94cea1678045f8cfcd8f7b6ef5647 /tests/py/ip/redirect.t.json
parent17a39cb0b082fe5117801d0b1a41407eec7b776c (diff)
evaluate: bogus missing transport protocol
Users have to specify a transport protocol match such as meta l4proto tcp before the redirect statement, even if the redirect statement already implicitly refers to the transport protocol, for instance: test.nft:3:16-53: Error: transport protocol mapping is only valid after transport protocol match redirect to :tcp dport map { 83 : 8083, 84 : 8084 } ~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Evaluate the redirect expression before the mandatory check for the transport protocol match, so protocol context already provides a transport protocol. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/redirect.t.json')
0 files changed, 0 insertions, 0 deletions