Breakpoint 5, ns3::Ipv4L3Protocol::Receive (this=0x67f630, device=..., p=..., protocol=2048, from=..., to=..., packetType=0) at ../src/internet/model/ipv4-l3-protocol.cc:507
507 Ipv4Header ipHeader;
(gdb) bt
#0 ns3::Ipv4L3Protocol::Receive (this=0x67f630, device=..., p=..., protocol=2048, from=..., to=..., packetType=0) at ../src/internet/model/ipv4-l3-protocol.cc:507
#1 0x00007ffff6cd70a3 in ns3::MemPtrCallbackImpl
#2 0x00007ffff623cefb in ns3::Callback
#3 0x00007ffff623a691 in ns3::Node::ReceiveFromDevice (this=0x6b2240, device=..., packet=..., protocol=2048, from=..., to=..., packetType=0, promiscuous=false)
at ../src/network/model/node.cc:317
#4 0x00007ffff6239e80 in ns3::Node::NonPromiscReceiveFromDevice (this=0x6b2240, device=..., packet=..., protocol=2048, from=...) at ../src/network/model/node.cc:290
#5 0x00007ffff6242c80 in ns3::MemPtrCallbackImpl
this=0x6883b0, a1=..., a2=..., a3=2048, a4=...) at ./ns3/callback.h:441
#6 0x00007ffff6d40928 in ns3::Callback
#7 0x00007ffff5c0491b in ns3::PointToPointNetDevice::Receive (this=0x688510, packet=...) at ../src/point-to-point/model/point-to-point-net-device.cc:478
#8 0x00007ffff5c162f8 in ns3::EventImpl* ns3::MakeEvent
at ./ns3/make-event.h:353
#9 0x00007ffff733e5e7 in ns3::EventImpl::Invoke (this=0x6a39d0) at ../src/core/model/event-impl.cc:51
#10 0x00007ffff73432ac in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x6b0870) at ../src/core/model/default-simulator-impl.cc:147
#11 0x00007ffff7343638 in ns3::DefaultSimulatorImpl::Run (this=0x6b0870) at ../src/core/model/default-simulator-impl.cc:200
#12 0x00007ffff733f378 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:204
#13 0x000000000040c39a in main (argc=1, argv=0x7fffffffdc08) at ../myscripts/ns-3-dce-quagga/example/dce-quagga-mpls.cc:194
层三处理的时候发现没有路由,为什么不直接走socket呢?
肯定是socket没有。
为什么没有socket,因为不是rawsocket
所以没有socket应该是对的
所以还是应该走路由,
所以需要有默认路由