From owner-freebsd-current@FreeBSD.ORG Mon Jan 28 16:23:22 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70FAD16A418 for ; Mon, 28 Jan 2008 16:23:22 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 2367013C459 for ; Mon, 28 Jan 2008 16:23:21 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 5701E1B10EF7; Mon, 28 Jan 2008 17:23:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 622F21B10EF1 for ; Mon, 28 Jan 2008 17:23:15 +0100 (CET) Message-ID: <479E0172.1070703@moneybookers.com> Date: Mon, 28 Jan 2008 18:23:14 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <479DEADE.5000907@moneybookers.com> In-Reply-To: <479DEADE.5000907@moneybookers.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5583/Mon Jan 28 14:25:15 2008 on blah.cmotd.com X-Virus-Status: Clean Subject: Re: weird netstat -i IF output in bridge configuration. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2008 16:23:22 -0000 Err, I found that I'm using the wrong parameter :) Stefan Lambrev wrote: > Greetings, > > While testing the bridge I noticed something interesting > netstat -w 1 -i em2 reports packets that are not passed through em2 > > em0: flags=8943 metric > 0 mtu 1500 > options=198 > ether 00:15:17:58:10:99 > media: Ethernet autoselect (1000baseTX ) > status: active > em1: flags=8943 metric > 0 mtu 1500 > options=198 > ether 00:15:17:58:10:98 > media: Ethernet autoselect (1000baseTX ) > status: active > em2: flags=8843 metric 0 mtu 1500 > > options=19b > ether 00:15:17:58:10:9b > media: Ethernet autoselect (1000baseTX ) > status: active > > -em3, and em4 skipped- > > bridge0: flags=8843 metric 0 > mtu 1500 > ether ea:b9:a3:31:7f:fb > inet 10.3.3.3 netmask 0xffffff00 broadcast 10.3.3.255 > id 00:15:17:49:d5:3c priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:15:17:49:d5:3c priority 32768 ifcost 0 port 0 > member: em1 > flags=1e7 > port 2 priority 128 path cost 20000 proto rstp > role designated state forwarding > member: em0 > flags=1e7 > port 1 priority 128 path cost 20000 proto rstp > role designated state forwarding > > netstat -w 1 -i interface reports incomming and outgoing traffic on > all interfaces even the one that are without carrier. > > It seems like netstat always reports statistics from bridge0 device. > > Is this expected behavior or I just hit a bug? :) > > FreeBSD 7.0-RC1 #18: Sun Jan 27 18:55:16 EET 2008 amd64 > -- Best Wishes, Stefan Lambrev ICQ# 24134177