summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorPaul de Weerd <weerd@cvs.openbsd.org>2008-12-07 10:10:34 +0000
committerPaul de Weerd <weerd@cvs.openbsd.org>2008-12-07 10:10:34 +0000
commit3663b5156ee0514367820c37a8916b20c0023c6c (patch)
tree7ccfd14ea81f72536ea13b19cc73af173b5b0204 /lib/libc/net
parentebe414cc8d4e025f8ceb56e63d00c741eb8095e1 (diff)
Document that ethers_aton returns NULL for invalid addresses.
Suggested by and ok claudio@, ok jmc@
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/ethers.36
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/net/ethers.3 b/lib/libc/net/ethers.3
index 435a52696ad..aa7249dc472 100644
--- a/lib/libc/net/ethers.3
+++ b/lib/libc/net/ethers.3
@@ -1,8 +1,8 @@
-.\" $OpenBSD: ethers.3,v 1.19 2007/05/31 19:19:30 jmc Exp $
+.\" $OpenBSD: ethers.3,v 1.20 2008/12/07 10:10:33 weerd Exp $
.\"
.\" Written by roland@frob.com. Public domain.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 7 2008 $
.Dt ETHERS 3
.Os
.Sh NAME
@@ -53,6 +53,8 @@ converts an
string of the same form and to a structure
containing the 6 octets of the address.
It returns a pointer to a static structure that is reused for each call.
+.Fn ether_aton
+will return NULL if the string does not represent a valid address.
.Pp
The
.Fn ether_ntohost