ng_hub4
Packet distribution netgraph node
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
53 releases since FreeBSD 4.11-RELEASE; the text changed 34 times.