From pb@wave.campus.luth.se  Thu Apr 23 09:01:51 1998
Received: from wave.campus.luth.se (pb@wave.campus.luth.se [130.240.193.79])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24534
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Apr 1998 09:01:49 -0700 (PDT)
          (envelope-from pb@wave.campus.luth.se)
Received: (from pb@localhost)
          by wave.campus.luth.se (8.8.4/8.8.4)
	  id RAA02881; Thu, 23 Apr 1998 17:58:43 GMT
Message-Id: <199804231758.RAA02881@wave.campus.luth.se>
Date: Thu, 23 Apr 1998 17:58:43 GMT
From: PB <pb@wave.campus.luth.se>
Reply-To: pb@wave.campus.luth.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: Kernel options NS + IPX will cause conflicts in kernel compile
X-Send-Pr-Version: 3.2

>Number:         6397
>Category:       kern
>Synopsis:       Kernel options NS + IPX will cause conflicts in kernel compile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 23 09:10:00 PDT 1998
>Closed-Date:    Thu Apr 23 09:15:51 PDT 1998
>Last-Modified:  Thu Apr 23 11:40:00 PDT 1998
>Originator:     PB
>Release:        FreeBSD 2.2-BETA_A i386 + 2.2.6-RELEASE
>Organization:
>Environment:

	

>Description:

Using these options in the kernel config file:
options        IPX                     # IPX/SPX communications protocols
options         NS                     # Xerox NS protocols

Will cause trouble in the switch/case in 'sys/net/if_ethersubr.c'
#ifdef IPX
     case ETHERTYPE_IPX:
#ifdef NS
     case 0x8137: /* Novell Ethernet_II Ethernet TYPE II */
(shortened look at the real files for full details)

sys/netipx/ipx_if.h:
  #define    ETHERTYPE_IPX           0x8137 

>How-To-Repeat:

Put above options in kernel config and compile.

>Fix:
	
Don't put them there, or create som kind of "shared" protocoll stuff, haven't 
tried that option however :-)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Thu Apr 23 09:15:51 PDT 1998 
State-Changed-Why:  
Xerox NS isn't even *supposed* to work. 

From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= )
To: pb@wave.campus.luth.se
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6397: Kernel options NS + IPX will cause conflicts in kernel compile
Date: 23 Apr 1998 18:23:09 +0200

 PB <pb@wave.campus.luth.se> writes:
 > Using these options in the kernel config file:
 > options        IPX                     # IPX/SPX communications protocols
 > options         NS                     # Xerox NS protocols
 > 
 > Will cause trouble in the switch/case in 'sys/net/if_ethersubr.c'
 > #ifdef IPX
 >      case ETHERTYPE_IPX:
 > #ifdef NS
 >      case 0x8137: /* Novell Ethernet_II Ethernet TYPE II */
 > (shortened look at the real files for full details)
 > 
 > sys/netipx/ipx_if.h:
 >   #define    ETHERTYPE_IPX           0x8137 
 > 
 
 Don't Do That, Then.
 
 First of all, Xerox NS doesn't work properly in FreeBSD anyway;
 second, IIRC, IPX is derived directly from Xerox NS, which is why they
 use the same ethertype.
 
 Cut'n'paste from /sys/i386/conf/LINT:
 
 #
 # Protocol families:
 #  Only the INET (Internet) family is officially supported in FreeBSD.
 #  Source code for the NS (Xerox Network Service) is provided for amusement
 #  value.
 #
 
 -- 
 Noone else has a .sig like this one.

From: John Hay <jhay@mikom.csir.co.za>
To: pb@wave.campus.luth.se
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6397: Kernel options NS + IPX will cause conflicts in kernel compile
Date: Thu, 23 Apr 1998 19:37:52 +0200 (SAT)

 > >Synopsis:       Kernel options NS + IPX will cause conflicts in kernel compile
 > Will cause trouble in the switch/case in 'sys/net/if_ethersubr.c'
 > #ifdef IPX
 >      case ETHERTYPE_IPX:
 > #ifdef NS
 >      case 0x8137: /* Novell Ethernet_II Ethernet TYPE II */
 > (shortened look at the real files for full details)
 > 
 > sys/netipx/ipx_if.h:
 >   #define    ETHERTYPE_IPX           0x8137 
 > 
 
 The conflict is because both actually do IPX. :-/ I maintain the IPX
 code and some other company/group use the NS code to do IPX, so you
 should try to have both in the kernel.
 
 John
 -- 
 John Hay -- John.Hay@mikom.csir.co.za

From: "Matthew N. Dodd" <winter@jurai.net>
To: PB <pb@wave.campus.luth.se>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/6397: Kernel options NS + IPX will cause conflicts in kernel compile
Date: Thu, 23 Apr 1998 14:35:43 -0400 (EDT)

 On Thu, 23 Apr 1998, PB wrote:
 
 [snip]
 
 > Put above options in kernel config and compile.
 > 
 > >Fix:
 > 	
 > Don't put them there, or create som kind of "shared" protocoll stuff, haven't 
 > tried that option however :-)
 
 I'm more or less aware of the problem.  Once we finish with some of the
 basic token ring stuff we'll be looking at the 802.2 issues kernel wide.
 
 /* 
    Matthew N. Dodd		| A memory retaining a love you had for life	
    winter@jurai.net		| As cruel as it seems nothing ever seems to
    http://www.jurai.net/~winter | go right - FLA M 3.1:53	
 */
 
>Unformatted:
