Hi all!
I want to test DSR routing protocol via IPv6.
My script
simulates network with nodesNumber=5 nodes, lr-wpan net devices, 6LoWpan layers and IPv6:
...
NodeContainer nodes;
nodes.Create(nodesNumber);
LrWpanHelper lrWpanHelper;
NetDeviceContainer lrwpanDevices = lrWpanHelper.Install(nodes);
lrWpanHelper.AssociateToPan(lrwpanDevices, 0);
InternetStackHelper internetStack;
internetStack.Install(nodes);
SixLowPanHelper sixlowpan;
NetDeviceContainer devices = sixlowpan.Install(lrwpanDevices);
Ipv6AddressHelper ipv6;
ipv6.SetBase(Ipv6Address("2001:2::"), Ipv6Prefix(64));
Ipv6InterfaceContainer deviceInterfaces;
deviceInterfaces = ipv6.Assign(devices);
DsrHelper dsr;
DsrMainHelper dsrMain;
dsrMain.Install(dsr, nodes); <--
This line causes an error
...
When I tried to add DSR routing protocol, I got an error during runtime:
assert failed. cond="m_mainAddress != Ipv4Address () && m_broadcast != Ipv4Address ()", file=../src/dsr/model/dsr-routing.cc, line=517
terminate called without an active exception
Source of message:
file: dsr-routing.cc
method:
void DsrRouting::Start ()
{
NS_LOG_FUNCTION (this << "Start DSR Routing protocol");
...
NS_ASSERT (m_mainAddress != Ipv4Address () && m_broadcast != Ipv4Address ()); <-- This line causes an error
}
}
Requires IPv4 protocol.
Someone has experience using DSR routing protocol via IPv6?
Thanks