mirror of
https://github.com/nmap/nmap.git
synced 2026-06-18 22:52:54 +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:
parent
fac0dacfda
commit
9ede137210
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue