From 299c688a91b05f991ab776a587e566a486c25318 Mon Sep 17 00:00:00 2001 From: weerd <> Date: Sun, 7 Dec 2008 10:10:33 +0000 Subject: Document that ethers_aton returns NULL for invalid addresses. Suggested by and ok claudio@, ok jmc@ --- src/lib/libc/net/ethers.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ -.\" $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 -- cgit v1.2.3-55-g6feb