Improve IPv6 LL multicast interface selection

This commit is contained in:
Tommaso Pecorella
2014-08-30 18:20:10 +02:00
parent 51aa7c22a4
commit 07040f354c

View File

@@ -820,13 +820,10 @@ void Ipv6L3Protocol::Send (Ptr<Packet> packet, Ipv6Address source, Ipv6Address d
//for link-local traffic, we need to determine the interface
if (source.IsLinkLocal ()
|| destination.IsLinkLocal ()
|| destination.IsAllNodesMulticast ()
|| destination.IsAllRoutersMulticast ()
|| destination.IsAllHostsMulticast ()
|| destination.IsSolicitedMulticast ())
|| destination.IsLinkLocalMulticast ())
{
int32_t index = GetInterfaceForAddress (source);
NS_ASSERT (index >= 0);
NS_ASSERT_MSG (index >= 0, "Can not find an outgoing interface for a packet with src " << source << " and dst " << destination);
oif = GetNetDevice (index);
}