o [Nbase] The checksum functions now have an nbase_ prefix. This

should prevent name collisions with internal but exported functions
  in shared libraries Nmap links against (e.g. adler32() in zlib).
  Such collisions seem to confuse the runtime linker on some platforms.
  [Daniel Roethlisberger]
This commit is contained in:
daniel 2009-04-16 09:38:13 +00:00
parent d0e21e1d03
commit da6cb1d19e
2 changed files with 7 additions and 1 deletions

View file

@ -2400,7 +2400,7 @@ bool HostOsScan::processT1_7Resp(HostOsScanStats *hss, struct ip *ip, int replyN
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", crc32(((u8 *)tcp) + 4 * tcp->th_off, length));
sprintf(AVs[current_testno].value, "%08lX", nbase_crc32(((u8 *)tcp) + 4 * tcp->th_off, length));
}
else {
strcpy(AVs[current_testno].value, "0");