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 committed 2008-05-15 12:56:10 +01:00
1 parent 84b9842a1b
commit afd6db2ccb
1 file changed
+4
@@ -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