Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d3dc6f90
Commit
d3dc6f90
authored
Mar 07, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Apr 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ping: Distinguish between timeouts and other failures.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c248b6cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ping_main.c
programs/ping/ping_main.c
+5
-1
No files found.
programs/ping/ping_main.c
View file @
d3dc6f90
...
...
@@ -157,6 +157,7 @@ int main(int argc, char** argv)
printf
(
"Pinging %s [%s] with %d bytes of data:
\n
"
,
hostname
,
ip
,
l
);
for
(;;)
{
SetLastError
(
0
);
retval
=
IcmpSendEcho
(
icmp_file
,
ipaddr
,
send_data
,
l
,
NULL
,
reply_buffer
,
reply_size
,
w
);
if
(
retval
!=
0
)
...
...
@@ -177,7 +178,10 @@ int main(int argc, char** argv)
}
else
{
printf
(
"Request timed out.
\n
"
);
if
(
GetLastError
()
==
IP_REQ_TIMED_OUT
)
puts
(
"Request timed out."
);
else
puts
(
"PING: transmit failed. General failure."
);
lost
++
;
}
i
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment