summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_esp.t
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-02-01 15:47:09 +0100
committerPhil Sutter <phil@nwl.cc>2024-02-02 18:26:14 +0100
commitda13460f05eaee3b92c3b6d0ca2023c5377f4aca (patch)
treeea4313678cd6fe7de8d20ca08196e265741027aa /extensions/libxt_esp.t
parenta0e5dad34a6410e4960feb621780c4b06f374477 (diff)
extensions: esp: Save/xlate inverted full ranges
Also add a translation for plain '-m esp' match which depends on the address family: While ip6tables-translate may emit an exthdr exists match, iptables-translate must stick to meta l4proto. Fixes: 6cfa723a83d45 ("extensions: libxt_esp: Add translation to nft") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libxt_esp.t')
-rw-r--r--extensions/libxt_esp.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_esp.t b/extensions/libxt_esp.t
index 686611f2..ece131c9 100644
--- a/extensions/libxt_esp.t
+++ b/extensions/libxt_esp.t
@@ -5,7 +5,7 @@
-p esp -m esp ! --espspi 0:4294967294;=;OK
-p esp -m esp --espspi -1;;FAIL
-p esp -m esp --espspi :;-p esp -m esp;OK
--p esp -m esp ! --espspi :;-p esp -m esp;OK
+-p esp -m esp ! --espspi :;-p esp -m esp ! --espspi 0:4294967295;OK
-p esp -m esp --espspi :4;-p esp -m esp --espspi 0:4;OK
-p esp -m esp --espspi 4:;-p esp -m esp --espspi 4:4294967295;OK
-p esp -m esp --espspi 3:4;=;OK