Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Succeed binding to multicast address for now: O...
details: https://anonhg.NetBSD.org/src/rev/f5cf43ccc11e
branches: trunk
changeset: 332919:f5cf43ccc11e
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 11 23:07:39 2014 +0000
description:
Succeed binding to multicast address for now: Open questions:
Open questions:
http://mail-index.netbsd.org/tech-net/2014/07/23/msg004714.html
diffstat:
sys/netinet6/in6_pcb.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 5bce10865eaa -r f5cf43ccc11e sys/netinet6/in6_pcb.c
--- a/sys/netinet6/in6_pcb.c Sat Oct 11 23:04:42 2014 +0000
+++ b/sys/netinet6/in6_pcb.c Sat Oct 11 23:07:39 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_pcb.c,v 1.130 2014/10/11 20:53:16 christos Exp $ */
+/* $NetBSD: in6_pcb.c,v 1.131 2014/10/11 23:07:39 christos Exp $ */
/* $KAME: in6_pcb.c,v 1.84 2001/02/08 18:02:08 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_pcb.c,v 1.130 2014/10/11 20:53:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_pcb.c,v 1.131 2014/10/11 23:07:39 christos Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -233,6 +233,8 @@
ifa_ifwithaddr((struct sockaddr *)&sin) == 0)
return EADDRNOTAVAIL;
}
+ } else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) {
+ // succeed
} else if (!IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
struct ifaddr *ia = NULL;
Home |
Main Index |
Thread Index |
Old Index