|| FreeBSD Kernel Interfaces Manual
generic Ethernet interface netgraph node type
netgraph node implements the generic Ethernet interface. When
node is created, a new interface appears which is accessible via
. These interfaces are named “
”, etc. When a node is shut down, the corresponding interface is removed, and the interface name becomes available for reuse by future
nodes. New nodes always take the first unused interface.
node has a single hook named
, which should be connected to the Ethernet downstream, for example, to the
node. Packets transmitted via the interface flow out this hook. Similarly, packets received on the hook go to the protocol stack as packets received by any real Ethernet interface.
This node type supports the generic control messages, plus the following:
Set link-level address of the interface. Requires
struct ether_addr as an argument. This message also has an ASCII version, called “
set”, which requires as an argument an ASCII string consisting of 6 colon-separated hex digits.
Return the name of the associated interface as a
NUL-terminated ASCII string.
Return the list of link-level addresses associated with the node.
This node shuts down upon receipt of a
control message. The associated interface is removed and its name becomes available for reuse by future
Unlike most other node types, an eiface node does not go away when all hooks have been disconnected; rather, and explicit NGM_SHUTDOWN control message is required.
eiface node type was implemented in
eiface node type was written by
. This manual page was written by