diff --git a/src/nix-vector-routing/model/nix-vector-routing.cc b/src/nix-vector-routing/model/nix-vector-routing.cc index d451a09e3..33afd8150 100644 --- a/src/nix-vector-routing/model/nix-vector-routing.cc +++ b/src/nix-vector-routing/model/nix-vector-routing.cc @@ -416,6 +416,13 @@ NixVectorRouting::GetAdjacentNetDevices (Ptr netDevice, PtrGetAddress (k); + if constexpr (!IsIpv4::value) + { + if (remoteDeviceIfAddr.GetScope () == Ipv6InterfaceAddress::LINKLOCAL) + { + continue; + } + } if (netDeviceIfAddr.IsInSameSubnet (remoteDeviceIfAddr.GetAddress ())) { commonSubnetFound = true;