Bug 1701

Summary: Ipv6StaticRouting - the source address should match the destination scope
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: ipv6Assignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Tommaso Pecorella 2013-06-16 03:33:27 UTC
Bugs are like cherries. Once you pick one, there's always another following.

Ipv6StaticRouting is choosing the packet's source address according to the router's address in the RoutingTable.
This is wrong to the boots. The source address *scope* should match the destination address scope.

In other words: the router should have advertised itself from a link-local address, but the node shouldn't care less. If it's sending a packet to a global destination, it should use its global address (unless extremely specific cases, but in these cases the Routing Table is going to be skipped).
Comment 1 Tommaso Pecorella 2013-06-16 03:41:36 UTC
Fixed in changeset 9836:d675eb43a62f