Bug 15492

Summary: Patch to fixup bridging support for 2.2-STABLE
Product: Base System Reporter: Tony Frank <tony>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.2.8-STABLE   
Hardware: Any   
OS: Any   

Description Tony Frank 1999-12-15 14:10:01 UTC
If the kernel option 'BRIDGE' was added, kernel would fail to compile

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;
How-To-Repeat: add option 'BRIDGE' to your kernel config under 2.2-STABLE
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-12-17 20:51:43 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR. 
Comment 2 dd freebsd_committer freebsd_triage 2001-07-22 16:17:11 UTC
State Changed
From-To: open->closed

transient build error