[Ns-developers] IPv6 IPsec extension
suresh.lalith at gmail.com
Wed Mar 16 09:54:59 PDT 2011
On Wed, Mar 16, 2011 at 2:56 PM, Bernd Hirschler
<bernd.hirschler at gmail.com> wrote:
> Hello ns3 developers!
> For a projec i am implementing the IPsec extensions for IPv6.
> I made myself familiar with the IPv6 code and started implementing the
> headers for AH and ESP.
> To test my code i added the following code to the ping6 application (into
> the send function in ping6.cc):
> Ipv6ExtensionAHHeader AHHeader;
> AHHeader.SetTest((char *)"aaaaaaaaaaaa", (uint8_t) 13);
> p->AddHeader (AHHeader);
> NS_LOG_INFO ("Add AH Header " << AHHeader.GetTest());
> m_socket->SetAttribute ("Protocol", UintegerValue
> The simulation starts successfully but after the packet is generated and
> sent it stops:
> Create nodes.
> Create channels.
> Assign IPv6 Addresses.
> Create Applications.
> Run Simulation.
> Ping6Application:ScheduleTransmit(0x1eab080, 0ns)
> Add AH Header aaaaaaaaaaaa
> Sent 106 bytes to ff02:0000:0000:0000:0000:0000:0000:0001
> assert failed. cond="interface", msg="Try to send on link-local multicast
> address, and no interface index is given!",
> file=../src/routing/static-routing/model/ipv6-static-routing.cc, line=228
> terminate called without an active exception
> terminated with signal SIGIOT. Run it under a debugger to get more
> information (./waf --run <program> --command-template="gdb --args %s
> I tried to find out where things go wrong but can not pinpoint the location
> of the error. I checked m_ifIndex because it looked like this could be the
> mistake but it is set to 1 and that should be fine . Also the pcap files
> which are generated look good, wireshark interprets the packet correct and
> shows me the fields, but only one message is sent there is no reply, but the
> request is correct.
> Can someone give me a hint where/how to pinpoint this error and supply ns3
> with a working IPsec implementation.
> Within the project I would implement IPsec AH and ESP together with the
> necessary calculations (authentication and encryption) and supply a fully
> functional IPsec implementation.
It's hard to tell just from this, but have you tried NS_LOG?
Department of Computer Science and Engineering
Instituto Superior Técnico
More information about the Ns-developers