internet: Fix IPv6 src address glitch when receiving redirects

This commit is contained in:
Tommaso Pecorella
2022-11-19 23:27:22 +01:00
parent fbe0786cd9
commit 5db180c609

View File

@@ -458,7 +458,7 @@ Ipv6StaticRouting::LookupStatic(Ipv6Address dst, Ptr<NetDevice> interface)
else
{
rtentry->SetSource(
m_ipv6->SourceAddressSelection(interfaceIdx, route->GetGateway()));
m_ipv6->SourceAddressSelection(interfaceIdx, route->GetDest()));
}
rtentry->SetDestination(route->GetDest());