NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/49050: t_tcpdump tries to do tcpdump a bridge if it exists
>Number: 49050
>Category: misc
>Synopsis: t_tcpdump tries to do tcpdump a bridge if it exists
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 29 09:30:00 +0000 2014
>Originator: Ryota Ozaki
>Release: current
>Organization:
>Environment:
rangeley# uname -a
NetBSD rangeley 6.99.49 NetBSD 6.99.49 (GENERIC) #3: Mon Jul 28 17:21:59 JST
2014 ozaki-r@hidden:/hidden amd64
>Description:
tests/usr.sbin/tcpdump/t_tcpdump tries to do tcpdump all existing network
interfaces,
even if it's a bridge. However, doing tcpdump on a bridge definitely fails. We
should
skip bridges to make the test robust.
>How-To-Repeat:
ifconfig bridge0 create
cd /usr/tests
atf-run usr.sbin/tcpdump/t_tcpdump
>Fix:
Change t_tcpdump like this:
promiscuous_body() {
for i in $(ifconfig -l); do
case $i in
bridge*)
echo "Skipping $i"
continue
esac
echo "Testing $i"
prom $i
done
}
Home |
Main Index |
Thread Index |
Old Index