GlobalRoutingManager: don't segfault for NetDevices that have no associated Channel (e.g. virtual NetDevices); just skip them.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user