|| FreeBSD Kernel Interfaces Manual
device netgraph node type
node is both a netgraph node and a system device interface. When a
node is created, a new device entry appears which is accessible via the regular file operators such as
The first node is created as /dev/ngd0, all subsequent nodes /dev/ngd1, /dev/ngd2, etc.
node has a single hook with an arbitrary name. All data coming in over the hook will be presented to the device for
. All data coming in from the device entry by
will be forwarded to the hook.
node supports one non-generic control message:
Returns device name corresponding to a node.
SHUTDOWN This node shuts down upon receipt of a
NGM_SHUTDOWN control message, or upon hook disconnection. The associated device entry is removed and becomes available for use by future
device node type was first implemented in