summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/man/man4/ng_socket.410
-rw-r--r--sys/modules/netgraph/socket/ng_socket.410
-rw-r--r--sys/modules/netgraph/socket/ng_socket.810
3 files changed, 30 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
diff --git a/sys/modules/netgraph/socket/ng_socket.4 b/sys/modules/netgraph/socket/ng_socket.4
index 1ee388f..69dcd3f 100644
--- a/sys/modules/netgraph/socket/ng_socket.4
+++ b/sys/modules/netgraph/socket/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
diff --git a/sys/modules/netgraph/socket/ng_socket.8 b/sys/modules/netgraph/socket/ng_socket.8
index 1ee388f..69dcd3f 100644
--- a/sys/modules/netgraph/socket/ng_socket.8
+++ b/sys/modules/netgraph/socket/ng_socket.8
@@ -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