summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ng_socket.4
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-11-21 12:03:00 +0000
committerjulian <julian@FreeBSD.org>1999-11-21 12:03:00 +0000
commitd655bdb1cd68118a4aef6af9143d8ab360890bc8 (patch)
treed7719460074f014ce2bfa0516ed6bff2d615e519 /share/man/man4/ng_socket.4
parentff227a07ea9a4c70d2185c81b1cfc4e65ecca43b (diff)
downloadFreeBSD-src-d655bdb1cd68118a4aef6af9143d8ab360890bc8.zip
FreeBSD-src-d655bdb1cd68118a4aef6af9143d8ab360890bc8.tar.gz
Document new feature (support for write(2) when 1 hook attached).
Diffstat (limited to 'share/man/man4/ng_socket.4')
-rw-r--r--share/man/man4/ng_socket.410
1 files changed, 10 insertions, 0 deletions
diff --git a/share/man/man4/ng_socket.4 b/share/man/man4/ng_socket.4
index 1ee388f..69dcd3f 100644
--- a/share/man/man4/ng_socket.4
+++ b/share/man/man4/ng_socket.4
@@ -101,6 +101,16 @@ contains the name of the
.Em hook
on which the data was received or should be sent.
.Pp
+As a special case, to allow netgraph data sockets to be used as stdin or stdout
+on naive programs, a
+.Xr sendto 2
+with a NULL sockaddr pointer, a
+.Xr send 2
+or a
+.Xr write 2
+will succeed in the case where there is exactly ONE hook attached to
+the socket node, (and thus the path is unambiguous).
+.Pp
There is a user library that simplifies using netgraph sockets; see
.Xr netgraph 3 .
.Sh HOOKS
OpenPOWER on IntegriCloud