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
185c441c
Commit
185c441c
authored
Apr 29, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add some types and constants used in the IP helper API.
parent
883d32dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
164 additions
and
0 deletions
+164
-0
ipifcons.h
include/ipifcons.h
+29
-0
iptypes.h
include/iptypes.h
+135
-0
No files found.
include/ipifcons.h
View file @
185c441c
...
@@ -18,6 +18,35 @@
...
@@ -18,6 +18,35 @@
#ifndef WINE_IPIFCONS_H__
#ifndef WINE_IPIFCONS_H__
#define WINE_IPIFCONS_H__
#define WINE_IPIFCONS_H__
#define IF_TYPE_OTHER 1
#define IF_TYPE_REGULAR_1822 2
#define IF_TYPE_HDH_1822 3
#define IF_TYPE_DDN_X25 4
#define IF_TYPE_RFC877_X25 5
#define IF_TYPE_ETHERNET_CSMACD 6
#define IF_TYPE_IS088023_CSMACD 7
#define IF_TYPE_ISO88024_TOKENBUS 8
#define IF_TYPE_ISO88025_TOKENRING 9
#define IF_TYPE_ISO88026_MAN 10
#define IF_TYPE_STARLAN 11
#define IF_TYPE_PROTEON_10MBIT 12
#define IF_TYPE_PROTEON_80MBIT 13
#define IF_TYPE_HYPERCHANNEL 14
#define IF_TYPE_FDDI 15
#define IF_TYPE_LAP_B 16
#define IF_TYPE_SDLC 17
#define IF_TYPE_DS1 18
#define IF_TYPE_E1 19
#define IF_TYPE_BASIC_ISDN 20
#define IF_TYPE_PRIMARY_ISDN 21
#define IF_TYPE_PROP_POINT2POINT_SERIAL 22
#define IF_TYPE_PPP 23
#define IF_TYPE_SOFTWARE_LOOPBACK 24
#define IF_TYPE_EON 25
#define IF_TYPE_ETHERNET_3MBIT 26
#define IF_TYPE_NSIP 27
#define IF_TYPE_SLIP 28
#define MIB_IF_TYPE_OTHER 1
#define MIB_IF_TYPE_OTHER 1
#define MIB_IF_TYPE_ETHERNET 6
#define MIB_IF_TYPE_ETHERNET 6
#define MIB_IF_TYPE_TOKENRING 9
#define MIB_IF_TYPE_TOKENRING 9
...
...
include/iptypes.h
View file @
185c441c
...
@@ -84,4 +84,139 @@ typedef struct {
...
@@ -84,4 +84,139 @@ typedef struct {
UINT
EnableDns
;
UINT
EnableDns
;
}
FIXED_INFO
,
*
PFIXED_INFO
;
}
FIXED_INFO
,
*
PFIXED_INFO
;
typedef
enum
{
IpPrefixOriginOther
=
0
,
IpPrefixOriginManual
,
IpPrefixOriginWellKnown
,
IpPrefixOriginDhcp
,
IpPrefixOriginRouterAdvertisement
,
IpPrefixOriginUnchanged
=
16
}
IP_PREFIX_ORIGIN
;
typedef
enum
{
IpSuffixOriginOther
=
0
,
IpSuffixOriginManual
,
IpSuffixOriginWellKnown
,
IpSuffixOriginDhcp
,
IpSuffixOriginLinkLayerAddress
,
IpSuffixOriginRandom
,
IpSuffixOriginUnchanged
=
16
}
IP_SUFFIX_ORIGIN
;
typedef
enum
{
IfOperStatusUp
=
1
,
IfOperStatusDown
,
IfOperStatusTesting
,
IfOperStatusUnknown
,
IfOperStatusDormant
,
IfOperStatusNotPresent
,
IfOperStatusLowerLayerDown
}
IF_OPER_STATUS
;
typedef
enum
{
IpDadStateInvalid
=
0
,
IpDadStateTentative
,
IpDadStateDuplicate
,
IpDadStateDeprecated
,
IpDadStatePreferred
}
IP_DAD_STATE
;
#ifdef _WINSOCK2API_
typedef
struct
_IP_ADAPTER_UNICAST_ADDRESS
{
union
{
struct
{
ULONG
Length
;
DWORD
Flags
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
struct
_IP_ADAPTER_UNICAST_ADDRESS
*
Next
;
SOCKET_ADDRESS
Address
;
IP_PREFIX_ORIGIN
PrefixOrigin
;
IP_SUFFIX_ORIGIN
SuffixOrigin
;
IP_DAD_STATE
DadState
;
ULONG
ValidLifetime
;
ULONG
PreferredLifetime
;
ULONG
LeaseLifetime
;
}
IP_ADAPTER_UNICAST_ADDRESS
,
*
PIP_ADAPTER_UNICAST_ADDRESS
;
typedef
struct
_IP_ADAPTER_ANYCAST_ADDRESS
{
union
{
ULONGLONG
Alignment
;
struct
{
ULONG
Length
;
DWORD
Flags
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
struct
_IP_ADAPTER_ANYCAST_ADDRESS
*
Next
;
SOCKET_ADDRESS
Address
;
}
IP_ADAPTER_ANYCAST_ADDRESS
,
*
PIP_ADAPTER_ANYCAST_ADDRESS
;
typedef
struct
_IP_ADAPTER_MULTICAST_ADDRESS
{
union
{
ULONGLONG
Alignment
;
struct
{
ULONG
Length
;
DWORD
Flags
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
struct
_IP_ADAPTER_MULTICAST_ADDRESS
*
Next
;
SOCKET_ADDRESS
Address
;
}
IP_ADAPTER_MULTICAST_ADDRESS
,
*
PIP_ADAPTER_MULTICAST_ADDRESS
;
typedef
struct
_IP_ADAPTER_DNS_SERVER_ADDRESS
{
union
{
ULONGLONG
Alignment
;
struct
{
ULONG
Length
;
DWORD
Reserved
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
struct
_IP_ADAPTER_DNS_SERVER_ADDRESS
*
Next
;
SOCKET_ADDRESS
Address
;
}
IP_ADAPTER_DNS_SERVER_ADDRESS
,
*
PIP_ADAPTER_DNS_SERVER_ADDRESS
;
typedef
struct
_IP_ADAPTER_PREFIX
{
union
{
ULONGLONG
Alignment
;
struct
{
ULONG
Length
;
DWORD
Flags
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
struct
_IP_ADAPTER_PREFIX
*
Next
;
SOCKET_ADDRESS
Address
;
ULONG
PrefixLength
;
}
IP_ADAPTER_PREFIX
,
*
PIP_ADAPTER_PREFIX
;
typedef
struct
_IP_ADAPTER_ADDRESSES
{
union
{
ULONGLONG
Alignment
;
struct
{
ULONG
Length
;
DWORD
IfIndex
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
struct
_IP_ADAPTER_ADDRESSES
*
Next
;
PCHAR
AdapterName
;
PIP_ADAPTER_UNICAST_ADDRESS
FirstUnicastAddress
;
PIP_ADAPTER_ANYCAST_ADDRESS
FirstAnycastAddress
;
PIP_ADAPTER_MULTICAST_ADDRESS
FirstMulticastAddress
;
PIP_ADAPTER_DNS_SERVER_ADDRESS
FirstDnsServerAddress
;
PWCHAR
DnsSuffix
;
PWCHAR
Description
;
PWCHAR
FriendlyName
;
BYTE
PhysicalAddress
[
MAX_ADAPTER_ADDRESS_LENGTH
];
DWORD
PhysicalAddressLength
;
DWORD
Flags
;
DWORD
Mtu
;
DWORD
IfType
;
IF_OPER_STATUS
OperStatus
;
DWORD
Ipv6IfIndex
;
DWORD
ZoneIndices
[
16
];
PIP_ADAPTER_PREFIX
FirstPrefix
;
}
IP_ADAPTER_ADDRESSES
,
*
PIP_ADAPTER_ADDRESSES
;
#endif
/* _WINSOCK2API_ */
#endif
/* WINE_IPTYPES_H_*/
#endif
/* WINE_IPTYPES_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