Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 fix u bit in interface identifier for ether and...
details: https://anonhg.NetBSD.org/src/rev/99a5c126133d
branches: trunk
changeset: 476147:99a5c126133d
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Sep 08 00:50:15 1999 +0000
description:
fix u bit in interface identifier for ether and p2p-802 interfacde.
diffstat:
sys/netinet6/in6_ifattach.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r a4289d422285 -r 99a5c126133d sys/netinet6/in6_ifattach.c
--- a/sys/netinet6/in6_ifattach.c Tue Sep 07 22:54:45 1999 +0000
+++ b/sys/netinet6/in6_ifattach.c Wed Sep 08 00:50:15 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_ifattach.c,v 1.5 1999/09/05 01:57:10 itojun Exp $ */
+/* $NetBSD: in6_ifattach.c,v 1.6 1999/09/08 00:50:15 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -315,6 +315,8 @@
if (laddr == NULL)
break;
ieee802_to_eui64(&ia->ia_addr.sin6_addr.s6_addr8[8], laddr);
+ /* invert u bit to convert EUI64 to RFC2373 interface ID. */
+ ia->ia_addr.sin6_addr.s6_addr8[8] ^= 0x02;
if (found_first_ifid == 0) {
if (in6_ifattach_getifid(ifp) == 0)
in6_ifattach_p2p();
Home |
Main Index |
Thread Index |
Old Index