Skip to content

nix-vector-routing: Handle Multiple Wifi connections with same channel object

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

This MR tries to handle multiple WiFi networks using the same channel object.

Before this MR, if we use two different WiFi networks with the same channel object, and try to send the packet from one node of WiFi 1 to the other node of WiFi 2; Nix will try to send the packet directly to the WiFi 2 node, skipping the intermediate nodes.

In this MR, we have added the code to check for a common subnet between the current NetDevice and the remote NetDevices connected. If there is no common subnet, we do not treat the remote NetDevice as the adjacent NetDevice to the current NetDevice.

In the case of IPv6, we do not perform the subnet matching for Link-local addresses.

Signed-off-by: Ameya Deshpande ameyanrd@outlook.com

Merge request reports