Date: Sat, 2 Jun 2001 23:52:52 -0700 (PDT) From: horape@compendium.com.ar To: freebsd-gnats-submit@FreeBSD.org Subject: kern/27851: gif interfaces don't have IFF_RUNNING flag bit set. Message-ID: <200106030652.f536qqs21669@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106030652.f536qqs21669>
