diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-18 03:01:36 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-18 03:01:36 +0000 |
commit | c2d5d31832de35b48a0e487f90b9a58abeb3a8ea (patch) | |
tree | 3dcc33b96ac33fca8fde9f5dff0db0a5afbb6ae4 /lib/libc/net/ethers.3 | |
parent | b6a043747e2041e97decf4b4c5a3b51c3b40b722 (diff) |
Repairs, mostly removing hard sentence breaks.
Diffstat (limited to 'lib/libc/net/ethers.3')
-rw-r--r-- | lib/libc/net/ethers.3 | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lib/libc/net/ethers.3 b/lib/libc/net/ethers.3 index 39968f3e65e..8c5066a7602 100644 --- a/lib/libc/net/ethers.3 +++ b/lib/libc/net/ethers.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ethers.3,v 1.11 1999/07/05 04:40:59 aaron Exp $ +.\" $OpenBSD: ethers.3,v 1.12 2000/04/18 03:01:31 aaron Exp $ .\" .\" Written by roland@frob.com. Public domain. .\" @@ -41,15 +41,15 @@ function converts this structure into an string of the form .Dq xx:xx:xx:xx:xx:xx , consisting of 6 hexadecimal numbers separated -by colons. It returns a pointer to a static buffer that is reused for -each call. +by colons. +It returns a pointer to a static buffer that is reused for each call. The .Fn ether_aton converts an .Tn ASCII 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. +containing the 6 octets of the address. +It returns a pointer to a static structure that is reused for each call. .Pp The .Fn ether_ntohost @@ -61,13 +61,15 @@ addresses, The .Fn ether_ntohost function looks up the given Ethernet address and writes the associated -host name into the character buffer passed. This buffer should be +host name into the character buffer passed. +This buffer should be .Dv MAXHOSTNAMELEN characters in size. The .Fn ether_hostton function looks up the given host name and writes the associated -Ethernet address into the structure passed. Both functions return +Ethernet address into the structure passed. +Both functions return zero if they find the requested host name or address, and \-1 if not. .Pp Each call reads @@ -90,8 +92,8 @@ function parses a line from the .Pa /etc/ethers file and fills in the passed .Li struct ether_addr -and character buffer with the Ethernet address and host name on the line. It -returns zero if the line was successfully parsed and \-1 if not. +and character buffer with the Ethernet address and host name on the line. +It returns zero if the line was successfully parsed and \-1 if not. The character buffer should be .Dv MAXHOSTNAMELEN characters in size. |