udp发送

Value returned is $50 = (ns3::UdpL4Protocol *) 0x681d00
(gdb) bt
#0  0x00007ffff6d13933 in ns3::UdpSocketImpl::DoSendTo (this=0x7fffe0002810, p=..., dest=..., port=646) at ../src/internet/model/udp-socket-impl.cc:624
#1  0x00007ffff6d168fe in ns3::UdpSocketImpl::SendTo (this=0x7fffe0002810, p=..., flags=64, address=...) at ../src/internet/model/udp-socket-impl.cc:836
#2  0x00007ffff7a45384 in ns3::UnixDatagramSocketFd::MainSendTo (this=0x7fffe0003fb0, r=0x7ffff06d6e6c, p=..., f=64, ad=...) at ../model/unix-datagram-socket-fd.cc:510
#3  0x00007ffff7a45d17 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=0x7fffe0008240) at /home/z/new/dce/build/include/ns3.23/ns3/make-event.h:452
#4  0x00007ffff733e5e7 in ns3::EventImpl::Invoke (this=0x7fffe0008240) at ../src/core/model/event-impl.cc:51
#5  0x00007ffff7a8ab2e in ns3::TaskManager::Schedule (this=0x682270) at ../model/task-manager.cc:441
#6  0x00007ffff7a8cb21 in ns3::EventImpl* ns3::MakeEvent<void (ns3::TaskManager::*)(), ns3::TaskManager*>(void (ns3::TaskManager::*)(), ns3::TaskManager*)::EventMemberImpl0::Notify() (this=0x673430) at /home/z/new/dce/build/include/ns3.23/ns3/make-event.h:323
#7  0x00007ffff733e5e7 in ns3::EventImpl::Invoke (this=0x673430) at ../src/core/model/event-impl.cc:51
#8  0x00007ffff73432ac in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x6b1870) at ../src/core/model/default-simulator-impl.cc:147
#9  0x00007ffff7343638 in ns3::DefaultSimulatorImpl::Run (this=0x6b1870) at ../src/core/model/default-simulator-impl.cc:200
#10 0x00007ffff733f378 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:204
#11 0x000000000040c564 in main (argc=1, argv=0x7fffffffdc08) at ../myscripts/ns-3-dce-quagga/example/dce-quagga-mpls.cc:194
(gdb)



从下到上的调用顺序如下,


ns3::UdpL4Protocol::Send (this=0x681d00, packet=..., saddr=..., daddr=..., sport=646, dport=646) at ../src/internet/model/udp-l4-protocol.cc:432
432    }
(gdb)


#0  ns3::UdpL4Protocol::Send (this=0x681d00, packet=..., saddr=..., daddr=..., sport=646, dport=646) at ../src/internet/model/udp-l4-protocol.cc:431
#1  0x00007ffff6d13954 in ns3::UdpSocketImpl::DoSendTo (this=0x7fffe0002810, p=..., dest=..., port=646) at ../src/internet/model/udp-socket-impl.cc:624
#2  0x00007ffff6d168fe in ns3::UdpSocketImpl::SendTo (this=0x7fffe0002810, p=..., flags=64, address=...) at ../src/internet/model/udp-socket-impl.cc:836
#3  0x00007ffff7a45384 in ns3::UnixDatagramSocketFd::MainSendTo (this=0x7fffe0003fb0, r=0x7ffff06d6e6c, p=..., f=64, ad=...) at ../model/unix-datagram-socket-fd.cc:510
#4  0x00007ffff7a45d17 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=0x7fffe0008240) at /home/z/new/dce/build/include/ns3.23/ns3/make-event.h:452
#5  0x00007ffff733e5e7 in ns3::EventImpl::Invoke (this=0x7fffe0008240) at ../src/core/model/event-impl.cc:51
#6  0x00007ffff7a8ab2e in ns3::TaskManager::Schedule (this=0x682270) at ../model/task-manager.cc:441
#7  0x00007ffff7a8cb21 in ns3::EventImpl* ns3::MakeEvent<void (ns3::TaskManager::*)(), ns3::TaskManager*>(void (ns3::TaskManager::*)(), ns3::TaskManager*)::EventMemberImpl0::Notify() (this=0x673430) at /home/z/new/dce/build/include/ns3.23/ns3/make-event.h:323
#8  0x00007ffff733e5e7 in ns3::EventImpl::Invoke (this=0x673430) at ../src/core/model/event-impl.cc:51
#9  0x00007ffff73432ac in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x6b1870) at ../src/core/model/default-simulator-impl.cc:147
#10 0x00007ffff7343638 in ns3::DefaultSimulatorImpl::Run (this=0x6b1870) at ../src/core/model/default-simulator-impl.cc:200
#11 0x00007ffff733f378 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:204
#12 0x000000000040c564 in main (argc=1, argv=0x7fffffffdc08) at ../myscripts/ns-3-dce-quagga/example/dce-quagga-mpls.cc:194
(gdb)


你可能感兴趣的:(udp发送)