summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-08-15 01:17:44 +0000
committerarchie <archie@FreeBSD.org>2000-08-15 01:17:44 +0000
commit9542d4a68d6b9885288152bbde514d54e291e8b6 (patch)
tree87f96a92c97569c8e9970b805e504432f410be0a /share
parentd826d6c208f3cdd33a7a9e1b9f534515a595be56 (diff)
downloadFreeBSD-src-9542d4a68d6b9885288152bbde514d54e291e8b6.zip
FreeBSD-src-9542d4a68d6b9885288152bbde514d54e291e8b6.tar.gz
Document three new control messages.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/ng_ether.416
1 files changed, 16 insertions, 0 deletions
diff --git a/share/man/man4/ng_ether.4 b/share/man/man4/ng_ether.4
index a772e3a..54e0175 100644
--- a/share/man/man4/ng_ether.4
+++ b/share/man/man4/ng_ether.4
@@ -135,10 +135,23 @@ Normally this is the same as the name of the node.
Returns the global index of the associated interface as a 32 bit integer.
.It Dv NGM_ETHER_GET_ENADDR
Returns the device's unique six byte Ethernet address.
+.It Dv NGM_ETHER_SET_ENADDR
+Sets the device's unique six byte Ethernet address.
+This control message is equivalent to using the
+.Dv SIOCSIFLLADDR
+.Xr ioctl 2
+system call.
.It Dv NGM_ETHER_SET_PROMISC
Enable or disable promiscuous mode.
This message includes a single 32 bit integer flag that enables or
disables promiscuous mode on the interface.
+.It Dv NGM_ETHER_GET_PROMISC
+Get the current value of the node's promiscuous flag.
+The returned value is always either one or zero.
+Note that this flag reflects the node's own promiscuous setting
+and does not necessarily reflect the promiscuous state of the actual
+interface, which can be affected by other means (e.g.,
+.Xr bpf 4 ).
.It Dv NGM_ETHER_SET_AUTOSRC
Sets the automatic source address override flag.
This message includes a single 32 bit integer flag that causes
@@ -147,6 +160,9 @@ address field overwritten with the device's unique Ethernet address.
If this flag is set to zero, the source address in outgoing packets
is not modified.
The default setting for this flag is enabled.
+.It Dv NGM_ETHER_GET_AUTOSRC
+Get the current value of the node's source address override flag.
+The returned value is always either one or zero.
.El
.Sh SHUTDOWN
This node is persistent for as long as the interface exists.
OpenPOWER on IntegriCloud