Skip to content

nix-vector-routing: (fixes #383) Add support for multiple interface addresses

Ameya Deshpande requested to merge ameyanrd/ns-3-dev:nix-routing into master

This change makes the following changes:

  1. Add map entries for all the addresses on a interface in g_ipv4AddressToNodeMap.
  2. Use Ipv4L3Protocol::SourceAddressSelection for source address selection.
  3. Add an example for multiple interface addresses.

Note that the intermediate nodes and final node can use any addresses they want. So by default, the addressIndex = 0 addresses are considered in RouteInput () and subsequent nodes in PrintRoutingPath () (after source node).

Signed-off-by: Ameya Deshpande ameyanrd@outlook.com Suggested-by: Tommaso Pecorella tommaso.pecorella@unifi.it

Edited by Ameya Deshpande

Merge request reports