Bug 1749

Summary: Ipv6AddressHelper can be only instantiated once
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: ipv6Assignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1745    

Description Tommaso Pecorella 2013-08-08 16:38:23 UTC
Bug reported by Francisco Javier Sánchez-Roselly <fnavarro@ujaen.es>. Credits to him for finding it.

You can not use two different Ipv6AddressHelper instances to assign different addresses to nodes.
Once the second is set, the first one will act as a mirror of the second, assigning the wrong numbers.

The reason relies on the Ipv6AddressGeneratorImpl, which *is* a singleton.

Hence, once the second Ipv6AddressHelper::SetBase is called, the other Ipv6AddressHelper will be reset as well to the new values.

This is terribly counterintuitive, and totally not in line with the Ipv4AddressHelper behaviour.
Comment 1 Tommaso Pecorella 2015-02-05 10:12:56 UTC

*** This bug has been marked as a duplicate of bug 1745 ***