What steps will reproduce the problem?
1. Query a port on localhost that is closed but not filtered.
2. Use tcpdump or similar to observe returning RST messages
3. Note that the output of the tool does not reflect that a packet was
returned, but instead reports a timeout.
What is the expected output? What do you see instead?
When a port is closed and the remote system responds to the connection request
with an RST packet, the output should indicate the fact that a response was
received despite the port being closed. "Connection timed out" implies that no
response was generated and that the host may be down/firewalled.
$ ./x86-64-paping -p 65000 -c 4 localhost
paping v1.5.5 - Copyright (c) 2015 Mike Lovell
Connecting to localhost on TCP 65000:
Connection timed out
Connection timed out
Connection timed out
Connection timed out
Connection statistics:
Attempted = 4, Connected = 0, Failed = 4 (100.00%)
Approximate connection times:
Minimum = 0.00ms, Maximum = 0.00ms, Average = 0.00ms
tcpdump output -----------------
09:44:44.860355 IP 127.0.0.1.54156 > 127.0.0.1.65000: Flags [S], seq
3122841057, win 43690, options [mss 65495,sackOK,TS val 945914219 ecr 0,nop,0
09:44:44.860369 IP 127.0.0.1.65000 > 127.0.0.1.54156: Flags [R.], seq 0, ack
3122841058, win 0, length 0
09:44:45.860618 IP 127.0.0.1.54158 > 127.0.0.1.65000: Flags [S], seq
1915727314, win 43690, options [mss 65495,sackOK,TS val 945914469 ecr 0,nop,0
09:44:45.860644 IP 127.0.0.1.65000 > 127.0.0.1.54158: Flags [R.], seq 0, ack
1915727315, win 0, length 0
09:44:46.860954 IP 127.0.0.1.54159 > 127.0.0.1.65000: Flags [S], seq
4105729788, win 43690, options [mss 65495,sackOK,TS val 945914719 ecr 0,nop,0
09:44:46.860981 IP 127.0.0.1.65000 > 127.0.0.1.54159: Flags [R.], seq 0, ack
4105729789, win 0, length 0
09:44:47.861281 IP 127.0.0.1.54160 > 127.0.0.1.65000: Flags [S], seq
4161817225, win 43690, options [mss 65495,sackOK,TS val 945914969 ecr 0,nop,0
09:44:47.861311 IP 127.0.0.1.65000 > 127.0.0.1.54160: Flags [R.], seq 0, ack
4161817226, win 0, length 0
What version of the product are you using? On what operating system?
v1.5.5 x64 linux
Please provide any additional information below.
Original issue reported on code.google.com by a...@pack-net.co.uk on 25 Feb 2015 at 9:47
Original issue reported on code.google.com by
a...@pack-net.co.uk
on 25 Feb 2015 at 9:47