Commit Graph

21 Commits

Author SHA1 Message Date
Ruslan Ermilov
81ae4b8da9 Markup fixes. 2006-09-18 15:24:20 +00:00
Christian Brueffer
9e4e177fb2 Convert to the standard section 4 SYNOPSIS layout.
MFC after:	3 days
2006-08-13 18:44:18 +00:00
Andrew Thompson
3ab4f00990 Document the log_stp variable. 2006-08-02 04:11:25 +00:00
Andrew Thompson
76f1f010d5 Document that we can only bridge wireless interfaces in hostap mode, this is
becoming a faq.

MFC after:	1 week
2006-06-16 23:03:22 +00:00
Christian Brueffer
b350088186 Fix a formatting issue. 2006-05-20 10:19:53 +00:00
Andrew Thompson
93b23a8b16 Correct sentence, forwarding non IP packets is now an option. 2006-04-29 01:19:08 +00:00
Giorgos Keramidas
9dc894b630 Minor improvements after last revision.
Reviewed by:	thompsa
2006-04-28 22:37:16 +00:00
Andrew Thompson
25bcdd36e4 - use ath(4) in the wireless examples rather than the aging wi(4)
- make the packet filtering its own section and clarify a few points
 - note that the interfaces need to be upped [1]

PR:	docs/94545 [1]
2006-04-28 11:48:53 +00:00
Andrew Thompson
0908a232a3 Document the monitor mode and explain how it can be used. 2006-03-03 09:32:25 +00:00
Andrew Thompson
0a3ef4a3d4 Document which version of 802.1D STP we implement. 2006-03-02 20:50:33 +00:00
Andrew Thompson
7c2fb83a0b Add code that clears certain capabilities from the member interface, these are
restored when its removed from the bridge.

At the moment we only clear IFCAP_TXCSUM. Since a locally generated packet on
the bridge may be sent out any one or more interfaces it cant be assumed that
every card does hardware csums. Most bridges don't generate a lot of traffic
themselves so turning off offloading won't hurt, bridged packets are
unaffected.

Tested by:	Bruce Walker (bmw borderware.com)
MFC after:	5 days
2006-01-14 03:51:31 +00:00
Andrew Thompson
a47f91cdc4 When pfil(9) is enabled the bridge only considers ETHERTYPE_ARP, ETHERTYPE_IP and
ETHERTYPE_IPV6 frames. Change this to be a sysctl knob so that is able to still
bridge non-IP packets if desired.

Also return early if all pfil_* sysctls are turned off, the user obviously does
not want to filter on the bridge.
2005-12-29 09:39:15 +00:00
Andrew Thompson
73ff045c57 Add RFC 3378 EtherIP support. This change makes it possible to add gif
interfaces to bridges, which will then send and receive IP protocol 97 packets.
Packets are Ethernet frames with an EtherIP header prepended.

Obtained from:	NetBSD
MFC after:	2 weeks
2005-12-21 21:29:45 +00:00
Ruslan Ermilov
78ad54210f -mdoc sweep. 2005-11-18 10:56:28 +00:00
Andrew Thompson
4f3cfcc12b Clarify that any firewall that has pfil(9) hooks can be used.
Suggested by:	sam
Approved by:	mlaier (mentor)
MFC after:	3 days
2005-09-06 22:38:40 +00:00
Andrew Thompson
489fc2258f Previously the bridge MTU was set to ETHERMTU and could not be changed. Since
we can only bridge interfaces with the same value it meant that all members had
to be set at ETHERMTU as well.

Allow the first member to be added to define the MTU for the bridge, the check
still applies to all additional members.

Print an informative message if the MTU is incorrect [1]

Requested by:	Niki Denev [1]
Approved by:	mlaier (mentor)
MFC after:	3 days
2005-07-13 20:40:19 +00:00
Andrew Thompson
f7cbc4cc6e Fix a type-o in a bridging example.
Submitted by:	Niki Denev
Approved by:	mlaier (mentor)
Approved by:	re (blanket)
2005-06-27 10:58:22 +00:00
Ruslan Ermilov
a4be0b3cc1 (Mostly) markup fixes.
Approved by:	re (blanket)
2005-06-16 18:46:17 +00:00
Andrew Thompson
c8b0129238 Add dummynet(4) support to if_bridge, this code is largely based on bridge.c.
This is the final piece to match bridge.c in functionality, we can now be a
drop-in replacement.

Approved by:	mlaier (mentor)
2005-06-10 01:25:22 +00:00
Andrew Thompson
82116c339c Bring in IPFW layer2 filtering from bridge.c, this allows Ethernet filtering
using the layer2, mac and mac-type keywords.

This is one of the last features that bridge.c has over if_bridge and gets us
very close to a full functional replacement.

Approved by:	mlaier (mentor)
2005-06-07 21:20:18 +00:00
Andrew Thompson
31997bf223 Add if_bridge, which provides more advanced Ethernet bridging and 802.1d
spanning tree support.

Based on Jason Wright's bridge driver from OpenBSD, and modified by Jason R.
Thorpe in NetBSD.

Reviewed by:	mlaier, bms, green
Silence from:	-net
Approved by:	mlaier (mentor)
Obtained from:	NetBSD
2005-06-05 02:59:26 +00:00