NG_HUB(4)
π ng_hub(4) π
from the Kernel Interfaces Manual, bestie π«Ά
β¨ NAME β¨
ng_hub β packet distribution netgraph node type. That's the whole vibe: packets get distributed, netgraph-style π.
πΈ SYNOPSIS πΈ
#include <netgraph/ng_hub.h>
π¦ DESCRIPTION π¦
okay so 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 β literally just passed along. And packets are not altered in any way, no cap. It's giving βpure distribution, zero editsβ β¨.
π HOOKS π
A hub node accepts any request to connect, regardless of the hook name, as long as the name is unique. So yes bestie, come through β but pick a unique name π .
π 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 β zero, zilch, nada π«Ά.
π₯ 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 β so it doesn't ghost you when the last hook dips πβ¨.
π SEE ALSO π
iykyk, go check these out too:
β HISTORY β
The ng_hub node type appeared in FreeBSD 5.3. That's the origin story, periodt π¦.
π AUTHORS π
Ruslan Ermilov <ru@FreeBSD.org> β thank you bestie π«Ά.
okay that's the tea β β this page comes from the Debian edition, dated May 5, 2010, and it's NG_HUB(4), periodt π
β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2004 Ruslan Ermilov
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms