StartupAddressMode wasn't being handled on NetworkInterface get/update
@@ -41,6 +41,7 @@ HRESULT Library_sys_net_native_System_Net_NetworkInformation_NetworkInterface::I
pConfig[ FIELD___networkInterfaceType ].SetInteger( (CLR_UINT32)config.InterfaceType);
pConfig[ FIELD___specificConfigId ].SetInteger( (CLR_UINT32)config.SpecificConfigId);
+ pConfig[ FIELD___startupAddressMode ].SetInteger( (CLR_UINT32)config.StartupAddressMode);
NANOCLR_CHECK_HRESULT(CLR_RT_HeapBlock_Array::CreateInstance( pConfig[ FIELD___macAddress ], NETIF_MAX_HWADDR_LEN, g_CLR_RT_WellKnownTypes.m_UInt8));
memcpy(pConfig[ FIELD___macAddress ].DereferenceArray()->GetFirstElement(), config.MacAddress, NETIF_MAX_HWADDR_LEN);
@@ -76,6 +77,7 @@ HRESULT Library_sys_net_native_System_Net_NetworkInformation_NetworkInterface::U
config.InterfaceType = (NetworkInterfaceType) pConfig[ FIELD___networkInterfaceType ].NumericByRef().u4;
config.SpecificConfigId = (CLR_UINT32) pConfig[ FIELD___specificConfigId ].NumericByRef().u4;
+ config.StartupAddressMode = (AddressMode) pConfig[ FIELD___startupAddressMode ].NumericByRef().u4;
if(pMACAddress != NULL)
{
@@ -137,6 +139,7 @@ HRESULT Library_sys_net_native_System_Net_NetworkInformation_NetworkInterface::G
pConfig[ FIELD___networkInterfaceType ].SetInteger( (CLR_UINT32)config.InterfaceType);
pConfig[ FIELD___specificConfigId ].SetInteger( (CLR_UINT32)config.SpecificConfigId);
+ pConfig[ FIELD___startupAddressMode ].SetInteger( (CLR_UINT32)config.StartupAddressMode);
NANOCLR_CHECK_HRESULT(CLR_RT_HeapBlock_Array::CreateInstance( pConfig[ FIELD___macAddress ], NETIF_MAX_HWADDR_LEN, g_CLR_RT_WellKnownTypes.m_UInt8 ));
memcpy( pConfig[ FIELD___macAddress ].DereferenceArray()->GetFirstElement(), config.MacAddress, NETIF_MAX_HWADDR_LEN );
