summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ethers.3
diff options
context:
space:
mode:
authoraaron <>2000-04-18 03:01:33 +0000
committeraaron <>2000-04-18 03:01:33 +0000
commit6e79b911ce0057b5b91d0f9cedd766e0163fb043 (patch)
tree9478c878ca3f3846100f116eeb1bed16f321f335 /src/lib/libc/net/ethers.3
parent59ca3f5f8991ab72904434fb49ef0999d64ae2e8 (diff)
downloadopenbsd-6e79b911ce0057b5b91d0f9cedd766e0163fb043.tar.gz
openbsd-6e79b911ce0057b5b91d0f9cedd766e0163fb043.tar.bz2
openbsd-6e79b911ce0057b5b91d0f9cedd766e0163fb043.zip
Repairs, mostly removing hard sentence breaks.
Diffstat (limited to 'src/lib/libc/net/ethers.3')
-rw-r--r--src/lib/libc/net/ethers.320
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/libc/net/ethers.3 b/src/lib/libc/net/ethers.3
index 39968f3e65..8c5066a760 100644
--- a/src/lib/libc/net/ethers.3
+++ b/src/lib/libc/net/ethers.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ethers.3,v 1.11 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: ethers.3,v 1.12 2000/04/18 03:01:31 aaron Exp $
2.\" 2.\"
3.\" Written by roland@frob.com. Public domain. 3.\" Written by roland@frob.com. Public domain.
4.\" 4.\"
@@ -41,15 +41,15 @@ function converts this structure into an
41string of the form 41string of the form
42.Dq xx:xx:xx:xx:xx:xx , 42.Dq xx:xx:xx:xx:xx:xx ,
43consisting of 6 hexadecimal numbers separated 43consisting of 6 hexadecimal numbers separated
44by colons. It returns a pointer to a static buffer that is reused for 44by colons.
45each call. 45It returns a pointer to a static buffer that is reused for each call.
46The 46The
47.Fn ether_aton 47.Fn ether_aton
48converts an 48converts an
49.Tn ASCII 49.Tn ASCII
50string of the same form and to a structure 50string of the same form and to a structure
51containing the 6 octets of the address. It returns a pointer to a 51containing the 6 octets of the address.
52static structure that is reused for each call. 52It returns a pointer to a static structure that is reused for each call.
53.Pp 53.Pp
54The 54The
55.Fn ether_ntohost 55.Fn ether_ntohost
@@ -61,13 +61,15 @@ addresses,
61The 61The
62.Fn ether_ntohost 62.Fn ether_ntohost
63function looks up the given Ethernet address and writes the associated 63function looks up the given Ethernet address and writes the associated
64host name into the character buffer passed. This buffer should be 64host name into the character buffer passed.
65This buffer should be
65.Dv MAXHOSTNAMELEN 66.Dv MAXHOSTNAMELEN
66characters in size. 67characters in size.
67The 68The
68.Fn ether_hostton 69.Fn ether_hostton
69function looks up the given host name and writes the associated 70function looks up the given host name and writes the associated
70Ethernet address into the structure passed. Both functions return 71Ethernet address into the structure passed.
72Both functions return
71zero if they find the requested host name or address, and \-1 if not. 73zero if they find the requested host name or address, and \-1 if not.
72.Pp 74.Pp
73Each call reads 75Each call reads
@@ -90,8 +92,8 @@ function parses a line from the
90.Pa /etc/ethers 92.Pa /etc/ethers
91file and fills in the passed 93file and fills in the passed
92.Li struct ether_addr 94.Li struct ether_addr
93and character buffer with the Ethernet address and host name on the line. It 95and character buffer with the Ethernet address and host name on the line.
94returns zero if the line was successfully parsed and \-1 if not. 96It returns zero if the line was successfully parsed and \-1 if not.
95The character buffer should be 97The character buffer should be
96.Dv MAXHOSTNAMELEN 98.Dv MAXHOSTNAMELEN
97characters in size. 99characters in size.