mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Merge from /nmap-exp/david/nmap-mem. This reduces the memory usage of OS
scan by about 95%. (66832396 bytes to 2815061 bytes according to Massif.)
This commit is contained in:
7
osscan.h
7
osscan.h
@@ -110,6 +110,13 @@
|
||||
/* moved to global_structures.h */
|
||||
|
||||
/********************** PROTOTYPES ***********************************/
|
||||
|
||||
/* The OS database consists of many small strings, many of which appear
|
||||
thousands of times. It pays to allocate memory only once for each unique
|
||||
string, and have all references point at the one allocated value. */
|
||||
const char *string_pool_insert(const char *s);
|
||||
const char *string_pool_sprintf(const char *fmt, ...);
|
||||
|
||||
const char *fp2ascii(FingerPrint *FP);
|
||||
|
||||
/* Parses a single fingerprint from the memory region given. If a
|
||||
|
||||
Reference in New Issue
Block a user