Actually, as per pcap tutorial, the sixth.cc program only captures the
dropped packets, whereas I am trying to capture all packets exchanged
between two nodes.
Can anyone please review the following code? It will be of great help
to me.
============
PointToPointHelper Helper;
Helper.EnablePcapAll ("", true);
PcapHelper pcapHelper;
Ptr<PcapFileWrapper> file = pcapHelper.CreateFile ("uplink.pcap",
std::ios::out, PcapHelper::DLT_RAW);
pcapHelper.HookDefaultSink(ue,"TxStart", file );
============
"HookDefaultSink" calls "TraceConnectWithoutContext" in turn calls
"LookupTraceSourceByName" function. In "LookupTraceSourceByName",
"tid.GetTraceSourceN" is '0'. So, whatever trace source name I provide
in "HookDefaultSink" doesn't match. Thus, I get an error stating
"Unable to Hook <tracename>"
--
Thanks and regards,
Amith Kumar Nagaraj
M.S, Illinois Institute of Technology