Don't check the checksum of the original echo request packet in the

received reply packet.
This commit is contained in:
Rein Klazes 2002-01-15 20:28:34 +00:00 committed by Alexandre Julliard
parent 1a65a7b88a
commit 26a5261a6f
1 changed files with 4 additions and 2 deletions

View File

@ -427,8 +427,10 @@ DWORD WINAPI IcmpSendEcho(
} else if ((rep_icmp_header->icmp_type!=ICMP_ECHO) ||
(rep_icmp_header->icmp_code!=0) ||
(rep_icmp_header->icmp_id!=id) ||
(rep_icmp_header->icmp_seq!=seq) ||
(rep_icmp_header->icmp_cksum!=cksum)) {
/* windows doesn't check this checksum, else tracert */
/* behind a Linux 2.2 masquerading firewall would fail*/
/* (rep_icmp_header->icmp_cksum!=cksum) || */
(rep_icmp_header->icmp_seq!=seq)) {
/* This was not a reply to one of our packets after all */
TRACE("skipping type,code=%d,%d id,seq=%d,%d cksum=%d\n",
rep_icmp_header->icmp_type,rep_icmp_header->icmp_code,