More work on winsock stack (ping is now working)
[reactos.git] / reactos / drivers / net / tcpip / network / icmp.c
index ac957f2..1b19594 100644 (file)
@@ -197,11 +197,15 @@ VOID ICMPReceive(
             return;
 
         /* Copy ICMP header and data into new packet */
-        RtlCopyMemory(NewPacket->Data, IPPacket->Data, DataSize  + sizeof(ICMP_HEADER));
+        RtlCopyMemory(NewPacket->Data, IPPacket->Data, DataSize + sizeof(ICMP_HEADER));
         ((PICMP_HEADER)NewPacket->Data)->Type     = ICMP_TYPE_ECHO_REPLY;
         ((PICMP_HEADER)NewPacket->Data)->Code     = 0;
         ((PICMP_HEADER)NewPacket->Data)->Checksum = 0;
 
+        DisplayIPPacket(IPPacket);
+
+        DisplayIPPacket(NewPacket);
+
         ICMPTransmit(NTE, NewPacket);
 
         TI_DbgPrint(DEBUG_ICMP, ("Echo reply sent.\n"));