NG_HUB(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… 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