Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Set the socket family for the network mask.
details: https://anonhg.NetBSD.org/src/rev/b15b11d8a02c
branches: trunk
changeset: 784449:b15b11d8a02c
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Jan 28 17:57:34 2013 +0000
description:
Set the socket family for the network mask.
diffstat:
sys/netinet6/nd6_rtr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 79bb27fd21d0 -r b15b11d8a02c sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c Mon Jan 28 17:04:40 2013 +0000
+++ b/sys/netinet6/nd6_rtr.c Mon Jan 28 17:57:34 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_rtr.c,v 1.84 2012/06/25 17:25:29 abs Exp $ */
+/* $NetBSD: nd6_rtr.c,v 1.85 2013/01/28 17:57:34 joerg Exp $ */
/* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.84 2012/06/25 17:25:29 abs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.85 2013/01/28 17:57:34 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1674,6 +1674,7 @@
* ifa->ifa_rtrequest = nd6_rtrequest;
*/
memset(&mask6, 0, sizeof(mask6));
+ mask6.sin6_family = AF_INET6;
mask6.sin6_len = sizeof(mask6);
mask6.sin6_addr = pr->ndpr_mask;
/* rtrequest() will probably set RTF_UP, but we're not sure. */
Home |
Main Index |
Thread Index |
Old Index