NetBSD Problem Report #49050
From www@NetBSD.org Tue Jul 29 09:25:44 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id C023CA819A
for <gnats-bugs@gnats.NetBSD.org>; Tue, 29 Jul 2014 09:25:44 +0000 (UTC)
Message-Id: <20140729092543.C2649A81C8@mollari.NetBSD.org>
Date: Tue, 29 Jul 2014 09:25:43 +0000 (UTC)
From: ozaki-r@netbsd.org
Reply-To: ozaki-r@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: t_tcpdump tries to do tcpdump a bridge if it exists
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 29 09:30:00 +0000 2014
>Closed-Date: Sat Sep 20 06:16:59 +0000 2014
>Last-Modified: Sat Sep 20 06:16:59 +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
}
>Release-Note:
>Audit-Trail:
From: "Ryota Ozaki" <ozaki-r@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/49050 CVS commit: src/tests/usr.sbin/tcpdump
Date: Sat, 20 Sep 2014 06:08:07 +0000
Module Name: src
Committed By: ozaki-r
Date: Sat Sep 20 06:08:07 UTC 2014
Modified Files:
src/tests/usr.sbin/tcpdump: t_tcpdump.sh
Log Message:
t_tcpdump: skip bridges
tcpdump on a bridge definitely fails, so skip bridges
to make the test robust.
PR 49050
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.
State-Changed-From-To: open->closed
State-Changed-By: ozaki-r@NetBSD.org
State-Changed-When: Sat, 20 Sep 2014 06:16:59 +0000
State-Changed-Why:
fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.