iphlpapi: Flags in IP_ADAPTER_ADDRESSES_LH can be used as a bit field.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8c03b845c0
commit
30a27f0ba7
|
@ -1067,7 +1067,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
|
|||
{
|
||||
IP_ADAPTER_UNICAST_ADDRESS *ua;
|
||||
struct WS_sockaddr_in *sa;
|
||||
aa->Flags |= IP_ADAPTER_IPV4_ENABLED;
|
||||
aa->u1.s1.Ipv4Enabled = TRUE;
|
||||
ua = aa->FirstUnicastAddress = (IP_ADAPTER_UNICAST_ADDRESS *)ptr;
|
||||
for (i = 0; i < num_v4addrs; i++)
|
||||
{
|
||||
|
@ -1101,7 +1101,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
|
|||
IP_ADAPTER_UNICAST_ADDRESS *ua;
|
||||
struct WS_sockaddr_in6 *sa;
|
||||
|
||||
aa->Flags |= IP_ADAPTER_IPV6_ENABLED;
|
||||
aa->u1.s1.Ipv6Enabled = TRUE;
|
||||
if (aa->FirstUnicastAddress)
|
||||
{
|
||||
for (ua = aa->FirstUnicastAddress; ua->Next; ua = ua->Next)
|
||||
|
|
|
@ -244,7 +244,21 @@ typedef struct _IP_ADAPTER_ADDRESSES_LH {
|
|||
PWCHAR FriendlyName;
|
||||
BYTE PhysicalAddress[MAX_ADAPTER_ADDRESS_LENGTH];
|
||||
DWORD PhysicalAddressLength;
|
||||
DWORD Flags;
|
||||
union {
|
||||
DWORD Flags;
|
||||
struct {
|
||||
DWORD DdnsEnabled : 1;
|
||||
DWORD RegisterAdapterSuffix : 1;
|
||||
DWORD Dhcpv4Enabled : 1;
|
||||
DWORD ReceiveOnly : 1;
|
||||
DWORD NoMulticast : 1;
|
||||
DWORD Ipv6OtherStatefulConfig : 1;
|
||||
DWORD NetbiosOverTcpipEnabled : 1;
|
||||
DWORD Ipv4Enabled : 1;
|
||||
DWORD Ipv6Enabled : 1;
|
||||
DWORD Ipv6ManagedAddressConfigurationSupported : 1;
|
||||
} DUMMYSTRUCTNAME1;
|
||||
} DUMMYUNIONNAME1;
|
||||
DWORD Mtu;
|
||||
DWORD IfType;
|
||||
IF_OPER_STATUS OperStatus;
|
||||
|
|
Loading…
Reference in New Issue