mirror of
https://github.com/nmap/nmap.git
synced 2026-01-22 14:19:02 +00:00
Some more whitespace fixes in traceroute.cc.
This commit is contained in:
@@ -404,12 +404,12 @@ Traceroute::readTraceResponses() {
|
||||
break;
|
||||
} else if (commonPath[tp->ttl] == 0) {
|
||||
commonPath[tp->ttl] = tp->ipreplysrc.s_addr;
|
||||
/* remember which host is the reference trace */
|
||||
/* remember which host is the reference trace */
|
||||
if (!cp_flag) {
|
||||
ref_ipaddr.s_addr = tg->ipdst;
|
||||
cp_flag = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case IPPROTO_TCP:
|
||||
tcp = (struct tcp_hdr *) ((char *) ip + 4 * ip->ip_hl);
|
||||
@@ -771,9 +771,9 @@ Traceroute::trace(vector < Target * >&Targets) {
|
||||
for (pcount = 0; pcount < retrans_probes.size(); pcount++)
|
||||
sendProbe(retrans_probes[pcount]);
|
||||
retrans_probes.clear();
|
||||
/* Max number of packets outstanding is 2 if we don't have a reply yet
|
||||
* otherwise it is equal to o.timing_level. If the timing level it 0
|
||||
* it is equal to 1 */
|
||||
/* Max number of packets outstanding is 2 if we don't have a
|
||||
* reply yet otherwise it is equal to o.timing_level. If the
|
||||
* timing level it 0 it is equal to 1 */
|
||||
if (tg->getRemaining() >=
|
||||
(tg->gotReply ? (!o.timing_level ? 1 : o.timing_level) : 2))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user