Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 bark if sdl_alen == 0. test code for KAME PR 235.
details: https://anonhg.NetBSD.org/src/rev/21c2cbb6035f
branches: trunk
changeset: 484845:21c2cbb6035f
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Apr 13 14:32:53 2000 +0000
description:
bark if sdl_alen == 0. test code for KAME PR 235.
diffstat:
sys/netinet6/nd6.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r dc2cf3588bbf -r 21c2cbb6035f sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Thu Apr 13 14:19:57 2000 +0000
+++ b/sys/netinet6/nd6.c Thu Apr 13 14:32:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.c,v 1.22 2000/04/13 14:11:06 itojun Exp $ */
+/* $NetBSD: nd6.c,v 1.23 2000/04/13 14:32:53 itojun Exp $ */
/* $KAME: nd6.c,v 1.41 2000/02/24 16:34:50 itojun Exp $ */
/*
@@ -1866,8 +1866,11 @@
return(0);
}
sdl = SDL(rt->rt_gateway);
- if (sdl->sdl_alen != 0)
- bcopy(LLADDR(sdl), desten, sdl->sdl_alen);
+ if (sdl->sdl_alen == 0) {
+ printf("nd6_storelladdr: sdl_alen == 0\n");
+ return(0);
+ }
+ bcopy(LLADDR(sdl), desten, sdl->sdl_alen);
return(1);
}
Home |
Main Index |
Thread Index |
Old Index