Subject: kern/84: kernel won't compile with "options ISO" without "options MULTICAST"
To: None <gnats-admin>
From: None <cgd@sun-lamp.cs.berkeley.edu>
List: netbsd-bugs
Date: 01/15/1994 16:20:07
>Number:         84
>Category:       kern
>Synopsis:       way MULTICAST is being defined for ISO is broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 15 16:20:06 1994
>Originator:     Chris G. Demetriou
>Organization:
Kernel Hackers 'r' Us
>Release:        NetBSD-current, 1/15/94
>Environment:
NetBSD-current, 1/15/94, a kernel with "options ISO", but not
"options MULTICAST"
System: NetBSD sun-lamp.cs.berkeley.edu 0.9a SUN_LAMP_AHBBT_NODDB#13 i386


>Description:
sys/net/if_ethersubr.c gets several lines of syntax errors if compiled
with ISO defined but not MULTICAST.

>How-To-Repeat:
config a kernel with
options		ISO
and NOT
options		MULTICAST
>Fix:
well, the cause of the problem is that MULTICAST is defined if ISO
is defined, in if_ether.h on line 142.  however, two fields in
struct arpcom (defined around line 119 of if_ether.h) depend on the
definition of MULTICAST.  one possible solution is to move the definition
of MULTICAST up.  another possibility is to remove the kludge which
#define's MULTICAST, and either require MULTICAST if you're going to
have ISO, or just make the MULTICAST code standard.  Requiring MULTICAST
for ISO is probably more practical for the present system, but making
MULTICAST standard is what was done by 4.4, and is probably the best
long-term solution.
>Audit-Trail:
>Unformatted:

------------------------------------------------------------------------------