Skip to content

Commit 2ed0f76

Browse files
author
Juha Heiskanen
committed
Fixed Echo request handle
Address select steering address from dst->src.
1 parent 6e31d0a commit 2ed0f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Common_Protocols/icmpv6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ static buffer_t *icmpv6_echo_request_handler(buffer_t *buf)
325325

326326
if (addr_is_ipv6_multicast(buf->dst_sa.address)) {
327327
const uint8_t *ipv6_ptr;
328+
memcpy(buf->dst_sa.address, buf->src_sa.address, 16);
328329
ipv6_ptr = addr_select_source(cur, buf->dst_sa.address, 0);
329330
if (!ipv6_ptr) {
330331
tr_debug("No address");
331332
return buffer_free(buf);
332333
}
333-
memcpy(buf->dst_sa.address, buf->src_sa.address, 16);
334334
memcpy(buf->src_sa.address, ipv6_ptr, 16);
335335
} else {
336336
memswap(buf->dst_sa.address, buf->src_sa.address, 16);

0 commit comments

Comments
 (0)