Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
87dafc3c
Commit
87dafc3c
authored
Dec 12, 2019
by
Chip Davis
Committed by
Alexandre Julliard
Dec 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implement some more IpStatistics on BSD.
Signed-off-by:
Chip Davis
<
cdavis@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
697abbcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
ipstats.c
dlls/iphlpapi/ipstats.c
+12
-7
No files found.
dlls/iphlpapi/ipstats.c
View file @
87dafc3c
...
...
@@ -951,21 +951,26 @@ DWORD WINAPI GetIpStatisticsEx(PMIB_IPSTATS stats, DWORD family)
/* ip.forwarding is 0 or 1 on BSD */
stats
->
u
.
dwForwarding
=
ip_forwarding
+
1
;
stats
->
dwDefaultTTL
=
ip_ttl
;
stats
->
dwInDelivers
=
ip_stat
.
ips_delivered
;
stats
->
dwInHdrErrors
=
ip_stat
.
ips_badhlen
+
ip_stat
.
ips_badsum
+
ip_stat
.
ips_tooshort
+
ip_stat
.
ips_badlen
;
stats
->
dwInAddrErrors
=
ip_stat
.
ips_cantforward
;
stats
->
dwInReceives
=
ip_stat
.
ips_total
;
stats
->
dwInHdrErrors
=
ip_stat
.
ips_badhlen
+
ip_stat
.
ips_badsum
+
ip_stat
.
ips_tooshort
+
ip_stat
.
ips_badlen
+
ip_stat
.
ips_badvers
+
ip_stat
.
ips_badoptions
;
/* ips_badaddr also includes outgoing packets with a bad address, but we can't account for that right now */
stats
->
dwInAddrErrors
=
ip_stat
.
ips_cantforward
+
ip_stat
.
ips_badaddr
+
ip_stat
.
ips_notmember
;
stats
->
dwForwDatagrams
=
ip_stat
.
ips_forward
;
stats
->
dwInUnknownProtos
=
ip_stat
.
ips_noproto
;
stats
->
dwInDiscards
=
ip_stat
.
ips_fragdropped
;
stats
->
dwInDelivers
=
ip_stat
.
ips_delivered
;
stats
->
dwOutRequests
=
ip_stat
.
ips_localout
;
/*stats->dwRoutingDiscards = 0;*/
/* FIXME */
stats
->
dwOutDiscards
=
ip_stat
.
ips_odropped
;
stats
->
dwOutNoRoutes
=
ip_stat
.
ips_noroute
;
stats
->
dwReasmTimeout
=
ip_stat
.
ips_fragtimeout
;
stats
->
dwReasmReqds
=
ip_stat
.
ips_fragments
;
stats
->
dwReasmOks
=
ip_stat
.
ips_reassembled
;
stats
->
dwReasmFails
=
ip_stat
.
ips_fragments
-
ip_stat
.
ips_reassembled
;
stats
->
dwFragOks
=
ip_stat
.
ips_fragmented
;
stats
->
dwFragFails
=
ip_stat
.
ips_cantfrag
;
stats
->
dwReasmTimeout
=
ip_stat
.
ips_fragtimeout
;
stats
->
dwOutNoRoutes
=
ip_stat
.
ips_noroute
;
stats
->
dwOutRequests
=
ip_stat
.
ips_localout
;
stats
->
dwReasmReqds
=
ip_stat
.
ips_fragments
;
stats
->
dwFragCreates
=
ip_stat
.
ips_ofragments
;
ret
=
NO_ERROR
;
}
#else
...
...
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