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
732f5a72
Commit
732f5a72
authored
Dec 13, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Define the MIB_IF_OPER_STATUS_XXX constants using an enumeration in ipifcons.h.
parent
cf76be61
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
ifenum.c
dlls/iphlpapi/ifenum.c
+1
-1
ifenum.h
dlls/iphlpapi/ifenum.h
+1
-1
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-1
ipifcons.h
include/ipifcons.h
+10
-7
No files found.
dlls/iphlpapi/ifenum.c
View file @
732f5a72
...
...
@@ -586,7 +586,7 @@ DWORD getInterfaceMtuByName(const char *name, PDWORD mtu)
return
ret
;
}
DWORD
getInterfaceStatusByName
(
const
char
*
name
,
PDWORD
status
)
DWORD
getInterfaceStatusByName
(
const
char
*
name
,
INTERNAL_IF_OPER_STATUS
*
status
)
{
DWORD
ret
;
int
fd
;
...
...
dlls/iphlpapi/ifenum.h
View file @
732f5a72
...
...
@@ -119,6 +119,6 @@ ULONG v6addressesFromIndex(DWORD index, SOCKET_ADDRESS **addrs, ULONG *num_addrs
char
*
toIPAddressString
(
unsigned
int
addr
,
char
string
[
16
])
DECLSPEC_HIDDEN
;
DWORD
getInterfaceMtuByName
(
const
char
*
name
,
PDWORD
mtu
)
DECLSPEC_HIDDEN
;
DWORD
getInterfaceStatusByName
(
const
char
*
name
,
PDWORD
status
)
DECLSPEC_HIDDEN
;
DWORD
getInterfaceStatusByName
(
const
char
*
name
,
INTERNAL_IF_OPER_STATUS
*
status
)
DECLSPEC_HIDDEN
;
#endif
/* ndef WINE_IFENUM_H_ */
dlls/iphlpapi/iphlpapi_main.c
View file @
732f5a72
...
...
@@ -803,7 +803,8 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, DWORD index,
{
char
name
[
IF_NAMESIZE
],
*
ptr
=
(
char
*
)
aa
+
sizeof
(
IP_ADAPTER_ADDRESSES
),
*
src
;
WCHAR
*
dst
;
DWORD
buflen
,
type
,
status
;
DWORD
buflen
,
type
;
INTERNAL_IF_OPER_STATUS
status
;
memset
(
aa
,
0
,
sizeof
(
IP_ADAPTER_ADDRESSES
));
aa
->
u
.
s
.
Length
=
sizeof
(
IP_ADAPTER_ADDRESSES
);
...
...
include/ipifcons.h
View file @
732f5a72
...
...
@@ -231,11 +231,14 @@
#define MIB_IF_ADMIN_STATUS_DOWN 2
#define MIB_IF_ADMIN_STATUS_TESTING 3
#define MIB_IF_OPER_STATUS_NON_OPERATIONAL 0
#define MIB_IF_OPER_STATUS_UNREACHABLE 1
#define MIB_IF_OPER_STATUS_DISCONNECTED 2
#define MIB_IF_OPER_STATUS_CONNECTING 3
#define MIB_IF_OPER_STATUS_CONNECTED 4
#define MIB_IF_OPER_STATUS_OPERATIONAL 5
typedef
enum
_INTERNAL_IF_OPER_STATUS
{
MIB_IF_OPER_STATUS_NON_OPERATIONAL
=
0
,
MIB_IF_OPER_STATUS_UNREACHABLE
=
1
,
MIB_IF_OPER_STATUS_DISCONNECTED
=
2
,
MIB_IF_OPER_STATUS_CONNECTING
=
3
,
MIB_IF_OPER_STATUS_CONNECTED
=
4
,
MIB_IF_OPER_STATUS_OPERATIONAL
=
5
,
}
INTERNAL_IF_OPER_STATUS
;
#endif
/* WINE_
ROUTING_
IPIFCONS_H__ */
#endif
/* WINE_IPIFCONS_H__ */
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