diff options
| author | weerd <> | 2008-12-07 10:10:33 +0000 |
|---|---|---|
| committer | weerd <> | 2008-12-07 10:10:33 +0000 |
| commit | 299c688a91b05f991ab776a587e566a486c25318 (patch) | |
| tree | cf38038a94bc292c2c8fc26547d3277cd261df66 /src/lib/libc | |
| parent | f078cd2ae39ede1a6a6efeb3b0601af2b971025e (diff) | |
| download | openbsd-299c688a91b05f991ab776a587e566a486c25318.tar.gz openbsd-299c688a91b05f991ab776a587e566a486c25318.tar.bz2 openbsd-299c688a91b05f991ab776a587e566a486c25318.zip | |
Document that ethers_aton returns NULL for invalid addresses.
Suggested by and ok claudio@, ok jmc@
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/ethers.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/net/ethers.3 b/src/lib/libc/net/ethers.3 index 435a52696a..aa7249dc47 100644 --- a/src/lib/libc/net/ethers.3 +++ b/src/lib/libc/net/ethers.3 | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | .\" $OpenBSD: ethers.3,v 1.19 2007/05/31 19:19:30 jmc Exp $ | 1 | .\" $OpenBSD: ethers.3,v 1.20 2008/12/07 10:10:33 weerd Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Written by roland@frob.com. Public domain. | 3 | .\" Written by roland@frob.com. Public domain. |
| 4 | .\" | 4 | .\" |
| 5 | .Dd $Mdocdate: May 31 2007 $ | 5 | .Dd $Mdocdate: December 7 2008 $ |
| 6 | .Dt ETHERS 3 | 6 | .Dt ETHERS 3 |
| 7 | .Os | 7 | .Os |
| 8 | .Sh NAME | 8 | .Sh NAME |
| @@ -53,6 +53,8 @@ converts an | |||
| 53 | string of the same form and to a structure | 53 | string of the same form and to a structure |
| 54 | containing the 6 octets of the address. | 54 | containing the 6 octets of the address. |
| 55 | It returns a pointer to a static structure that is reused for each call. | 55 | It returns a pointer to a static structure that is reused for each call. |
| 56 | .Fn ether_aton | ||
| 57 | will return NULL if the string does not represent a valid address. | ||
| 56 | .Pp | 58 | .Pp |
| 57 | The | 59 | The |
| 58 | .Fn ether_ntohost | 60 | .Fn ether_ntohost |
