diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/link_addr.3 (renamed from src/lib/libc/net/linkaddr.3) | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/src/lib/libc/net/linkaddr.3 b/src/lib/libc/net/link_addr.3 index 1a2af9b30d..e6210ef2d0 100644 --- a/src/lib/libc/net/linkaddr.3 +++ b/src/lib/libc/net/link_addr.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $NetBSD: linkaddr.3,v 1.2 1995/02/25 06:20:48 cgd Exp $ | 1 | .\" $OpenBSD: link_addr.3,v 1.12 2007/05/31 19:19:30 jmc Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1993 | 3 | .\" Copyright (c) 1993 |
| 4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
| @@ -14,11 +14,7 @@ | |||
| 14 | .\" 2. Redistributions in binary form must reproduce the above copyright | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 15 | .\" notice, this list of conditions and the following disclaimer in the | 15 | .\" notice, this list of conditions and the following disclaimer in the |
| 16 | .\" documentation and/or other materials provided with the distribution. | 16 | .\" documentation and/or other materials provided with the distribution. |
| 17 | .\" 3. All advertising materials mentioning features or use of this software | 17 | .\" 3. Neither the name of the University nor the names of its contributors |
| 18 | .\" must display the following acknowledgement: | ||
| 19 | .\" This product includes software developed by the University of | ||
| 20 | .\" California, Berkeley and its contributors. | ||
| 21 | .\" 4. Neither the name of the University nor the names of its contributors | ||
| 22 | .\" may be used to endorse or promote products derived from this software | 18 | .\" may be used to endorse or promote products derived from this software |
| 23 | .\" without specific prior written permission. | 19 | .\" without specific prior written permission. |
| 24 | .\" | 20 | .\" |
| @@ -34,11 +30,9 @@ | |||
| 34 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 35 | .\" SUCH DAMAGE. | 31 | .\" SUCH DAMAGE. |
| 36 | .\" | 32 | .\" |
| 37 | .\" @(#)linkaddr.3 8.1 (Berkeley) 7/28/93 | 33 | .Dd $Mdocdate: May 31 2007 $ |
| 38 | .\" | ||
| 39 | .Dd July 28, 1993 | ||
| 40 | .Dt LINK_ADDR 3 | 34 | .Dt LINK_ADDR 3 |
| 41 | .Os BSD 4.4 | 35 | .Os |
| 42 | .Sh NAME | 36 | .Sh NAME |
| 43 | .Nm link_addr , | 37 | .Nm link_addr , |
| 44 | .Nm link_ntoa | 38 | .Nm link_ntoa |
| @@ -52,12 +46,11 @@ | |||
| 52 | .Ft char * | 46 | .Ft char * |
| 53 | .Fn link_ntoa "const struct sockaddr_dl *sdl" | 47 | .Fn link_ntoa "const struct sockaddr_dl *sdl" |
| 54 | .Sh DESCRIPTION | 48 | .Sh DESCRIPTION |
| 55 | The routine | 49 | The |
| 56 | .Fn link_addr | 50 | .Fn link_addr |
| 57 | interprets character strings representing | 51 | function interprets character strings representing |
| 58 | link-level addresses, returning binary information suitable | 52 | link-level addresses, returning binary information suitable |
| 59 | for use in system calls. | 53 | for use in system calls. |
| 60 | The routine | ||
| 61 | .Fn link_ntoa | 54 | .Fn link_ntoa |
| 62 | takes | 55 | takes |
| 63 | a link-level | 56 | a link-level |
| @@ -75,9 +68,9 @@ the string | |||
| 75 | .Fa addr | 68 | .Fa addr |
| 76 | may contain | 69 | may contain |
| 77 | an optional network interface identifier of the form | 70 | an optional network interface identifier of the form |
| 78 | .Dq "name unit-number" , | 71 | .Dq name unit-number , |
| 79 | suitable for the first argument to | 72 | suitable for the first argument to |
| 80 | .Xr ifconfig 4 , | 73 | .Xr ifconfig 8 , |
| 81 | followed in all cases by a colon and | 74 | followed in all cases by a colon and |
| 82 | an interface address in the form of | 75 | an interface address in the form of |
| 83 | groups of hexadecimal digits | 76 | groups of hexadecimal digits |
| @@ -93,26 +86,27 @@ low order bytes through high order bytes. | |||
| 93 | .\" .Pp | 86 | .\" .Pp |
| 94 | Thus | 87 | Thus |
| 95 | .Li le0:8.0.9.13.d.30 | 88 | .Li le0:8.0.9.13.d.30 |
| 96 | represents an ethernet address | 89 | represents an Ethernet address |
| 97 | to be transmitted on the first Lance ethernet interface. | 90 | to be transmitted on the first Lance Ethernet interface. |
| 98 | .Sh RETURN VALUES | 91 | .Sh RETURN VALUES |
| 99 | .Fn link_ntoa | 92 | .Fn link_ntoa |
| 100 | always returns a null terminated string. | 93 | always returns a NUL-terminated string. |
| 101 | .Fn link_addr | 94 | .Fn link_addr |
| 102 | has no return value. | 95 | has no return value. |
| 103 | (See | 96 | (See |
| 104 | .Sx BUGS . ) | 97 | .Sx BUGS . ) |
| 105 | .Sh SEE ALSO | 98 | .Sh SEE ALSO |
| 106 | .Xr iso 4 , | 99 | .Xr ifconfig 8 |
| 107 | .Sh HISTORY | 100 | .Sh HISTORY |
| 108 | The | 101 | The |
| 109 | .Fn link_addr | 102 | .Fn link_addr |
| 110 | and | 103 | and |
| 111 | .Fn link_ntoa | 104 | .Fn link_ntoa |
| 112 | functions appeared in | 105 | functions appeared in |
| 113 | .Bx 4.3 Reno . | 106 | .Bx 4.3 Reno . |
| 114 | .Sh BUGS | 107 | .Sh BUGS |
| 115 | The returned values for link_ntoa | 108 | The returned values for |
| 109 | .Fn link_ntoa | ||
| 116 | reside in a static memory area. | 110 | reside in a static memory area. |
| 117 | .Pp | 111 | .Pp |
| 118 | The function | 112 | The function |
| @@ -121,7 +115,7 @@ should diagnose improperly formed input, and there should be an unambiguous | |||
| 121 | way to recognize this. | 115 | way to recognize this. |
| 122 | .Pp | 116 | .Pp |
| 123 | If the | 117 | If the |
| 124 | .Va sdl_len | 118 | .Fa sdl_len |
| 125 | field of the link socket address | 119 | field of the link socket address |
| 126 | .Fa sdl | 120 | .Fa sdl |
| 127 | is 0, | 121 | is 0, |
