summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-11-27 13:12:36 +0000
committersever-sever <v.gletenko@vyos.io>2020-11-27 13:12:36 +0000
commit60177b8cbf9ef6c14425db3bf92f74c9682d8d9f (patch)
treefd466c245173d2727a81e75fcb9b182d396f5001
parent3305e91af2d84d8a3eefeeb5193193e538f23282 (diff)
downloadvyatta-cfg-firewall-60177b8cbf9ef6c14425db3bf92f74c9682d8d9f.tar.gz
vyatta-cfg-firewall-60177b8cbf9ef6c14425db3bf92f74c9682d8d9f.zip
cfg-firewall: T2868: Delete option pmtu for tcp-mss
-rw-r--r--templates/policy/route/node.tag/rule/node.tag/set/tcp-mss/node.def19
1 files changed, 6 insertions, 13 deletions
diff --git a/templates/policy/route/node.tag/rule/node.tag/set/tcp-mss/node.def b/templates/policy/route/node.tag/rule/node.tag/set/tcp-mss/node.def
index 7a61966..0a8c704 100644
--- a/templates/policy/route/node.tag/rule/node.tag/set/tcp-mss/node.def
+++ b/templates/policy/route/node.tag/rule/node.tag/set/tcp-mss/node.def
@@ -3,19 +3,12 @@ help: TCP Maximum Segment Size
syntax:expression:
exec "
-if [[ $VAR(@) =~ ^[[:alpha:]]*$ ]]; then \
- if [ $VAR(@) == \"pmtu\" ]; then \
- exit 0; \
- fi; \
-else \
- if [[ ( $VAR(@) =~ ^[[:digit:]]*$ ) && \
- ( $VAR(@) -ge \"500\" ) && \
- ( $VAR(@) -le \"1460\" ) ]]; then \
- exit 0; \
- fi; \
-fi; \
-echo Value must be \\'pmtu\\' or a number between 500 and 1460; \
+if [[ ( $VAR(@) =~ ^[[:digit:]]*$ ) && \
+ ( $VAR(@) -ge \"500\" ) && \
+ ( $VAR(@) -le \"1460\" ) ]]; then \
+ exit 0; \
+fi; \
+echo Value must be a number between 500 and 1460; \
exit 1"
-val_help: pmtu; Automatically set to Path Maximum Transfer Unit minus 40 bytes
val_help: 500-1460; Explicitly set TCP MSS value