Module Name: src Committed By: christos Date: Sat Oct 11 23:07:39 UTC 2014
Modified Files: src/sys/netinet6: in6_pcb.c Log Message: Succeed binding to multicast address for now: Open questions: Open questions: http://mail-index.netbsd.org/tech-net/2014/07/23/msg004714.html To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.131 src/sys/netinet6/in6_pcb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet6/in6_pcb.c diff -u src/sys/netinet6/in6_pcb.c:1.130 src/sys/netinet6/in6_pcb.c:1.131 --- src/sys/netinet6/in6_pcb.c:1.130 Sat Oct 11 16:53:16 2014 +++ src/sys/netinet6/in6_pcb.c Sat Oct 11 19:07:39 2014 @@ -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 @@ in6_pcbbind_addr(struct in6pcb *in6p, st 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;