Subject: kern/25555: if_type not set in if_tun.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <erik.anggard@packetfront.com>
List: netbsd-bugs
Date: 05/13/2004 10:16:25
>Number:         25555
>Category:       kern
>Synopsis:       if_type not set in if_tun.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 13 10:17:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Erik Änggård
>Release:        1.6D and current
>Organization:
>Environment:
NetBSD kiwi.int.packetfront.com 1.6D NetBSD 1.6D (KIWI-$Revision: 1.138 $) #2: Thu Nov 28 11:01:15 CET 2002     eriang@xxx:/usr/src/sys/arch/macppc/compile/KIWI macppc

>Description:
The if_type field of struct ifnet is not set in src/sys/net/if_tun.c. See patch below.

>How-To-Repeat:

>Fix:
--- if_tun.c	1 Mar 2004 13:54:02 -0000	1.68
+++ if_tun.c	13 May 2004 10:00:26 -0000
@@ -155,6 +155,7 @@
 	ifp->if_start = tunstart;
 #endif
 	ifp->if_flags = IFF_POINTOPOINT;
+	ifp->if_type = IFT_TUNNEL;
 	ifp->if_snd.ifq_maxlen = ifqmaxlen;
 	ifp->if_collisions = 0;
 	ifp->if_ierrors = 0;

>Release-Note:
>Audit-Trail:
>Unformatted: