From a52f26c193eb3d2e575c05506d7c1f082082f407 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 11 Jun 2010 14:34:29 -0700 Subject: Fix mirror and redirect action Need to run sudo tc --- scripts/vyatta-qos.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/vyatta-qos.pl') diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl index 8d55812..c9f496f 100755 --- a/scripts/vyatta-qos.pl +++ b/scripts/vyatta-qos.pl @@ -289,7 +289,7 @@ sub apply_action{ or die "tc qdisc ingress failed"; my $cmd = - "tc filter add dev $dev parent ffff:" + "sudo tc filter add dev $dev parent ffff:" . " protocol all prio 10 u32" . " match u32 0 0 flowid 1:1" . " action mirred egress $action dev $target"; @@ -307,7 +307,7 @@ sub apply_action{ sub usage { print < \@updateInterface, "delete-interface=s{2}" => \@deleteInterface, - "list-policy" => \$listPolicy, + "list-policy=s" => \$listPolicy, "delete-policy=s" => \@deletePolicy, "create-policy=s{2}" => \@createPolicy, "apply-policy=s" => \@applyPolicy, -- cgit v1.2.3