summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-11-18 19:11:57 +0100
committerDaniil Baturin <daniil@baturin.org>2018-11-18 19:11:57 +0100
commit152c7f8eefeea6d69b0b72ca1bb2e8345f66acd9 (patch)
tree8a7168c4d0481d5f5d4881f32a9cee552fc1ba96 /templates
parent8b2ffad3c7a6ae4c65097ee562bb55beff16035a (diff)
downloadvyatta-cfg-firewall-152c7f8eefeea6d69b0b72ca1bb2e8345f66acd9.tar.gz
vyatta-cfg-firewall-152c7f8eefeea6d69b0b72ca1bb2e8345f66acd9.zip
T573: add support for matching IPv6 hop limit.
Patch by Ray Patrick Soucy.
Diffstat (limited to 'templates')
-rw-r--r--templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/eq/node.def5
-rw-r--r--templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/gt/node.def5
-rw-r--r--templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/lt/node.def5
-rw-r--r--templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/node.def1
4 files changed, 16 insertions, 0 deletions
diff --git a/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/eq/node.def b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/eq/node.def
new file mode 100644
index 0000000..e4e6fef
--- /dev/null
+++ b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/eq/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Value to match a hop limit equal to it
+val_help: u32:0-255; Hop limit equal to value
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "eq must be between 0 and 255"
+commit:expression: ($VAR(../lt/) == "") && ($VAR(../gt/) == ""); "you may only define one comparison (eq|lt|gt)"
diff --git a/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/gt/node.def b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/gt/node.def
new file mode 100644
index 0000000..b3f442c
--- /dev/null
+++ b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/gt/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Value to match a hop limit greater than or equal to it
+val_help: u32:0-255; Hop limit greater than value
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "gt must be between 0 and 255"
+commit:expression: ($VAR(../lt/) == "") && ($VAR(../eq/) == ""); "you may only define one comparison (eq|lt|gt)"
diff --git a/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/lt/node.def b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/lt/node.def
new file mode 100644
index 0000000..c9b422d
--- /dev/null
+++ b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/lt/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Value to match a hop limit less than or equal to it
+val_help: u32:0-255; Hop limit less than value
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "lt must be between 0 and 255"
+commit:expression: ($VAR(../eq/) == "") && ($VAR(../gt/) == ""); "you may only define one comparison (eq|lt|gt)"
diff --git a/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/node.def b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/node.def
new file mode 100644
index 0000000..968f94b
--- /dev/null
+++ b/templates/firewall/ipv6-name/node.tag/rule/node.tag/hop-limit/node.def
@@ -0,0 +1 @@
+help: Hop Limit