summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-24 14:52:05 +0000
committerbrian <brian@FreeBSD.org>2001-08-24 14:52:05 +0000
commit94dfd084a9d9823da6cf6925d028933aac03ff07 (patch)
treefd9ee866300aa6c83435e8748a83fa43bd341345 /lib
parent29c24377ac4c48709df9368bed272886f8f90ebd (diff)
downloadFreeBSD-src-94dfd084a9d9823da6cf6925d028933aac03ff07.zip
FreeBSD-src-94dfd084a9d9823da6cf6925d028933aac03ff07.tar.gz
Explain what the return value from NgRecvMsg() and NgRecvData() means,
specifically that 0 means the socket has been closed.
Diffstat (limited to 'lib')
-rw-r--r--lib/libnetgraph/netgraph.36
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libnetgraph/netgraph.3 b/lib/libnetgraph/netgraph.3
index feff469..bf2de91 100644
--- a/lib/libnetgraph/netgraph.3
+++ b/lib/libnetgraph/netgraph.3
@@ -170,6 +170,9 @@ is non-NULL, it must point to a buffer of at least
bytes, which will be filled in (and NUL terminated) with the path to
the node from which the message was received.
.Pp
+The length of the control message is returned.
+A return value of zero indicates that the socket was closed.
+.Pp
.Fn NgRecvAsciiMsg
works exactly like
.Fn NgRecvMsg ,
@@ -206,6 +209,9 @@ is non-NULL, it must point to a buffer of at least
bytes, which will be filled in (and NUL terminated) with the name of
the hook on which the data was received.
.Pp
+The length of the packet is returned.
+A return value of zero indicates that the socket was closed.
+.Pp
.Fn NgSetDebug
and
.Fn NgSetErrLog
OpenPOWER on IntegriCloud