1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-13 17:06:34 +00:00

Add a comment to explain numIncompleteHostsLessThan.

This commit is contained in:
d33tah
2014-01-27 00:44:16 +00:00
parent 3bd86146ac
commit e35d0a0c23

View File

@@ -1896,6 +1896,9 @@ HostScanStats *UltraScanInfo::findHost(struct sockaddr_storage *ss) {
return NULL;
}
/* Check if incompleteHosts list contains less than n elements. This function
is here to replace numIncompleteHosts() < n, which would have to walk
through the entire list. */
bool UltraScanInfo::numIncompleteHostsLessThan(unsigned int n) {
std::list<HostScanStats *>::iterator hostI;
unsigned int count;