Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Apply patch from PR 23990 by Greg Troxel (s/AF_DLI/A...
details: https://anonhg.NetBSD.org/src/rev/b8d157b7ac28
branches: trunk
changeset: 571366:b8d157b7ac28
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Nov 20 00:53:13 2004 +0000
description:
Apply patch from PR 23990 by Greg Troxel (s/AF_DLI/AF_LINK/ in a comment):
<net/if_dl.h> defines struct sockaddr_dl. On the line defining member
"sdl_family" (which overlaps "sa_family" in struct sockaddr), the
comment says AF_DLI.
But,
1) AF_DLI is said to be a DEC Direct data link interface
(sys/socket.h)
2) The kernel actually sends sockaddr_dl structs with AF_LINK.
diffstat:
sys/net/if_dl.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 37468a9ae6c7 -r b8d157b7ac28 sys/net/if_dl.h
--- a/sys/net/if_dl.h Fri Nov 19 22:05:23 2004 +0000
+++ b/sys/net/if_dl.h Sat Nov 20 00:53:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_dl.h,v 1.12 2003/08/07 16:32:51 agc Exp $ */
+/* $NetBSD: if_dl.h,v 1.13 2004/11/20 00:53:13 wiz Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -64,7 +64,7 @@
*/
struct sockaddr_dl {
u_char sdl_len; /* Total length of sockaddr */
- sa_family_t sdl_family; /* AF_DLI */
+ sa_family_t sdl_family; /* AF_LINK */
u_int16_t sdl_index; /* if != 0, system given index for interface */
u_char sdl_type; /* interface type */
u_char sdl_nlen; /* interface name length, no trailing 0 reqd. */
Home |
Main Index |
Thread Index |
Old Index