rxPktBytes = rxPacket->length;
rxPacketBufPtr = rxPacket->data;
+#if TRACING_ON
if (DTRACE(Ethernet)) {
if (rxPacket->isIpPkt()) {
ip_header *ip = rxPacket->getIpHdr();
}
}
}
+#endif
// sanity check - i think the driver behaves like this
assert(rxDescCnt >= rxPktBytes);
DPRINTF(Ethernet, "\n\nAttempt Pkt Transmit: txFifo length = %d\n",
maxTxFifoSize - txFifoAvail);
if (interface->sendPacket(txFifo.front())) {
+#if TRACING_ON
if (DTRACE(Ethernet)) {
if (txFifo.front()->isIpPkt()) {
ip_header *ip = txFifo.front()->getIpHdr();
}
}
}
+#endif
DDUMP(Ethernet, txFifo.front()->data, txFifo.front()->length);
txBytes += txFifo.front()->length;