ethers.3 (89362) | ethers.3 (108037) |
---|---|
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.\" | 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 89362 2002-01-14 16:59:03Z ru $ | 31.\" $FreeBSD: head/lib/libc/net/ethers.3 108037 2002-12-18 12:45:11Z ru $ |
32.\" 33.Dd April 12, 1995 34.Dt ETHERS 3 35.Os 36.Sh NAME 37.Nm ethers , 38.Nm ether_line , 39.Nm ether_aton , --- 71 unchanged lines hidden (view full) --- 111The 112.Fn ether_ntohost 113and 114.Fn ether_hostton 115functions map ethernet addresses to their corresponding hostnames 116as specified in the 117.Pa /etc/ethers 118database. | 32.\" 33.Dd April 12, 1995 34.Dt ETHERS 3 35.Os 36.Sh NAME 37.Nm ethers , 38.Nm ether_line , 39.Nm ether_aton , --- 71 unchanged lines hidden (view full) --- 111The 112.Fn ether_ntohost 113and 114.Fn ether_hostton 115functions map ethernet addresses to their corresponding hostnames 116as specified in the 117.Pa /etc/ethers 118database. |
119The |
|
119.Fn ether_ntohost | 120.Fn ether_ntohost |
121function |
|
120converts from ethernet address to hostname, and 121.Fn ether_hostton 122converts from hostname to ethernet address. 123.Sh RETURN VALUES | 122converts from ethernet address to hostname, and 123.Fn ether_hostton 124converts from hostname to ethernet address. 125.Sh RETURN VALUES |
126The |
|
124.Fn ether_line | 127.Fn ether_line |
128function |
|
125returns zero on success and non-zero if it was unable to parse 126any part of the supplied line 127.Ar l . 128It returns the extracted ethernet address in the supplied 129.Ar ether_addr 130structure 131.Ar e 132and the hostname in the supplied string --- 65 unchanged lines hidden --- | 129returns zero on success and non-zero if it was unable to parse 130any part of the supplied line 131.Ar l . 132It returns the extracted ethernet address in the supplied 133.Ar ether_addr 134structure 135.Ar e 136and the hostname in the supplied string --- 65 unchanged lines hidden --- |