Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net Clarify that sdl->sdl_len must be initialized b...
details: https://anonhg.NetBSD.org/src/rev/d89463394ae2
branches: trunk
changeset: 474005:d89463394ae2
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Fri Jun 25 16:13:21 1999 +0000
description:
Clarify that sdl->sdl_len must be initialized before call to link_addr()
diffstat:
lib/libc/net/linkaddr.3 | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 78ce892a46e0 -r d89463394ae2 lib/libc/net/linkaddr.3
--- a/lib/libc/net/linkaddr.3 Fri Jun 25 15:11:02 1999 +0000
+++ b/lib/libc/net/linkaddr.3 Fri Jun 25 16:13:21 1999 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: linkaddr.3,v 1.5 1999/03/22 19:44:52 garbled Exp $
+.\" $NetBSD: linkaddr.3,v 1.6 1999/06/25 16:13:21 sommerfeld Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -66,6 +66,13 @@
link level address itself, and the interface name or number, if present.
This facility is experimental and is still subject to change.
.Pp
+Prior to a call to
+.Fn link_addr ,
+.Fa sdl->sdl_len
+must be initialized to the size of the link-level socket structure,
+typically
+.Fa sizeof(struct sockaddr_dl) .
+.Pp
For
.Fn link_addr ,
the string
Home |
Main Index |
Thread Index |
Old Index