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
2586bbb2
Commit
2586bbb2
authored
Aug 12, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Aug 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Update the echo request and reply counts.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ae7e808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ipstats.c
dlls/iphlpapi/ipstats.c
+5
-1
No files found.
dlls/iphlpapi/ipstats.c
View file @
2586bbb2
...
...
@@ -312,7 +312,7 @@ DWORD WINAPI GetIcmpStatistics(PMIB_ICMP stats)
if
(
!
_strnicmp
(
buf
,
hdr
,
sizeof
(
hdr
)
-
1
))
{
ptr
+=
sizeof
(
hdr
);
sscanf
(
ptr
,
"%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u"
,
sscanf
(
ptr
,
"%u %u %
*u %u %u %
u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u"
,
&
stats
->
stats
.
icmpInStats
.
dwMsgs
,
&
stats
->
stats
.
icmpInStats
.
dwErrors
,
&
stats
->
stats
.
icmpInStats
.
dwDestUnreachs
,
...
...
@@ -320,6 +320,7 @@ DWORD WINAPI GetIcmpStatistics(PMIB_ICMP stats)
&
stats
->
stats
.
icmpInStats
.
dwParmProbs
,
&
stats
->
stats
.
icmpInStats
.
dwSrcQuenchs
,
&
stats
->
stats
.
icmpInStats
.
dwRedirects
,
&
stats
->
stats
.
icmpInStats
.
dwEchos
,
&
stats
->
stats
.
icmpInStats
.
dwEchoReps
,
&
stats
->
stats
.
icmpInStats
.
dwTimestamps
,
&
stats
->
stats
.
icmpInStats
.
dwTimestampReps
,
...
...
@@ -332,6 +333,7 @@ DWORD WINAPI GetIcmpStatistics(PMIB_ICMP stats)
&
stats
->
stats
.
icmpOutStats
.
dwParmProbs
,
&
stats
->
stats
.
icmpOutStats
.
dwSrcQuenchs
,
&
stats
->
stats
.
icmpOutStats
.
dwRedirects
,
&
stats
->
stats
.
icmpOutStats
.
dwEchos
,
&
stats
->
stats
.
icmpOutStats
.
dwEchoReps
,
&
stats
->
stats
.
icmpOutStats
.
dwTimestamps
,
&
stats
->
stats
.
icmpOutStats
.
dwTimestampReps
,
...
...
@@ -594,6 +596,7 @@ DWORD WINAPI GetIcmpStatisticsEx(PMIB_ICMP_EX stats, DWORD family)
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_SOURCE_QUENCH
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwSrcQuenchs
;
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_REDIRECT
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwRedirects
;
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_ECHO_REQUEST
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwEchos
;
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_ECHO_REPLY
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwEchoReps
;
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_TIME_EXCEEDED
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwTimeExcds
;
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_PARAM_PROB
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwParmProbs
;
stats
->
icmpInStats
.
rgdwTypeCount
[
ICMP4_TIMESTAMP_REQUEST
]
=
ipv4stats
.
stats
.
icmpInStats
.
dwTimestamps
;
...
...
@@ -607,6 +610,7 @@ DWORD WINAPI GetIcmpStatisticsEx(PMIB_ICMP_EX stats, DWORD family)
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_SOURCE_QUENCH
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwSrcQuenchs
;
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_REDIRECT
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwRedirects
;
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_ECHO_REQUEST
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwEchos
;
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_ECHO_REPLY
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwEchoReps
;
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_TIME_EXCEEDED
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwTimeExcds
;
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_PARAM_PROB
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwParmProbs
;
stats
->
icmpOutStats
.
rgdwTypeCount
[
ICMP4_TIMESTAMP_REQUEST
]
=
ipv4stats
.
stats
.
icmpOutStats
.
dwTimestamps
;
...
...
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