From owner-freebsd-bugs Sun Jun 3 0: 0:29 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8241937B43C for ; Sun, 3 Jun 2001 00:00:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f5370E922222; Sun, 3 Jun 2001 00:00:14 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F0FCD37B424 for ; Sat, 2 Jun 2001 23:52:52 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f536qqs21669; Sat, 2 Jun 2001 23:52:52 -0700 (PDT) (envelope-from nobody) Message-Id: <200106030652.f536qqs21669@freefall.freebsd.org> Date: Sat, 2 Jun 2001 23:52:52 -0700 (PDT) From: horape@compendium.com.ar To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/27851: gif interfaces don't have IFF_RUNNING flag bit set. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 27851 >Category: kern >Synopsis: gif interfaces don't have IFF_RUNNING flag bit set. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 03 00:00:13 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Horacio J. Peņa >Release: 4.2-RELEASE >Organization: Compendium >Environment: FreeBSD ipv6-gw.puntoar.net.ar 4.2-RELEASE FreeBSD 4.2-RELEASE #2: Mon Apr 23 19:11:14 ART 2001 root@ipv6-gw.puntoar.net.ar:/usr/src/sys/compile/IPV6.PUNTOAR.NET.AR i386 >Description: gif interfaces don't have IFF_RUNNING flag bit set, it probably should. net-snmp maps IFF_RUNNING to ifAdminStatus. Since FBSD don't set IFF_RUNNING on gif interfaces it looks like they're ifconfig'ed down. >How-To-Repeat: 'ifconfig gifN' on any working gif interface >Fix: --- sys/net/if_gif.c.orig Sun Jun 3 03:50:43 2001 +++ sys/net/if_gif.c Sun Jun 3 03:50:57 2001 @@ -537,7 +537,7 @@ bcopy((caddr_t)dst, (caddr_t)sa, size); sc->gif_pdst = sa; - ifp->if_flags |= IFF_UP; + ifp->if_flags |= IFF_UP | IFF_RUNNING; if_up(ifp); /* send up RTM_IFINFO */ error = 0; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message