diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1999-11-21 12:03:00 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1999-11-21 12:03:00 +0000 |
| commit | 93abfafb05fd271275032c15ed4ca0c705d69a2a (patch) | |
| tree | d7719460074f014ce2bfa0516ed6bff2d615e519 /sys/modules/netgraph/socket | |
| parent | 6faf164ce90e5a30225002a1bad41834a6a5fc8b (diff) | |
Notes
Diffstat (limited to 'sys/modules/netgraph/socket')
| -rw-r--r-- | sys/modules/netgraph/socket/ng_socket.4 | 10 | ||||
| -rw-r--r-- | sys/modules/netgraph/socket/ng_socket.8 | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sys/modules/netgraph/socket/ng_socket.4 b/sys/modules/netgraph/socket/ng_socket.4 index 1ee388fc3b74..69dcd3f81de8 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 1ee388fc3b74..69dcd3f81de8 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 |
