From owner-cvs-all@FreeBSD.ORG Sun Oct 23 20:35:03 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 250B216A41F; Sun, 23 Oct 2005 20:35:03 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADE6A43D49; Sun, 23 Oct 2005 20:35:02 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9NKZ2Aw022714; Sun, 23 Oct 2005 20:35:02 GMT (envelope-from csjp@freefall.freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9NKZ2f4022713; Sun, 23 Oct 2005 20:35:02 GMT (envelope-from csjp) Date: Sun, 23 Oct 2005 20:35:02 +0000 From: "Christian S.J. Peron" To: Gleb Smirnoff Message-ID: <20051023203502.GA21142@freefall.freebsd.org> References: <200510230144.j9N1i86a057613@repoman.freebsd.org> <20051023071141.GS59364@cell.sick.ru> <20051023152934.GA88701@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051023152934.GA88701@freefall.freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_mib.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2005 20:35:03 -0000 On Sun, Oct 23, 2005 at 03:29:34PM +0000, Christian S.J. Peron wrote: > On Sun, Oct 23, 2005 at 11:11:41AM +0400, Gleb Smirnoff wrote: > > > > Does this fix that bsnmpd reports all interfaces as "operatinally down" > > after the if_drv_flags was introduced? > > > > Nope, but this should: > > http://people.freebsd.org/~csjp/mibII_interfaces.c.1130030000.diff > > I am just waiting for harti to give me the green light. > Sorry, I probably should have clarified: (1) Yes, this does fix the issue of interfaces being reported as operationally down by bsnmpd. As the RUNNING mask was not being set by the kernel before it was returned to userspace. (2) However, RUNNING flags are not synonomous with the devices being up, so the patch listed above changes bsnmpd to check link status instead of checking the RUNNING mask. -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer FreeBSD Security Team