ng_hub(4freebsd)

ng_hub4freebsd

Packet distribution netgraph node type

Usage

#include <netgraph/ng_hub.h>

Overview

The hub node type provides a simple mechanism for distributing packets over several links. Packets received on any of the hooks are forwarded out the other hooks. Packets are not altered in any way.

Hooks

A hub node accepts any request to connect, regardless of the hook name, as long as the name is unique.

Control messages

This node type supports the generic control messages, plus the following:

NGM_HUB_SET_PERSISTENT (setpersistent)

This command sets the persistent flag on the node, and takes no arguments.

Shutdown

This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when all hooks have been disconnected. Setting the persistent flag via a NGM_HUB_SET_PERSISTENT control message disables automatic node shutdown when the last hook gets disconnected.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

History

The ng_hub node type appeared in FreeBSD 5.3.

Authors

Ruslan Ermilov ⟨[email protected]⟩

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.