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 February 17, 2021 | .Dd May 13, 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 170 Lines • ▼ Show 20 Lines | |||||
This command sets the persistent flag on the node, and takes no arguments. | This command sets the persistent flag on the node, and takes no arguments. | ||||
.It Dv NGM_BRIDGE_MOVE_HOST Pq Ar movehost | .It Dv NGM_BRIDGE_MOVE_HOST Pq Ar movehost | ||||
This command takes a | This command takes a | ||||
.Vt "struct ng_bridge_move_host" | .Vt "struct ng_bridge_move_host" | ||||
as an argument. | as an argument. | ||||
It assigns the MAC | It assigns the MAC | ||||
.Va addr | .Va addr | ||||
to the | to the | ||||
.Va hook , | .Va hook . | ||||
which must not be assigned yet. | |||||
If the | If the | ||||
.Va hook | .Va hook | ||||
is the empty string, the incoming hook of the control message is | is the empty string, the incoming hook of the control message is | ||||
used as fallback. | used as fallback. | ||||
.Pp | |||||
If necessary, the MAC is removed from the currently assigned hook and | |||||
moved to the new one. | |||||
If the MAC is moved faster than | |||||
.Va minStableAge , | |||||
the hook is considered as a loop and will block traffic for | |||||
.Va loopTimeout | |||||
seconds. | |||||
.Bd -literal -offset 0n | .Bd -literal -offset 0n | ||||
struct ng_bridge_move_host { | struct ng_bridge_move_host { | ||||
u_char addr[ETHER_ADDR_LEN]; /* ethernet address */ | u_char addr[ETHER_ADDR_LEN]; /* ethernet address */ | ||||
char hook[NG_HOOKSIZ]; /* link where addr can be found */ | char hook[NG_HOOKSIZ]; /* link where addr can be found */ | ||||
}; | }; | ||||
.Ed | .Ed | ||||
.El | .El | ||||
.Sh SHUTDOWN | .Sh SHUTDOWN | ||||
Show All 26 Lines |