summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-09-04 13:38:21 -0700
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-09-04 13:38:21 -0700
commit27a6ec563ebbd4956752d1bf48ff0480a033d8ab (patch)
tree5e241366d89895f352ea7c96f2cba1e813d016c5
parent9dc90a9ea4d350fbee1c44a5e87f880e7bb0cefa (diff)
downloadvyatta-conntrack-27a6ec563ebbd4956752d1bf48ff0480a033d8ab.tar.gz
vyatta-conntrack-27a6ec563ebbd4956752d1bf48ff0480a033d8ab.zip
remove tcp_udp from help in protocols
-rw-r--r--templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def6
1 files changed, 2 insertions, 4 deletions
diff --git a/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def b/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def
index f5c1d2e..118e66a 100644
--- a/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def
+++ b/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def
@@ -3,12 +3,10 @@ help: protocol to ignore connection tracking for
val_help: txt ; IP protocol name from /etc/protocols (e.g. "tcp" or "udp")
val_help: u32:0-255 ; IP protocol number
-val_help: tcp_udp ; Both TCP and UDP
val_help: all ; All IP protocols
val_help: !<protocol> ; All IP protocols except for the specified name or number (negation)
-syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protocol_negate '$VAR(@)'`\" ] \
- && [ \"$VAR(@)\" != 'tcp_udp' ]; then \
+syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protocol_negate '$VAR(@)'`\" ] ; then \
echo invalid protocol \"$VAR(@)\" ; \
exit 1 ; \
fi ; "
@@ -17,5 +15,5 @@ syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protoc
# values or protocol numbers
allowed:
protos=`cat /etc/protocols | sed -e '/^#.*/d' | awk '{ print $1 }' | grep -v '6'`
- protos="all $protos tcp_udp"
+ protos="all $protos"
echo -n $protos