DCE HOWTO linux netlink working with routing table

#0  ns3::Ipv4StaticRouting::AddNetworkRouteTo (this=0x6ae650, network=..., networkMask=..., nextHop=..., interface=1, metric=20)
    at ../src/internet/model/ipv4-static-routing.cc:69
#1  0x00007ffff74a9270 in ns3::NetlinkSocket::DoRouteMessage (this=0x7fffdc006e80, nlmsg=..., type=24, family=2 '\002') at ../netlink/netlink-socket.cc:1385
#2  0x00007ffff74a2e26 in ns3::NetlinkSocket::DoNetlinkRouteMessage (this=0x7fffdc006e80, nlmsg=..., type=24, family=2 '\002') at ../netlink/netlink-socket.cc:723
#3  0x00007ffff74a2662 in ns3::NetlinkSocket::HandleNetlinkRouteMessage (this=0x7fffdc006e80, nlmsg=...) at ../netlink/netlink-socket.cc:660
#4  0x00007ffff74a20ce in ns3::NetlinkSocket::HandleMessage (this=0x7fffdc006e80, nlmsg=...) at ../netlink/netlink-socket.cc:608
#5  0x00007ffff74a02a2 in ns3::NetlinkSocket::SendTo (this=0x7fffdc006e80, p=..., flags=0, toAddress=...) at ../netlink/netlink-socket.cc:439
#6  0x00007ffff784cfa0 in ns3::UnixDatagramSocketFd::MainSendTo (this=0x7fffdc006fd0, r=0x7ffff7e66c3c, p=..., f=0, ad=...) at ../model/unix-datagram-socket-fd.cc:458
#7  0x00007ffff784d933 in ns3::EventImpl* ns3::MakeEvent<void (ns3::UnixDatagramSocketFd::*)(int*, ns3::Ptr<ns3::Packet>, unsigned int, ns3::Address), ns3::UnixDatagramSocketFd*, int*, ns3::Ptr<ns3::Packet>, int, ns3::Address>(void (ns3::UnixDatagramSocketFd::*)(int*, ns3::Ptr<ns3::Packet>, unsigned int, ns3::Address), ns3::UnixDatagramSocketFd*, int*, ns3::Ptr<ns3::Packet>, int, ns3::Address)::EventMemberImpl4::Notify() (this=0x7fffdc019a10)
    at /mnt/n/new/dce/build/include/ns3.23/ns3/make-event.h:452
#8  0x00007ffff70c52f7 in ns3::EventImpl::Invoke (this=0x7fffdc019a10) at ../src/core/model/event-impl.cc:51
#9  0x00007ffff78927ce in ns3::TaskManager::Schedule (this=0x6a5910) at ../model/task-manager.cc:441
#10 0x00007ffff78947c1 in ns3::EventImpl* ns3::MakeEvent<void (ns3::TaskManager::*)(), ns3::TaskManager*>(void (ns3::TaskManager::*)(), ns3::TaskManager*)::EventMemberImpl0::Notify() (this=0x682950) at /mnt/n/new/dce/build/include/ns3.23/ns3/make-event.h:323
#11 0x00007ffff70c52f7 in ns3::EventImpl::Invoke (this=0x682950) at ../src/core/model/event-impl.cc:51
#12 0x00007ffff70c9fbc in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x6db860) at ../src/core/model/default-simulator-impl.cc:147
#13 0x00007ffff70ca348 in ns3::DefaultSimulatorImpl::Run (this=0x6db860) at ../src/core/model/default-simulator-impl.cc:200
#14 0x00007ffff70c6088 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:204
#15 0x0000000000420f58 in main (argc=1, argv=0x7fffffffdec8) at ../myscripts/ns-3-dce-quagga/example/dce-zebra-simple.cc:563
(gdb) 


以上sendto

以下recvfrom

Breakpoint 3, ns3::NetlinkSocket::RecvFrom (this=0x7fffec02d920, maxSize=8192, flags=0, fromAddress=...) at ../netlink/netlink-socket.cc:380
380	  Ptr<Packet> packet = Recv (maxSize, flags);
(gdb) bt
#0  ns3::NetlinkSocket::RecvFrom (this=0x7fffec02d920, maxSize=8192, flags=0, fromAddress=...) at ../netlink/netlink-socket.cc:380
#1  0x00007ffff7a4ab87 in ns3::UnixDatagramSocketFd::DoRecvmsg (this=0x7fffec02da70, msg=0x7ffff7267a00, flags=0) at ../model/unix-datagram-socket-fd.cc:187
#2  0x00007ffff7a41a44 in ns3::UnixSocketFd::Recvmsg (this=0x7fffec02da70, msg=0x7ffff7267a00, flags=0) at ../model/unix-socket-fd.cc:227
#3  0x00007ffff7a5eafe in dce_recvmsg (fd=6, msg=0x7ffff7267a00, flags=0) at ../model/dce-fd.cc:513
#4  0x00007ffff15bed2f in recvmsg () at ../model/libc-ns3.h:193
#5  0x00007ffff0a015fa in netlink_parse_info (filter=0x7ffff0a01cdc <netlink_interface>, nl=0x7ffff0c66600 <netlink_cmd>) at rt_netlink.c:298
#6  0x00007ffff0a03537 in interface_lookup_netlink () at rt_netlink.c:1193
#7  0x00007ffff0a00ead in interface_list () at if_netlink.c:33
#8  0x00007ffff09e2304 in main (argc=5, argv=0x6ffef0) at main.c:343
#9  0x00007ffff7a0708f in ns3::DceManager::DoStartProcess (context=0x821010) at ../model/dce-manager.cc:283
#10 0x00007ffff7a907fc in ns3::TaskManager::Trampoline (context=0x6d5130) at ../model/task-manager.cc:274
#11 0x00007ffff7a8c7d7 in ns3::PthreadFiberManager::Run (arg=0x821300) at ../model/pthread-fiber-manager.cc:402
#12 0x000000318b2079d1 in start_thread () from /lib64/libpthread.so.0
#13 0x000000318a6e88fd in clone () from /lib64/libc.so.6
(gdb) 



你可能感兴趣的:(DCE HOWTO linux netlink working with routing table)