Query: ng_eiface
OS: freebsd
Section: 4
Links: freebsd man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NG_EIFACE(4) BSD Kernel Interfaces Manual NG_EIFACE(4)NAMEng_eiface -- generic Ethernet interface netgraph node typeSYNOPSIS#include <netgraph/ng_eiface.h>DESCRIPTIONThe eiface netgraph node implements the generic Ethernet interface. When eiface node is created, a new interface appears which is accessible via ifconfig(8). These interfaces are named ``ngeth0'', ``ngeth1'', etc. When a node is shut down, the corresponding interface is removed, and the interface name becomes available for reuse by future eiface nodes. New nodes always take the first unused interface.HOOKSAn eiface node has a single hook named ether, which should be connected to the Ethernet downstream, for example, to the ng_vlan(4) 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.CONTROL MESSAGESThis node type supports the generic control messages, plus the following: NGM_EIFACE_SET (set) 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. NGM_EIFACE_GET_IFNAME (getifname) Return the name of the associated interface as a NUL-terminated ASCII string. NGM_EIFACE_GET_IFADDRS Return the list of link-level addresses associated with the node.SHUTDOWNThis node shuts down upon receipt of a NGM_SHUTDOWN control message. The associated interface is removed and its name becomes available for reuse by future eiface nodes. Unlike most other node types, an eiface node does not go away when all hooks have been disconnected; rather, and explicit NGM_SHUTDOWN con- trol message is required.SEE ALSOnetgraph(4), ng_ether(4), ng_iface(4), ng_vlan(4), ifconfig(8), ngctl(8)HISTORYThe eiface node type was implemented in FreeBSD 4.6.AUTHORSThe eiface node type was written by Vitaly V Belekhov. This manual page was written by Gleb Smirnoff.BSDFebruary 3, 2005 BSD
Related Man Pages |
---|
ng_eiface(4) - freebsd |
ng_vlan(4) - centos |
ng_eiface(4) - netbsd |
ng_eiface(4) - minix |
ng_eiface(4) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
2 ip from one subnet my isp |