logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ng_hub — packet distribution netgraph node type

Authors

       Ruslan Ermilov <ru@FreeBSD.org>

Debian                                             May 5, 2010                                         NG_HUB(4)

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.

Description

       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.

History

       The ng_hub node type appeared in FreeBSD 5.3.

Hooks

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

Name

       ng_hub — packet distribution netgraph node type

See Also

netgraph(4), ng_bridge(4), ng_ether(4), ng_one2many(4), ngctl(8), nghook(8)

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.

Synopsis

#include<netgraph/ng_hub.h>

See Also