Bug 1486

Summary: segfaults in nix-vector routing with bridges
Product: ns-3 Reporter: scheibel1
Component: nix-vectorAssignee: John Abraham <john.abraham.in>
Status: RESOLVED FIXED    
Severity: normal CC: jpelkey, ns-bugs, riley, tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: patch

Description scheibel1 2012-08-15 13:48:50 UTC
Created attachment 1435 [details]
patch

on the following lines:

                  Ptr<Channel> chBridged = ndBridged->GetChannel ();
                  if (channel == 0)
                    {
                      continue;
                    }

in nix-vector-routing.cc GetAdjacentNetDevices the 'if' statement should be checking 'chBridged' rather than 'channel'.  Else there is the potential for this function to be recursively called with a null 'channel' param.  Patch included.
Comment 1 Tom Henderson 2012-08-27 03:02:00 UTC
changeset: c57bd30c65cf