Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
f28cd51d
Commit
f28cd51d
authored
May 20, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Add initialization function for getting the MIB2 number of interfaces.
parent
709a0a46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
Makefile.in
dlls/inetmib1/Makefile.in
+1
-0
main.c
dlls/inetmib1/main.c
+17
-0
No files found.
dlls/inetmib1/Makefile.in
View file @
f28cd51d
...
...
@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
inetmib1.dll
IMPORTS
=
snmpapi kernel32
DELAYIMPORTS
=
iphlpapi
C_SRCS
=
\
main.c
...
...
dlls/inetmib1/main.c
View file @
f28cd51d
...
...
@@ -23,6 +23,7 @@
#include "windef.h"
#include "winbase.h"
#include "snmp.h"
#include "iphlpapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
inetmib1
);
...
...
@@ -56,7 +57,23 @@ struct mibImplementation
void
(
*
init
)(
void
);
};
static
UINT
mib2IfNumber
[]
=
{
1
,
3
,
6
,
1
,
2
,
1
,
2
,
1
};
static
PMIB_IFTABLE
ifTable
;
static
void
mib2IfNumberInit
(
void
)
{
DWORD
size
=
0
,
ret
=
GetIfTable
(
NULL
,
&
size
,
FALSE
);
if
(
ret
==
ERROR_INSUFFICIENT_BUFFER
)
{
ifTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
ifTable
)
GetIfTable
(
ifTable
,
&
size
,
FALSE
);
}
}
static
struct
mibImplementation
supportedIDs
[]
=
{
{
DEFINE_OID
(
mib2IfNumber
),
mib2IfNumberInit
},
};
BOOL
WINAPI
SnmpExtensionInit
(
DWORD
dwUptimeReference
,
...
...
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