nix-vector-routing: (fixes #383) Add support for multiple interface addresses
This change makes the following changes:
- Add map entries for all the addresses on a interface in
g_ipv4AddressToNodeMap
. - Use
Ipv4L3Protocol::SourceAddressSelection
for source address selection. - 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