mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 04:19:02 +00:00
Combine tryno and pingseq
UltraProbe's tryno and pingseq attributes were mutually exclusive, encoded in the same places in packets, and did not need more than 7 bits to store. This change combines them into a bitfield. This simplifies some logic, since they do not need to be distinguished from each other. Additionally, in cases where the tryno is encoded in the source port number, no further checks or decoding need to happen beyond comparing the destination port of the response to the source port of the probe.
This commit is contained in:
@@ -77,11 +77,11 @@ void increment_base_port();
|
||||
int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime);
|
||||
void begin_sniffer(UltraScanInfo *USI, std::vector<Target *> &Targets);
|
||||
UltraProbe *sendArpScanProbe(UltraScanInfo *USI, HostScanStats *hss,
|
||||
u8 tryno, u8 pingseq);
|
||||
tryno_t tryno);
|
||||
UltraProbe *sendNDScanProbe(UltraScanInfo *USI, HostScanStats *hss,
|
||||
u8 tryno, u8 pingseq);
|
||||
tryno_t tryno);
|
||||
UltraProbe *sendIPScanProbe(UltraScanInfo *USI, HostScanStats *hss,
|
||||
const probespec *pspec, u8 tryno, u8 pingseq);
|
||||
const probespec *pspec, tryno_t tryno);
|
||||
bool get_arp_result(UltraScanInfo *USI, struct timeval *stime);
|
||||
bool get_ns_result(UltraScanInfo *USI, struct timeval *stime);
|
||||
bool get_pcap_result(UltraScanInfo *USI, struct timeval *stime);
|
||||
|
||||
Reference in New Issue
Block a user