Deleted Added
sdiff udiff text old ( 50476 ) new ( 57686 )
full compact
1.\" Copyright (c) 1995
2.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\" $FreeBSD: head/lib/libc/net/ethers.3 50476 1999-08-28 00:22:10Z peter $
32.\"
33.Dd April 12, 1995
34.Dt ETHERS 3
35.Os FreeBSD 2.1
36.Sh NAME
37.Nm ethers ,
38.Nm ether_line ,
39.Nm ether_aton ,

--- 41 unchanged lines hidden (view full) ---

81an
82.Tn ASCII
83string in
84.Xr ethers 5
85format and sets
86.Ar e
87to the ethernet address specified in the string and
88.Ar h
89to the hostname. This function is used to parse lines from
90.Pa /etc/ethers
91into their component parts.
92.Pp
93The
94.Fn ether_aton
95function converts an
96.Tn ASCII
97representation of an ethernet address into an
98.Ar ether_addr
99structure. Likewise,
100.Fn ether_ntoa
101converts an ethernet address specified as an
102.Ar ether_addr
103structure into an
104.Tn ASCII
105string.
106.Pp
107The

--- 19 unchanged lines hidden (view full) ---

127.Ar e
128and the hostname in the supplied string
129.Ar h .
130.Pp
131On success,
132.Fn ether_ntoa
133returns a pointer to a string containing an
134.Tn ASCII
135representation of an ethernet address. If it is unable to convert
136the supplied
137.Ar ether_addr
138structure, it returns a
139.Dv NULL
140pointer. Likewise,
141.Fn ether_aton
142returns a pointer to an
143.Ar ether_addr
144structure on success and a
145.Dv NULL
146pointer on failure.
147.Pp
148The

--- 44 unchanged lines hidden ---