Permalink
Browse files

fixed a bug that MLDv2 Query is blocked in kernel due to a lack of link

information
  • Loading branch information...
1 parent c89e93c commit 770d09b2a029cbb7aedd9ee325df07531e0389d7 suz committed Jan 20, 2002
Showing with 7 additions and 1 deletion.
  1. +7 −1 kame/kame/pim6sd/mld6v2.c
@@ -1,5 +1,5 @@
/*
- * $KAME: mld6v2.c,v 1.7 2001/12/18 03:10:43 jinmei Exp $
+ * $KAME: mld6v2.c,v 1.8 2002/01/20 15:23:45 suz Exp $
*/
/*
@@ -345,6 +345,12 @@ send_mld6v2(int type, int code, struct sockaddr_in6 *src,
dstp = (struct sockaddr_in6 *) sndmh.msg_name;
+#ifdef __KAME__
+ if (IN6_IS_ADDR_LINKLOCAL(&dstp->sin6_addr) ||
+ IN6_IS_ADDR_MC_LINKLOCAL(&dstp->sin6_addr))
+ dstp->sin6_scope_id = index;
+#endif
+
if (sendmsg(mld6_socket, &sndmh, 0) < 0)
{
if (errno == ENETDOWN)

0 comments on commit 770d09b

Please sign in to comment.