mirror of
https://github.com/nmap/nmap.git
synced 2026-01-04 21:59:02 +00:00
rename crc16 function in nbase to crc32, as that seems to be what it actually is. Also change osscan2.cc to call it by the new name. Thsi fix was suggested by Marc Bevand
This commit is contained in:
@@ -2394,11 +2394,11 @@ bool HostOsScan::processT1_7Resp(HostOsScanStats *hss, struct ip *ip, int replyN
|
||||
current_testno++;
|
||||
}
|
||||
|
||||
/* Rst Data CRC16 */
|
||||
/* Rst Data CRC32 */
|
||||
AVs[current_testno].attribute = (char*)"RD";
|
||||
length = (int) ntohs(ip->ip_len) - 4 * ip->ip_hl -4 * tcp->th_off;
|
||||
if ((tcp->th_flags & TH_RST) && length>0) {
|
||||
sprintf(AVs[current_testno].value, "%08lX", crc16(((u8 *)tcp) + 4 * tcp->th_off, length));
|
||||
sprintf(AVs[current_testno].value, "%08lX", crc32(((u8 *)tcp) + 4 * tcp->th_off, length));
|
||||
}
|
||||
else {
|
||||
strcpy(AVs[current_testno].value, "0");
|
||||
|
||||
Reference in New Issue
Block a user