]> jfr.im git - irc/blitzed-org/bopm.git/commit
src/scan.c:
authorandy <redacted>
Fri, 23 Aug 2002 04:41:24 +0000 (04:41 +0000)
committerandy <redacted>
Fri, 23 Aug 2002 04:41:24 +0000 (04:41 +0000)
commit384bec8a544dca60bd51a92df9f8665f6fec2247
tree2bca1d952c4025bef66b56994702bfa1f0e25d3f
parent4850e9ddbc563bdca446015436ae18c3fd5a7828
src/scan.c:
scans_active_for_addr() - walk the scan list and check if there are
any other scans in progress for a given IP address (as specified in
dot quad format).

When a scan fails and negative caching is enabled, check if there
are other scans in progress for the same address.  If not, all
scans have failed and an entry should be added in the negcache.

Walking the list after every scan seems inefficient but I can't see
any other way to tell if there are no more scans active.  So, at
the moment this is a good reason for not using negative caching.
src/scan.c