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

Reduce work spent checking outstanding probes in raw scans

This commit is contained in:
dmiller
2022-11-02 02:12:37 +00:00
parent c1227faf0d
commit 4eee4f2e1f
2 changed files with 57 additions and 29 deletions

View File

@@ -201,6 +201,9 @@ public:
return tryno == this->tryno.opaque;
}
/* Helper for checking protocol/port match from a packet. */
bool check_proto_port(u8 proto, u16 sport_or_icmpid, u16 dport) const;
/* tryno/pingseq, depending on what type of probe this is (ping vs scanprobe) */
tryno_t tryno; /* Try (retransmission) number of this probe */
/* If true, probe is considered no longer active due to timeout, but it