2014-09-02 19:18 GMT+02:00 Tommaso Pecorella <
tomm...@gmail.com>:
> Hi Matt,
>
> if you're writing tests for the Internet module, please avoid using
> PointToPoint (or CSMA). The only "safe" NetDevice to use in tests is
> SimpleNetDevice (which doesn't support yet pcap traces).
Thanks for the warning. I will change it to SimpleNetDevice
afterwards, I am time-limited now. Being able to generate pcaps look
important even for testings. In case a test fails with ns3 valinna one
can send a pcap to the main team (even if that should not happen).
I should be doing my debugging in the scratchpad but as I use a
slighty modifed tcp test it was easier to do it as a test. Having the
PCAP allows me to benefit from wireshark colored output (would be nice
to have the same in the NS3 logger :D ) and its TCP understanding.
I have not the time yet to propose a solution but this is strange to
have to create an object (PoinToPointDeviceHelper) to be able to
enable Pcap. The member function does not use any variables from the
object. It could be left as a static function or even a template
function specialized later on:
template<T>
EnablePcap(Ptr<T> )
{
.....NS_FATAL_ERROR("Not Implemented yet");
}
template<>
EnablePcap(Ptr<PointToPointDevice> )
{
....actual code
}
Regards