summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2005-03-16 13:55:58 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2005-03-16 13:55:58 -0500
commitd40a1c6573447bd01058611f88256ddc514439c3 (patch)
tree61f5f74f4cfa9598c8f2a2574e2b075ad7dc2d43
parentbc6baa4049c285322fd0601a88c352fda1996dc1 (diff)
downloadgem5-d40a1c6573447bd01058611f88256ddc514439c3.tar.xz
Some changes to NSGigE's DPRINTF's that helped when I was doing NAT stuff.
--HG-- extra : convert_revision : d36c84a835667d4c67f46432a90b9557b0710eac
-rw-r--r--dev/ns_gige.cc27
1 files changed, 20 insertions, 7 deletions
diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc
index db1474d1c..53a881ef7 100644
--- a/dev/ns_gige.cc
+++ b/dev/ns_gige.cc
@@ -1597,8 +1597,10 @@ NSGigE::rxKick()
DPRINTF(Ethernet, "ID is %d\n", ip->id());
TcpPtr tcp(ip);
if (tcp) {
- DPRINTF(Ethernet, "Src Port=%d, Dest Port=%d\n",
- tcp->sport(), tcp->dport());
+ DPRINTF(Ethernet,
+ "Src Port=%d, Dest Port=%d, Seq=%d, Ack=%d\n",
+ tcp->sport(), tcp->dport(), tcp->seq(),
+ tcp->ack());
}
}
}
@@ -1803,14 +1805,15 @@ NSGigE::transmit()
DPRINTF(Ethernet, "ID is %d\n", ip->id());
TcpPtr tcp(ip);
if (tcp) {
- DPRINTF(Ethernet, "Src Port=%d, Dest Port=%d\n",
- tcp->sport(), tcp->dport());
+ DPRINTF(Ethernet,
+ "Src Port=%d, Dest Port=%d, Seq=%d, Ack=%d\n",
+ tcp->sport(), tcp->dport(), tcp->seq(), tcp->ack());
}
}
}
#endif
- DDUMP(Ethernet, txFifo.front()->data, txFifo.front()->length);
+ DDUMP(EthernetData, txFifo.front()->data, txFifo.front()->length);
txBytes += txFifo.front()->length;
txPackets++;
@@ -2296,8 +2299,18 @@ NSGigE::recvPacket(PacketPtr packet)
}
if (rxFifo.avail() < packet->length) {
- DPRINTF(Ethernet,
- "packet will not fit in receive buffer...packet dropped\n");
+#if TRACING_ON
+ IpPtr ip(packet);
+ TcpPtr tcp(ip);
+ if (ip) {
+ DPRINTF(Ethernet,
+ "packet won't fit in receive buffer...pkt ID %d dropped\n",
+ ip->id());
+ if (tcp) {
+ DPRINTF(Ethernet, "Seq=%d\n", tcp->seq());
+ }
+ }
+#endif
droppedPackets++;
devIntrPost(ISR_RXORN);
return false;