]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Use cangw -F to cleanup gwteway
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Nov 2010 16:25:13 +0000 (17:25 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Nov 2010 16:25:13 +0000 (17:25 +0100)
gw-tests/lib.sh

index f82ea28d855ac6a07a9bdf215a579fd559472832..f7fcf75332616d7d582f5acbc201b88042770286 100644 (file)
@@ -32,8 +32,7 @@ sshgw() {
 cleanupgw() {
     # Set can interfaces up
     sshgw 'for i in 0 1; do ip link show dev can$i|grep -q UP || ip link set can$i up type can bitrate 1000000; done'
 cleanupgw() {
     # Set can interfaces up
     sshgw 'for i in 0 1; do ip link show dev can$i|grep -q UP || ip link set can$i up type can bitrate 1000000; done'
-    # Delete all GW rules
-    sshgw 'eval $(cangw -L|sed -e s/-A/-D/ -e "s/#.*/;/")'
+    sshgw 'cangw -F'
 }
 
 _plot() {
 }
 
 _plot() {