]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink_delinearize: kill dependency before eval of 'redirect' stmt
authorFlorian Westphal <fw@strlen.de>
Sat, 31 Mar 2018 14:19:07 +0000 (16:19 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 31 Mar 2018 22:05:53 +0000 (00:05 +0200)
commit403b46ada490ed8146b02ea740c42695c3874b75
tree9c0999c0485d2d9d9b3bbbda622564307cbd78bc
parent7ba74b597300ffbb06df1bf3e6fcfe92add65bb4
netlink_delinearize: kill dependency before eval of 'redirect' stmt

ip protocol 6 redirect to :tcp dport map { 22 : 8000, 80 : 8080}
   is printed as
redirect to :tcp dport map { 22 : 8000, 80 : 8080}

but that input yields:
Error: transport protocol mapping is only valid after transport protocol match

so kill dependencies beforehand so nft won't remove it.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/netlink_delinearize.c