From f3b27274bfdb75dc29301bdd537ee6fec6d4e7c1 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 4 Apr 2023 15:34:05 +0200 Subject: netlink_delinearize: do not reset protocol context for nat protocol expression This patch reverts 403b46ada490 ("netlink_delinearize: kill dependency before eval of 'redirect' stmt"). Since ("evaluate: bogus missing transport protocol"), this workaround is not required anymore. Signed-off-by: Pablo Neira Ayuso --- tests/py/ip/redirect.t.json | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'tests/py/ip/redirect.t.json') diff --git a/tests/py/ip/redirect.t.json b/tests/py/ip/redirect.t.json index 3544e7f1..2afdf9b1 100644 --- a/tests/py/ip/redirect.t.json +++ b/tests/py/ip/redirect.t.json @@ -593,20 +593,8 @@ } ] -# ip protocol 6 redirect to :tcp dport map { 22 : 8000, 80 : 8080} +# redirect to :tcp dport map { 22 : 8000, 80 : 8080} [ - { - "match": { - "left": { - "payload": { - "field": "protocol", - "protocol": "ip" - } - }, - "op": "==", - "right": 6 - } - }, { "redirect": { "port": { -- cgit v1.2.3