This commit is contained in:
Tim Schubert 2020-07-18 14:56:48 +02:00
parent a55177cd67
commit 57b04d6424
2 changed files with 10 additions and 9 deletions

View file

@ -38,7 +38,7 @@ ArpCacheHelper::Install (NetDeviceContainer &devices, Ipv4InterfaceContainer &in
// and associated address
uint32_t otherIfIndex = otherDevice->GetIfIndex ();
Ipv4Address ipaddr = interfaces.GetAddress (otherIfIndex, 1); // IP
Ipv4Address ipaddr = interfaces.GetAddress (otherIfIndex, 0); // IP
// update cache
ArpCache::Entry* entry = cache->Lookup (ipaddr);