From 9ede1372109b58cdb06fd937ff32bd57fb962d79 Mon Sep 17 00:00:00 2001 From: fyodor Date: Tue, 24 Feb 2009 02:01:03 +0000 Subject: [PATCH] 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 --- osscan2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osscan2.cc b/osscan2.cc index df835fdef..d661733bb 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -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");