From owner-freebsd-net Fri Oct 4 7:21:52 2002 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 25B8137B401; Fri, 4 Oct 2002 07:21:50 -0700 (PDT) Received: from vbook.express.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9667943E4A; Fri, 4 Oct 2002 07:21:49 -0700 (PDT) (envelope-from vova@express.ru) Received: from vova by vbook.express.ru with local (Exim 3.36 #1) id 17xTKu-0000NV-00; Fri, 04 Oct 2002 18:21:48 +0400 Subject: Re: zebra interface flags problem on 4.7-RC2 (IFF_PROMISC) From: "Vladimir B. " Grebenschikov To: Maxim Sobolev Cc: sumikawa@FreeBSD.ORG, freebsd-net@FreeBSD.ORG In-Reply-To: <20021004140644.GB61661@vega.vega.com> References: <1033739506.1060.16.camel@vbook.express.ru> <20021004140644.GB61661@vega.vega.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.7 Date: 04 Oct 2002 18:21:47 +0400 Message-Id: <1033741307.1060.22.camel@vbook.express.ru> Mime-Version: 1.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org =F7 Fri, 04.10.2002, =D7 18:06, Maxim Sobolev =CE=C1=D0=C9=D3=C1=CC: > On Fri, Oct 04, 2002 at 05:51:46PM +0400, Vladimir B. Grebenschikov wrot= e: > >=20 > > Hi > >=20 > > I have tried to install fresh zebra (from ports) on 4.7-RC2 > >=20 > > have a problem - zebra turns on promiscuity mode on interface, > > it is completely unacceptable when interface connected to HUB (not > > switch) - router begins resend all packets. > >=20 > > # ifconfig fxp1 > > fxp1: flags=3D8843 mtu 1500 > > inet 193.125.143.129 netmask 0xffffff00 broadcast > > 193.125.143.255 > > ether 00:a0:c9:41:a3:a3 > > media: Ethernet autoselect (10baseT/UTP) > > status: active > > # zebra -d > > 2002/10/04 16:33:42 ZEBRA: can't get ip6forwarding value > > # ifconfig fxp1 > > fxp1: flags=3D8943 mtu=20 > > 1500 > > inet 193.125.143.129 netmask 0xffffff00 broadcast > > 193.125.143.255 > > ether 00:a0:c9:41:a3:a3 > > media: Ethernet autoselect (10baseT/UTP) > > status: active > >=20 > >=20 > > Nothing special in zebra config, just installed 4.7-RC2, just upgraded > > zebra. > >=20 > > I am not sure is it Zebra-related or FreeBSD-related problem > > digging into zebra code do not show any abnormal interface flags > > installed. >=20 > This is probably a bug in zebra - I guess that it's doesn't clear > 'struct ifreq' properly before SIOCSIFFLAGS ioctl(2). Zebra explicitly sets flags like this: ioctl.c: ifreq.ifr_flags =3D ifp->flags; ioctl.c: ifreq.ifr_flags |=3D flags; and I have tried to change code: ioctl.c: ifreq.ifr_flags =3D ifp->flags; ioctl.c: ifreq.ifr_flags |=3D flags; ioctl.c: ifreq.ifr_flags &=3D ~(IFF_PROMISC); - does not help. > -Maxim >=20 > >=20 > > May be problem related to following commit: > >=20 > > date: 2002/08/30 14:23:38; author: sobomax; state: Exp; lines: +25 -= 4 > > MFC: user-setable promisc mode. The code is slightly diffrent (and > > uglier) > > than in HEAD, because we have had to preserve kernel ABI, so that > > increasing > > if_flags to 32 bits was not an option. > >=20 > >=20 > > --=20 > > Vladimir B. Grebenschikov > > vova@sw.ru, SWsoft, Inc. >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message >=20 --=20 Vladimir B. Grebenschikov vova@sw.ru, SWsoft, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message