From 21e0e8aa92fe1781484ed967e336e6e19d987500 Mon Sep 17 00:00:00 2001 From: rongli Date: Fri, 27 May 2016 12:31:19 +0800 Subject: [PATCH] fix reconstruct multicast all thread nodes address issue (#79) --- src/core/thread/lowpan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/thread/lowpan.cpp b/src/core/thread/lowpan.cpp index 5f549f7db..8d49a1b38 100644 --- a/src/core/thread/lowpan.cpp +++ b/src/core/thread/lowpan.cpp @@ -698,6 +698,7 @@ int Lowpan::DecompressBaseHeader(Ip6::Header &ip6Header, const Mac::Address &aMa VerifyOrExit(dstContextValid, error = kThreadError_Parse); ip6Header.GetDestination().m8[1] = cur[0]; ip6Header.GetDestination().m8[2] = cur[1]; + ip6Header.GetDestination().m8[3] = dstContext.mPrefixLength; memcpy(ip6Header.GetDestination().m8 + 4, dstContext.mPrefix, 8); memcpy(ip6Header.GetDestination().m8 + 12, cur + 2, 4); cur += 6;