Module Name: src Committed By: christos Date: Sun Apr 15 03:05:57 UTC 2012
Modified Files: src/tests/usr.sbin/tcpdump: t_tcpdump.sh Log Message: simplify To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.sbin/tcpdump/t_tcpdump.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.sbin/tcpdump/t_tcpdump.sh diff -u src/tests/usr.sbin/tcpdump/t_tcpdump.sh:1.2 src/tests/usr.sbin/tcpdump/t_tcpdump.sh:1.3 --- src/tests/usr.sbin/tcpdump/t_tcpdump.sh:1.2 Sat Apr 14 11:13:57 2012 +++ src/tests/usr.sbin/tcpdump/t_tcpdump.sh Sat Apr 14 23:05:57 2012 @@ -1,4 +1,4 @@ -# $NetBSD: t_tcpdump.sh,v 1.2 2012/04/14 15:13:57 jruoho Exp $ +# $NetBSD: t_tcpdump.sh,v 1.3 2012/04/15 03:05:57 christos Exp $ # # Copyright (c) 2012 The NetBSD Foundation, Inc. # All rights reserved. @@ -41,16 +41,9 @@ promiscuous_head() { promiscuous_body() { - ifs="lo0 age0 ath0 bge0 dge0 re0 rtk0 sip0 sk0 iwn0 vr0 wm0 wpi0" - - for i in $ifs; do - - ifconfig $i >/dev/null 2>&1 - - if [ $? -eq 0 ]; then - echo "Testing $i" - prom $i - fi + for i in $(ifconfig -l); do + echo "Testing $i" + prom $i done }