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
3573c649
Commit
3573c649
authored
Mar 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Remove the no longer needed getNumUdpEntries function.
parent
7a5c5099
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
ipstats.c
dlls/iphlpapi/ipstats.c
+7
-9
ipstats.h
dlls/iphlpapi/ipstats.h
+0
-3
No files found.
dlls/iphlpapi/ipstats.c
View file @
3573c649
...
...
@@ -793,6 +793,7 @@ DWORD getUDPStats(MIB_UDPSTATS *stats)
int
mib
[]
=
{
CTL_NET
,
PF_INET
,
IPPROTO_UDP
,
UDPCTL_STATS
};
#define MIB_LEN (sizeof(mib) / sizeof(mib[0]))
struct
udpstat
udp_stat
;
MIB_UDPTABLE
*
udp_table
;
size_t
needed
;
if
(
!
stats
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -809,7 +810,12 @@ DWORD getUDPStats(MIB_UDPSTATS *stats)
stats
->
dwOutDatagrams
=
udp_stat
.
udps_opackets
;
stats
->
dwNoPorts
=
udp_stat
.
udps_noport
;
stats
->
dwInErrors
=
udp_stat
.
udps_hdrops
+
udp_stat
.
udps_badsum
+
udp_stat
.
udps_fullsock
+
udp_stat
.
udps_badlen
;
stats
->
dwNumAddrs
=
getNumUdpEntries
();
if
(
!
AllocateAndGetUdpTableFromStack
(
&
udp_table
,
FALSE
,
GetProcessHeap
(),
0
))
{
stats
->
dwNumAddrs
=
udp_table
->
dwNumEntries
;
HeapFree
(
GetProcessHeap
(),
0
,
udp_table
);
}
else
stats
->
dwNumAddrs
=
0
;
return
NO_ERROR
;
#else
...
...
@@ -1453,14 +1459,6 @@ done:
return
ret
;
}
DWORD
getNumUdpEntries
(
void
)
{
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_NETINET_IN_PCB_H)
return
getNumWithOneHeader
(
"net.inet.udp.pcblist"
);
#else
return
getNumWithOneHeader
(
"/proc/net/udp"
);
#endif
}
static
MIB_UDPTABLE
*
append_udp_row
(
HANDLE
heap
,
DWORD
flags
,
MIB_UDPTABLE
*
table
,
DWORD
*
count
,
const
MIB_UDPROW
*
row
)
...
...
dlls/iphlpapi/ipstats.h
View file @
3573c649
...
...
@@ -55,9 +55,6 @@ DWORD getUDPStats(MIB_UDPSTATS *stats);
/* Returns the number of entries in the route table. */
DWORD
getNumRoutes
(
void
);
/* Returns the number of entries in the UDP state table. */
DWORD
getNumUdpEntries
(
void
);
/* Returns the number of entries in the TCP state table. */
DWORD
getNumTcpEntries
(
void
);
...
...
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