mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Some more whitespace fixes.
This commit is contained in:
@@ -313,7 +313,7 @@ static int ipid_proxy_probe(struct idle_proxy_info *proxy, int *probes_sent,
|
|||||||
gettimeofday(&tv_end, NULL);
|
gettimeofday(&tv_end, NULL);
|
||||||
if (ip) {
|
if (ip) {
|
||||||
if (o.af() == AF_INET) {
|
if (o.af() == AF_INET) {
|
||||||
if (bytes < ( 4 * ip->ip_hl) + 14U)
|
if (bytes < (4 * ip->ip_hl) + 14U)
|
||||||
continue;
|
continue;
|
||||||
if (ip->ip_p == IPPROTO_TCP)
|
if (ip->ip_p == IPPROTO_TCP)
|
||||||
tcp = ((struct tcp_hdr *) (((char *) ip) + 4 * ip->ip_hl));
|
tcp = ((struct tcp_hdr *) (((char *) ip) + 4 * ip->ip_hl));
|
||||||
@@ -344,7 +344,7 @@ static int ipid_proxy_probe(struct idle_proxy_info *proxy, int *probes_sent,
|
|||||||
else if (o.af() == AF_INET6)
|
else if (o.af() == AF_INET6)
|
||||||
inet_ntop(AF_INET6, &(ip6->ip6_src), straddr, sizeof(straddr));
|
inet_ntop(AF_INET6, &(ip6->ip6_src), straddr, sizeof(straddr));
|
||||||
error("Received unexpected response packet from %s during IP ID zombie probing:", straddr);
|
error("Received unexpected response packet from %s during IP ID zombie probing:", straddr);
|
||||||
readtcppacket( (unsigned char *) ip, MIN(ntohs(ip->ip_len), bytes));
|
readtcppacket((unsigned char *) ip, MIN(ntohs(ip->ip_len), bytes));
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -767,7 +767,7 @@ static void initialize_idleproxy(struct idle_proxy_info *proxy, char *proxyName,
|
|||||||
continue; /* probably a duplicate */
|
continue; /* probably a duplicate */
|
||||||
}
|
}
|
||||||
lastipid = ip->ip_id;
|
lastipid = ip->ip_id;
|
||||||
if (bytes < ( 4 * ip->ip_hl) + 14U)
|
if (bytes < (4 * ip->ip_hl) + 14U)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (ip->ip_p == IPPROTO_TCP) {
|
if (ip->ip_p == IPPROTO_TCP) {
|
||||||
|
|||||||
@@ -2483,7 +2483,7 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) {
|
|||||||
|
|
||||||
dhz = (double) ts_diffs[i] / (time_usec_diffs[i] / 1000000.0);
|
dhz = (double) ts_diffs[i] / (time_usec_diffs[i] / 1000000.0);
|
||||||
/* printf("ts incremented by %d in %li usec -- %fHZ\n", ts_diffs[i], time_usec_diffs[i], dhz); */
|
/* printf("ts incremented by %d in %li usec -- %fHZ\n", ts_diffs[i], time_usec_diffs[i], dhz); */
|
||||||
avg_ts_hz += dhz / ( hss->si.responses - 1);
|
avg_ts_hz += dhz / (hss->si.responses - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avg_ts_hz > 0 && avg_ts_hz < 5.66) { /* relatively wide range because sampling time so short and frequency so slow */
|
if (avg_ts_hz > 0 && avg_ts_hz < 5.66) { /* relatively wide range because sampling time so short and frequency so slow */
|
||||||
|
|||||||
Reference in New Issue
Block a user