Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/ng_bridge.4
Show All 28 Lines | |||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY | .\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY | ||||
.\" OF SUCH DAMAGE. | .\" OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" Author: Archie Cobbs <archie@FreeBSD.org> | .\" Author: Archie Cobbs <archie@FreeBSD.org> | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd April 29, 2020 | .Dd January 08, 2021 | ||||
.Dt NG_BRIDGE 4 | .Dt NG_BRIDGE 4 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm ng_bridge | .Nm ng_bridge | ||||
.Nd Ethernet bridging netgraph node type | .Nd Ethernet bridging netgraph node type | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/types.h | .In sys/types.h | ||||
.In netgraph/ng_bridge.h | .In netgraph/ng_bridge.h | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
hook of an | hook of an | ||||
.Xr ng_ether 4 | .Xr ng_ether 4 | ||||
node to an | node to an | ||||
.Dv uplink | .Dv uplink | ||||
hook of the bridge, and ignore the complexity of the outside world. | hook of the bridge, and ignore the complexity of the outside world. | ||||
Frames with unknown MACs are always sent out to | Frames with unknown MACs are always sent out to | ||||
.Dv uplink | .Dv uplink | ||||
hooks, so no functionality is lost. | hooks, so no functionality is lost. | ||||
.Pp | |||||
Frames with unknown destination MAC addresses are replicated to any | |||||
available hook, unless the first connected hook is an | |||||
.Dv uplink | |||||
hook. | |||||
In this case the node assumes, that all unknown MAC addresses are | |||||
located soley on the | |||||
.Dv uplink | |||||
hooks and only those hooks will be used to send out frames with | |||||
unknown destination MACs. | |||||
If the first connected hook is an | |||||
.Dv link | |||||
hook, the node will replicate such frames to all types of hooks, | |||||
even if | |||||
.Dv uplink | |||||
hooks are connected later. | |||||
.Sh CONTROL MESSAGES | .Sh CONTROL MESSAGES | ||||
This node type supports the generic control messages, plus the | This node type supports the generic control messages, plus the | ||||
following: | following: | ||||
.Bl -tag -width foo | .Bl -tag -width foo | ||||
.It Dv NGM_BRIDGE_SET_CONFIG Pq Ic setconfig | .It Dv NGM_BRIDGE_SET_CONFIG Pq Ic setconfig | ||||
Set the node configuration. | Set the node configuration. | ||||
This command takes a | This command takes a | ||||
.Dv "struct ng_bridge_config" | .Dv "struct ng_bridge_config" | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |