Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 fix mergo
details: https://anonhg.NetBSD.org/src/rev/fbb725fb5c8e
branches: trunk
changeset: 476542:fbb725fb5c8e
user: is <is%NetBSD.org@localhost>
date: Sun Sep 19 21:42:23 1999 +0000
description:
fix mergo
diffstat:
sys/netinet6/in6_ifattach.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r a1e68a202488 -r fbb725fb5c8e sys/netinet6/in6_ifattach.c
--- a/sys/netinet6/in6_ifattach.c Sun Sep 19 21:31:33 1999 +0000
+++ b/sys/netinet6/in6_ifattach.c Sun Sep 19 21:42:23 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_ifattach.c,v 1.8 1999/09/19 21:31:34 is Exp $ */
+/* $NetBSD: in6_ifattach.c,v 1.9 1999/09/19 21:42:23 is Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -355,8 +355,10 @@
rtflag = RTF_CLONING;
if (laddr == NULL)
break;
- onebyte_to_eui64(&ia->ia_addr.sin6_addr.s6_addr8[8], laddr);
- break;
+ if (laddr_to_eui64(&ia->ia_addr.sin6_addr.s6_addr8[8],
+ laddr, 1) != 0) {
+ break;
+ }
}
ia->ia_ifa.ifa_metric = ifp->if_metric;
Home |
Main Index |
Thread Index |
Old Index