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
7a5c5099
Commit
7a5c5099
authored
Mar 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Remove the no longer needed getNumArpEntries function.
parent
44f30a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
48 deletions
+0
-48
ipstats.c
dlls/iphlpapi/ipstats.c
+0
-45
ipstats.h
dlls/iphlpapi/ipstats.h
+0
-3
No files found.
dlls/iphlpapi/ipstats.c
View file @
7a5c5099
...
...
@@ -1268,51 +1268,6 @@ done:
return
ret
;
}
DWORD
getNumArpEntries
(
void
)
{
#if defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP)
int
mib
[]
=
{
CTL_NET
,
PF_ROUTE
,
0
,
AF_INET
,
NET_RT_FLAGS
,
RTF_LLINFO
};
#define MIB_LEN (sizeof(mib) / sizeof(mib[0]))
DWORD
arpEntries
=
0
;
size_t
needed
;
char
*
buf
,
*
lim
,
*
next
;
struct
rt_msghdr
*
rtm
;
struct
sockaddr_inarp
*
sinarp
;
struct
sockaddr_dl
*
sdl
;
if
(
sysctl
(
mib
,
MIB_LEN
,
NULL
,
&
needed
,
NULL
,
0
)
==
-
1
)
{
ERR
(
"failed to get size of arp table
\n
"
);
return
0
;
}
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
needed
);
if
(
!
buf
)
return
0
;
if
(
sysctl
(
mib
,
MIB_LEN
,
buf
,
&
needed
,
NULL
,
0
)
==
-
1
)
{
ERR
(
"failed to get arp table
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
return
0
;
}
lim
=
buf
+
needed
;
next
=
buf
;
while
(
next
<
lim
)
{
rtm
=
(
struct
rt_msghdr
*
)
next
;
sinarp
=
(
struct
sockaddr_inarp
*
)(
rtm
+
1
);
sdl
=
(
struct
sockaddr_dl
*
)((
char
*
)
sinarp
+
ROUNDUP
(
sinarp
->
sin_len
));
if
(
sdl
->
sdl_alen
)
/* arp entry */
arpEntries
++
;
next
+=
rtm
->
rtm_msglen
;
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
return
arpEntries
;
#endif
return
getNumWithOneHeader
(
"/proc/net/arp"
);
}
static
MIB_IPNETTABLE
*
append_ipnet_row
(
HANDLE
heap
,
DWORD
flags
,
MIB_IPNETTABLE
*
table
,
DWORD
*
count
,
const
MIB_IPNETROW
*
row
)
{
...
...
dlls/iphlpapi/ipstats.h
View file @
7a5c5099
...
...
@@ -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 arp table. */
DWORD
getNumArpEntries
(
void
);
/* Returns the number of entries in the UDP state table. */
DWORD
getNumUdpEntries
(
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