Subject: kern/24652: netinet/ip_mroute.h included twice in sys/netinet/ip_encap.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <kailashsethuraman@yahoo.com.sg>
List: netbsd-bugs
Date: 03/03/2004 04:53:48
>Number:         24652
>Category:       kern
>Synopsis:       netinet/ip_mroute.h included twice in  sys/netinet/ip_encap.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 03 04:54:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kailash Sethuraman
>Release:        NetBSD 1.6.2
>Organization:
>Environment:
NetBSD harold 1.6.2 NetBSD 1.6.2 (GENERIC_LAPTOP) #0: Tue Feb 10 22:02:37 UTC 2004     autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/i386/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/i386/compile/GENERIC_LAPTOP i386

>Description:
 /usr/src/sys/netinet/ip_encap.c includes  <netinet/ip_mroute.h> twice.
A check on cvsweb shows this is also true for the ip_encap.c with the latest. __KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.15 2003/10/28 20:27:22 mycroft Exp $");
The trivial fix removes one of the 2 includes of mroute.h. 
>How-To-Repeat:

>Fix:
 diff -bu ip_encap.c.orig ip_encap.c 
--- ip_encap.c.orig     Fri Aug  2 08:34:13 2002
+++ ip_encap.c  Wed Mar  3 12:50:04 2004
@@ -107,10 +107,6 @@
 
 #include <machine/stdarg.h>
 
-#ifdef MROUTING
-#include <netinet/ip_mroute.h>
-#endif
-
 #include <net/net_osdep.h>

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