From owner-freebsd-net@FreeBSD.ORG Fri Nov 4 21:56:58 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2585D16A41F; Fri, 4 Nov 2005 21:56:58 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A16543D45; Fri, 4 Nov 2005 21:56:56 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jA4Lusxl088198; Fri, 4 Nov 2005 23:56:54 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 46318-02-2; Fri, 4 Nov 2005 23:56:53 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jA4LtYJi088151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Nov 2005 23:55:35 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jA4LtdFI061177; Fri, 4 Nov 2005 23:55:39 +0200 (EET) (envelope-from ru) Date: Fri, 4 Nov 2005 23:55:39 +0200 From: Ruslan Ermilov To: Marco Molteni Message-ID: <20051104215539.GI63539@ip.net.ua> References: <20051102193617.1013be88.molter@tin.it> <20051103145144.GM63539@ip.net.ua> <20051104210511.569754bc.molter@tin.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7IzduDXdmGAvR4BO" Content-Disposition: inline In-Reply-To: <20051104210511.569754bc.molter@tin.it> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-net@freebsd.org, wpaul@freebsd.org Subject: Re: troubles with ng_fec on -current X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 21:56:58 -0000 --7IzduDXdmGAvR4BO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 04, 2005 at 09:05:11PM +0100, Marco Molteni wrote: > On Thu, 3 Nov 2005 16:51:44 +0200 > Ruslan Ermilov wrote: >=20 > > On Wed, Nov 02, 2005 at 07:36:17PM +0100, Marco Molteni wrote: >=20 > [..] >=20 > > > If tcpdump is ran in non-promiscuos mode (-p option), only ping > > > (and ARP) from box1 goes thru, as if I wasn't running tcpdump at > > > all. If on the other hand tcpdump is ran in promiscuos mode, then > > > all the pings go thru as expected. >=20 > [..] >=20 > > Looks like a bug. The ng_fec code uses the MAC address of the first > > real interface as the MAC address for the virtual and all other ports > > in the bundle, but it lacks a call to ifp->if_init() to actually > > reprogram the hardware MAC filter. Please try this patch: >=20 > [..] >=20 > Ruslan, >=20 > thanks for the patch. I applied it but what I get now is the MAC > address zeroed for all the interfaces: >=20 > ste0: flags=3D8843 mtu 1500 > options=3D8 > ether 00:00:00:00:00:00 > media: Ethernet autoselect (100baseTX ) > status: active > ste1: flags=3D8843 mtu 1500 > options=3D8 > ether 00:00:00:00:00:00 > media: Ethernet autoselect (100baseTX ) > status: active > ste2: flags=3D8843 mtu 1500 > options=3D8 > ether 00:00:00:00:00:00 > media: Ethernet autoselect (100baseTX ) > status: active > ste3: flags=3D8843 mtu 1500 > options=3D8 > ether 00:00:00:00:00:00 > media: Ethernet autoselect (100baseTX ) > status: active > [..] > fec0: flags=3D8843 mtu 1500 > inet 1.1.1.4 netmask 0xffffff00 broadcast 1.1.1.255 > inet6 fe80::201:3ff:fe15:a957%fec0 prefixlen 64 scopeid 0x8=20 > ether 00:00:00:00:00:00 > media: Ethernet none > status: active >=20 >=20 > Let me know if you need further testing or infos. >=20 I know. Please try what's in CVS now (I made three revisions to ng_fec.c). I wonder, are you assigning an IP address to fec0 or doing "ifconfig fec0 up" before confuguring the bundle (adding ports)? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --7IzduDXdmGAvR4BO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDa9jbqRfpzJluFF4RAmxjAJ99o6cfI6xAvmPf0ZDJyD/tBjxDUgCffxTE Y5vXfE/Xn1uKsnp+NCsb36o= =RK+d -----END PGP SIGNATURE----- --7IzduDXdmGAvR4BO--