net/ipv6: do not overwrite destination cache's mtu
Always overwrite destination cache's mtu in nd6_get_next_hop_entry().
This causes failure of path mtu discovery tc 5 in ipv6 CTT test.
This patch fixes this problem.
@@ -1918,8 +1918,6 @@ static s8_t nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *neti
destination_cache[nd6_cached_destination_index].pmtu = netif->mtu; /* Start with netif mtu, correct through ICMPv6 if necessary */
ip6_addr_copy(destination_cache[nd6_cached_destination_index].next_hop_addr, default_router_list[i].neighbor_entry->next_hop_address);
}
- } else {
- destination_cache[nd6_cached_destination_index].pmtu = netif->mtu; /* Start with netif mtu, correct through ICMPv6 if necessary */
}
}
} else {
