Bug 782

Summary: TapBridge::CreateTap () requires IP and Mac addresses in modes other than CONFIGURE_LOCAL
Product: ns-3 Reporter: Andrey Mazo <ahippo>
Component: devicesAssignee: Craig Dowell <craigdo>
Status: RESOLVED FIXED    
Severity: minor CC: ns-bugs
Priority: P4    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: proposed fix
proposed fix (fixed logic)

Description Andrey Mazo 2009-12-22 09:20:02 UTC
CreateTap () method tries to get IP address and Mac address from underlying NetDevice.
If IP address is not assigned to the underlying NetDevice, CreateTap () will die even if that IP address is not really required (not in CONFIGURE_LOCAL mode).

Currently it is possible to create a tap bridge only for an interface with an IP address.

Although it's always possible to assign address to all interfaces, it may be rather difficult to introduce additional stub IP subnets in complex topologies.
Comment 1 Andrey Mazo 2009-12-22 10:13:25 UTC
Created attachment 706 [details]
proposed fix
Comment 2 Andrey Mazo 2009-12-22 10:38:16 UTC
Created attachment 707 [details]
proposed fix (fixed logic)