From tony@eric.net.au  Wed Dec 15 06:03:23 1999
Return-Path: <tony@eric.net.au>
Received: from gecko.eric.net.au (gecko.eric.net.au [203.36.118.3])
	by hub.freebsd.org (Postfix) with ESMTP id 184AE15237
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Dec 1999 06:03:20 -0800 (PST)
	(envelope-from tony@eric.net.au)
Received: from random.n2-au (ppp162.eric.net.au [203.36.118.162])
	by gecko.eric.net.au (8.9.3/8.8.7) with ESMTP id AAA25560
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Dec 1999 00:57:31 +1100
Received: from ivanova.n2-au (ivanova.n2-au [192.168.1.1])
	by random.n2-au (8.9.3/8.9.3/tf2) with ESMTP id BAA87610
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Dec 1999 01:04:34 +1100 (EST)
	(envelope-from tony@random.n2-au)
Received: (from tony@localhost)
	by ivanova.n2-au (8.8.8/8.8.8/tf1) id BAA02572;
	Thu, 16 Dec 1999 01:00:41 +1100 (EST)
	(envelope-from tony@mail.n2-au)
Message-Id: <199912151400.BAA02572@ivanova.n2-au>
Date: Thu, 16 Dec 1999 01:00:41 +1100 (EST)
From: Tony Frank <tony@eric.net.au>
Reply-To: tfrank@eric.net.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: Patch to fixup bridging support for 2.2-STABLE<Synopsis of the problem (one line)>
X-Send-Pr-Version: 3.2

>Number:         15492
>Category:       kern
>Synopsis:       Patch to fixup bridging support for 2.2-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 15 06:10:01 PST 1999
>Closed-Date:    Sun Jul 22 08:17:11 PDT 2001
>Last-Modified:  Sun Jul 22 08:17:20 PDT 2001
>Originator:     Tony Frank
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
>Environment:

	

>Description:
If the kernel option 'BRIDGE' was added, kernel would fail to compile
	

>How-To-Repeat:
add option 'BRIDGE' to your kernel config under 2.2-STABLE
	

>Fix:
Here is a quick patch to fix the compile problems.

This appears to work ok - see earlier pr on if_cs bridging support for details.

After patching, kernel compiles, and system has been running for over a day
with reasonably heavy bridging testing with no apparant side effects.

file is /usr/src/sys/net/bridge.c  diff is:

81a82
> #include <sys/malloc.h>
89c90,93
< #include <netinet/if_ether.h> /* for struct arpcom */
---
> #include <netinet/in_systm.h> /* for struct arpcom */
> #include <netinet/in_var.h>
> #include <netinet/ip.h>
> #include <netinet/if_ether.h>
92a97,98
> #include <netinet/ip_fw.h>
> 
288a295
>     s = splimp(); /* not sure if this is needed -CURRENT version had it... */
325c332,333
<     do_bridge=1;
---
>     do_bridge=0;
>     splx(s);      /* matches above splimp */
453a462
>     struct ip *ip;
503c512
< 	}
---
> 	} else
504a514
>          rule = NULL;
516a527,528
> 
> 	dummy = 0;
	
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Fri Dec 17 12:51:43 PST 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sun Jul 22 08:17:11 PDT 2001 
State-Changed-Why:  
transient build error 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=15492 
>Unformatted:
