mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 13:41:29 +00:00
Minor style fixes
This commit is contained in:
21
osscan2.cc
21
osscan2.cc
@@ -413,33 +413,34 @@ static void doSeqTests(OsScanInfo *OSI, HostOsScan *HOS) {
|
|||||||
list<HostOsScanInfo *>::iterator hostI;
|
list<HostOsScanInfo *>::iterator hostI;
|
||||||
HostOsScanInfo *hsi = NULL;
|
HostOsScanInfo *hsi = NULL;
|
||||||
HostOsScanStats *hss = NULL;
|
HostOsScanStats *hss = NULL;
|
||||||
unsigned int unableToSend; /* # of times in a row that hosts were unable to send probe */
|
unsigned int unableToSend = 0; /* # of times in a row that hosts were unable to send probe */
|
||||||
unsigned int expectReplies;
|
unsigned int expectReplies = 0;
|
||||||
long to_usec;
|
long to_usec = 0;
|
||||||
int timeToSleep = 0;
|
int timeToSleep = 0;
|
||||||
|
|
||||||
struct ip *ip = NULL;
|
struct ip *ip = NULL;
|
||||||
struct link_header linkhdr;
|
struct link_header linkhdr;
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
unsigned int bytes;
|
unsigned int bytes = 0;
|
||||||
struct timeval rcvdtime;
|
struct timeval rcvdtime;
|
||||||
|
struct timeval stime;
|
||||||
struct timeval stime, tmptv;
|
struct timeval tmptv;
|
||||||
bool timedout = false;
|
bool timedout = false;
|
||||||
bool thisHostGood;
|
bool thisHostGood = false;
|
||||||
bool foundgood;
|
bool foundgood = false;
|
||||||
bool goodResponse;
|
bool goodResponse = false;
|
||||||
int numProbesLeft = 0;
|
int numProbesLeft = 0;
|
||||||
|
|
||||||
memset(&stime, 0, sizeof(stime));
|
memset(&stime, 0, sizeof(stime));
|
||||||
memset(&tmptv, 0, sizeof(tmptv));
|
memset(&tmptv, 0, sizeof(tmptv));
|
||||||
|
|
||||||
|
/* For each host, build a list of sequence probes to send */
|
||||||
for(hostI = OSI->incompleteHosts.begin(); hostI != OSI->incompleteHosts.end(); hostI++) {
|
for(hostI = OSI->incompleteHosts.begin(); hostI != OSI->incompleteHosts.end(); hostI++) {
|
||||||
hsi = *hostI;
|
hsi = *hostI;
|
||||||
hss = hsi->hss;
|
hss = hsi->hss;
|
||||||
HOS->buildSeqProbeList(hss);
|
HOS->buildSeqProbeList(hss);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Iterate until we have sent all the probes */
|
||||||
do {
|
do {
|
||||||
if(timeToSleep > 0) {
|
if(timeToSleep > 0) {
|
||||||
if(o.debugging > 1) {
|
if(o.debugging > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user