aboutsummaryrefslogtreecommitdiff
path: root/networking/pscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/pscan.c')
-rw-r--r--networking/pscan.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/pscan.c b/networking/pscan.c
index 2715ef2df..816178bbc 100644
--- a/networking/pscan.c
+++ b/networking/pscan.c
@@ -18,13 +18,13 @@
18//usage:#define pscan_trivial_usage 18//usage:#define pscan_trivial_usage
19//usage: "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST" 19//usage: "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST"
20//usage:#define pscan_full_usage "\n\n" 20//usage:#define pscan_full_usage "\n\n"
21//usage: "Scan a host, print all open ports\n" 21//usage: "Scan HOST, print all open ports\n"
22//usage: "\n -c Show closed ports too" 22//usage: "\n -c Show closed ports too"
23//usage: "\n -b Show blocked ports too" 23//usage: "\n -b Show blocked ports too"
24//usage: "\n -p Scan from this port (default 1)" 24//usage: "\n -p PORT Scan from this port (default 1)"
25//usage: "\n -P Scan up to this port (default 1024)" 25//usage: "\n -P PORT Scan up to this port (default 1024)"
26//usage: "\n -t Timeout (default 5000 ms)" 26//usage: "\n -t MS Timeout (default 5000 ms)"
27//usage: "\n -T Minimum rtt (default 5 ms, increase for congested hosts)" 27//usage: "\n -T MS Minimum rtt (default 5 ms)"
28 28
29#include "libbb.h" 29#include "libbb.h"
30 30
@@ -139,7 +139,7 @@ int pscan_main(int argc UNUSED_PARAM, char **argv)
139 * We check rtt BEFORE we usleep, otherwise 139 * We check rtt BEFORE we usleep, otherwise
140 * on localhost we'll have no writes done (!) 140 * on localhost we'll have no writes done (!)
141 * before we exceed (rather small) rtt */ 141 * before we exceed (rather small) rtt */
142 usleep(rtt_4/8); 142 usleep(rtt_4 / 8);
143 open: 143 open:
144 diff = MONOTONIC_US() - start; 144 diff = MONOTONIC_US() - start;
145 DMSG("write to port %u @%u", port, diff - start); 145 DMSG("write to port %u @%u", port, diff - start);