diff options
author | 2008-12-07 10:10:33 +0000 | |
---|---|---|
committer | 2008-12-07 10:10:33 +0000 | |
commit | 0e64823387359a479298b7900ce3b197c9ea24f6 (patch) | |
tree | 4fc5efcc30546073b943c074423b82e92c240e8d /lib/libc | |
parent | - man page name is keybound, not keyok (diff) | |
download | wireguard-openbsd-0e64823387359a479298b7900ce3b197c9ea24f6.tar.xz wireguard-openbsd-0e64823387359a479298b7900ce3b197c9ea24f6.zip |
Document that ethers_aton returns NULL for invalid addresses.
Suggested by and ok claudio@, ok jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/ethers.3 | 6 |
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 |