1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Increase number of DNS names to look up per batch.

This commit is contained in:
dmiller
2024-05-13 14:31:35 +00:00
parent a626407796
commit fe5bbce0a4

View File

@@ -814,10 +814,10 @@ void TargetGroup::reject_last_host() {
/* Initializes (or reinitializes) the object with a new expression, such
as 192.168.0.0/16 , 10.1.0-5.1-254 , or fe80::202:e3ff:fe14:1102 .
*/
// This is a wild guess, but we need some sort of limit.
#define EXPR_PARSE_BATCH_SZ 1000
bool TargetGroup::load_expressions(HostGroupState *hs, int af) {
assert(netblocks.empty());
// This is a wild guess, but we need some sort of limit.
static const size_t EXPR_PARSE_BATCH_SZ = o.ping_group_sz;
const char *target_expr = NULL;
std::vector<DNS::Request> requests;
requests.reserve(EXPR_PARSE_BATCH_SZ/4);