Subject: config option MROUTING is dysfunctional
To: None <netbsd-bugs@NetBSD.ORG>
From: Jim Howard <jiho@mail.c-zone.net>
List: netbsd-bugs
Date: 10/09/1996 10:55:55
|---------------------------------------------------------------------------|
| This is #1 of 3 PRs rejected yesterday by gnats, presumably because they |
| came from BETA. I doubt anything has changed since BETA, so if this has, |
| please speak up! ;) |
|---------------------------------------------------------------------------|
>Submitter-Id: net
>Originator: Jim Howard <jiho@mail.c-zone.net>
>Organization:
>Confidential: no
>Synopsis: config option MROUTING is dysfunctional
>Severity: non-critical
>Priority: low
>Category: kern
>Class: sw-bug
>Release: NetBSD/i386 1.2_BETA
>Environment:
>Description:
The kernel is built with multicast routing support, even when the config
option MROUTING is not supplied. This adds useless bulk to the kernel for
users who have no use for multicast routing.
>How-To-Repeat:
Build a kernel without the MROUTING option, and look at the size of the file
arch/<platform>/compile/<name>/ip_mroute.o. Now apply the patch provided
below, build a kernel with the MROUTING option, and look again.
>Fix:
The problem results from the removal of some conditionals in the file
netinet/ip_mroute.c. The fix is to restore these conditionals. The
following patch does this.
*** ip_mroute.c Thu Oct 3 17:02:19 1996
--- /usr/src/sys/netinet/ip_mroute.c Thu Oct 3 16:15:39 1996
***************
*** 14,19 ****
--- 14,23 ----
* MROUTING Revision: 1.2
*/
+ #ifndef MROUTING
+ int ip_mrtproto;
+ #else
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
***************
*** 1993,1995 ****
--- 1997,2001 ----
splx(s);
}
#endif /* RSVP_ISI */
+
+ #endif /* MROUTING */