enable logging in a TCP test suite

This commit is contained in:
Tom Henderson
2015-02-24 14:04:15 -08:00
parent 55a43bb5bc
commit 2aa44ad287

View File

@@ -40,6 +40,7 @@
#include "ns3/error-model.h"
#include "ns3/pointer.h"
#include "ns3tcp-socket-writer.h"
#include "ns3/tcp-header.h"
using namespace ns3;
@@ -149,6 +150,13 @@ Ns3TcpStateTestCase::Ipv4L3Tx (std::string context, Ptr<const Packet> packet, Pt
Ipv4Header ipHeader;
p->RemoveHeader (ipHeader);
if (g_log.IsEnabled (ns3::LOG_DEBUG))
{
TcpHeader th;
p->PeekHeader (th);
std::clog << Simulator::Now ().GetSeconds () << " TCP header " << th << std::endl;
}
//
// What is left is the TCP header and any data that may be sent. We aren't
// sending any TCP data, so we expect what remains is only TCP header, which