GlobalRoutingManager: don't segfault for NetDevices that have no associated Channel (e.g. virtual NetDevices); just skip them.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-05-15 12:56:10 +01:00
parent a4a8086580
commit 6547b9222c

View File

@@ -638,6 +638,10 @@ GlobalRouter::DiscoverLSAs (void)
// router (to use OSPF lingo) is running.
//
Ptr<Channel> ch = ndLocal->GetChannel();
if (ch == NULL)
{
continue;
}
Ptr<NetDevice> ndRemote = GetAdjacent(ndLocal, ch);
//
// The adjacent net device is aggregated to a node. We need to ask that net