From e956fa4071b05e427b260ee3332ac06afc91dde4 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 6 Feb 2008 12:04:55 -0800 Subject: rename dsfield to dscp And add more help text. --- scripts/VyattaQosMatch.pm | 2 +- scripts/vyatta-qos-util.pl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/VyattaQosMatch.pm b/scripts/VyattaQosMatch.pm index 31ddf36..4b2e3fe 100644 --- a/scripts/VyattaQosMatch.pm +++ b/scripts/VyattaQosMatch.pm @@ -36,7 +36,7 @@ sub _define { if ($config->exists("ip")) { my %ip; - $ip{dsfield} = VyattaQosUtil::getDsfield( $config->returnValue("ip dsfield")); + $ip{dsfield} = VyattaQosUtil::getDsfield( $config->returnValue("ip dscp")); $ip{protocol} = VyattaQosUtil::getProtocol($config->returnValue("ip protocol")); $ip{src} = $config->returnValue("ip source address"); $ip{dst} = $config->returnValue("ip destination address"); diff --git a/scripts/vyatta-qos-util.pl b/scripts/vyatta-qos-util.pl index 5dd869f..6ea1155 100755 --- a/scripts/vyatta-qos-util.pl +++ b/scripts/vyatta-qos-util.pl @@ -12,7 +12,8 @@ GetOptions( "rate=s" => \$rate, "burst=s" => \$burst, "protocol=s" => \$protocol, - "dsfield=s" => \$dsfield, + "dscp=s" => \$dsfield, + "tos=s" => \$dsfield, ); if ( defined $rate ) { @@ -39,6 +40,6 @@ print <