Author: bms
Date: Thu Jun 28 23:44:47 2012
New Revision: 237734
URL: http://svn.freebsd.org/changeset/base/237734

Log:
  In MLDv2 general query processing, do not enforce the strict check
  on query origins.
  
  Submitted by: Gu Yong
  MFC after:    3 days

Modified:
  head/sys/netinet6/mld6.c

Modified: head/sys/netinet6/mld6.c
==============================================================================
--- head/sys/netinet6/mld6.c    Thu Jun 28 22:03:59 2012        (r237733)
+++ head/sys/netinet6/mld6.c    Thu Jun 28 23:44:47 2012        (r237734)
@@ -867,16 +867,10 @@ mld_v2_input_query(struct ifnet *ifp, co
         */
        if (IN6_IS_ADDR_UNSPECIFIED(&mld->mld_addr)) {
                /*
-                * General Queries SHOULD be directed to ff02::1.
                 * A general query with a source list has undefined
                 * behaviour; discard it.
                 */
-               struct in6_addr          dst;
-
-               dst = ip6->ip6_dst;
-               in6_clearscope(&dst);
-               if (!IN6_ARE_ADDR_EQUAL(&dst, &in6addr_linklocal_allnodes) ||
-                   nsrc > 0)
+               if (nsrc > 0)
                        return (EINVAL);
                is_general_query = 1;
        } else {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to