From owner-freebsd-net Fri Oct 4 7: 7: 7 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 9BB6237B401; Fri, 4 Oct 2002 07:07:05 -0700 (PDT) Received: from baraca.united.net.ua (ns.united.net.ua [193.111.8.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id E187543E42; Fri, 4 Oct 2002 07:07:03 -0700 (PDT) (envelope-from max@vega.com) Received: from vega.vega.com (xDSL-2-2.united.net.ua [193.111.9.226]) by baraca.united.net.ua (8.11.6/8.11.6) with ESMTP id g94E6rp32708; Fri, 4 Oct 2002 17:06:53 +0300 (EEST) (envelope-from max@vega.com) Received: from vega.vega.com (max@localhost [127.0.0.1]) by vega.vega.com (8.12.6/8.12.5) with ESMTP id g94E6nTs061885; Fri, 4 Oct 2002 17:06:49 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Received: (from max@localhost) by vega.vega.com (8.12.6/8.12.5/Submit) id g94E6ihY061884; Fri, 4 Oct 2002 17:06:44 +0300 (EEST) Date: Fri, 4 Oct 2002 17:06:44 +0300 From: Maxim Sobolev To: "Vladimir B. Grebenschikov" Cc: sumikawa@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: zebra interface flags problem on 4.7-RC2 (IFF_PROMISC) Message-ID: <20021004140644.GB61661@vega.vega.com> References: <1033739506.1060.16.camel@vbook.express.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <1033739506.1060.16.camel@vbook.express.ru> User-Agent: Mutt/1.4i 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 On Fri, Oct 04, 2002 at 05:51:46PM +0400, Vladimir B. Grebenschikov wrote: > > Hi > > I have tried to install fresh zebra (from ports) on 4.7-RC2 > > 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. > > # ifconfig fxp1 > fxp1: flags=8843 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=8943 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 > > > Nothing special in zebra config, just installed 4.7-RC2, just upgraded > zebra. > > I am not sure is it Zebra-related or FreeBSD-related problem > digging into zebra code do not show any abnormal interface flags > installed. This is probably a bug in zebra - I guess that it's doesn't clear 'struct ifreq' properly before SIOCSIFFLAGS ioctl(2). -Maxim > > May be problem related to following commit: > > 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. > > > -- > 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