summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/link_addr.3
diff options
context:
space:
mode:
authoraaron <>1999-07-05 04:41:00 +0000
committeraaron <>1999-07-05 04:41:00 +0000
commitc47037b066169c61c5eefad3368f2da73ca4be54 (patch)
treefa80157fecd0fbb57811f82d8f3ce1366b44a203 /src/lib/libc/net/link_addr.3
parent5f78a44df1a8e524a82445f2fedb382128869a2a (diff)
downloadopenbsd-c47037b066169c61c5eefad3368f2da73ca4be54.tar.gz
openbsd-c47037b066169c61c5eefad3368f2da73ca4be54.tar.bz2
openbsd-c47037b066169c61c5eefad3368f2da73ca4be54.zip
repairs; better English, formatting, etc.
Diffstat (limited to 'src/lib/libc/net/link_addr.3')
-rw-r--r--src/lib/libc/net/link_addr.315
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/libc/net/link_addr.3 b/src/lib/libc/net/link_addr.3
index c96e24f441..b7ada81997 100644
--- a/src/lib/libc/net/link_addr.3
+++ b/src/lib/libc/net/link_addr.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: link_addr.3,v 1.5 1999/05/23 14:11:02 aaron Exp $ 1.\" $OpenBSD: link_addr.3,v 1.6 1999/07/05 04:40:59 aaron 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.
@@ -50,12 +50,11 @@
50.Ft char * 50.Ft char *
51.Fn link_ntoa "const struct sockaddr_dl *sdl" 51.Fn link_ntoa "const struct sockaddr_dl *sdl"
52.Sh DESCRIPTION 52.Sh DESCRIPTION
53The routine 53The
54.Fn link_addr 54.Fn link_addr
55interprets character strings representing 55function interprets character strings representing
56link-level addresses, returning binary information suitable 56link-level addresses, returning binary information suitable
57for use in system calls. 57for use in system calls.
58The routine
59.Fn link_ntoa 58.Fn link_ntoa
60takes 59takes
61a link-level 60a link-level
@@ -73,7 +72,7 @@ the string
73.Fa addr 72.Fa addr
74may contain 73may contain
75an optional network interface identifier of the form 74an optional network interface identifier of the form
76.Dq "name unit-number" , 75.Dq name unit-number ,
77suitable for the first argument to 76suitable for the first argument to
78.Xr ifconfig 8 , 77.Xr ifconfig 8 ,
79followed in all cases by a colon and 78followed in all cases by a colon and
@@ -95,7 +94,7 @@ represents an Ethernet address
95to be transmitted on the first Lance Ethernet interface. 94to be transmitted on the first Lance Ethernet interface.
96.Sh RETURN VALUES 95.Sh RETURN VALUES
97.Fn link_ntoa 96.Fn link_ntoa
98always returns a null terminated string. 97always returns a null-terminated string.
99.Fn link_addr 98.Fn link_addr
100has no return value. 99has no return value.
101(See 100(See
@@ -108,7 +107,7 @@ The
108.Fn link_addr 107.Fn link_addr
109and 108and
110.Fn link_ntoa 109.Fn link_ntoa
111functions appeared in 110functions appeared in
112.Bx 4.3 Reno . 111.Bx 4.3 Reno .
113.Sh BUGS 112.Sh BUGS
114The returned values for link_ntoa 113The returned values for link_ntoa
@@ -120,7 +119,7 @@ should diagnose improperly formed input, and there should be an unambiguous
120way to recognize this. 119way to recognize this.
121.Pp 120.Pp
122If the 121If the
123.Va sdl_len 122.Fa sdl_len
124field of the link socket address 123field of the link socket address
125.Fa sdl 124.Fa sdl
126is 0, 125is 0,