mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-06-28 11:55:08 +03:00
spelling: address
This commit is contained in:
parent
e4ca50c20e
commit
1ac6c7c85e
@ -893,7 +893,7 @@ struct RUDP_STACK
|
|||||||
volatile UINT *NatTGlobalUdpPort; // NAT-T global UDP port
|
volatile UINT *NatTGlobalUdpPort; // NAT-T global UDP port
|
||||||
UCHAR RandPortId; // Random UDP port ID
|
UCHAR RandPortId; // Random UDP port ID
|
||||||
bool NatT_EnableSourceIpValidation; // Enable the source IP address validation mechanism
|
bool NatT_EnableSourceIpValidation; // Enable the source IP address validation mechanism
|
||||||
LIST *NatT_SourceIpList; // Authenticated source IP adddress list
|
LIST *NatT_SourceIpList; // Authenticated source IP address list
|
||||||
|
|
||||||
// For Client
|
// For Client
|
||||||
bool TargetIpAndPortInited; // The target IP address and the port number are initialized
|
bool TargetIpAndPortInited; // The target IP address and the port number are initialized
|
||||||
|
@ -181,7 +181,7 @@ BOOLEAN PacketGetAddressesFromRegistry(LPTSTR AdapterName, npf_if_addr* buffer,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
// Query the registry key with the interface's adresses
|
// Query the registry key with the interface's addresses
|
||||||
status = RegOpenKeyEx(HKEY_LOCAL_MACHINE,TEXT("SYSTEM\\CurrentControlSet\\Services"),0,KEY_READ,&SystemKey);
|
status = RegOpenKeyEx(HKEY_LOCAL_MACHINE,TEXT("SYSTEM\\CurrentControlSet\\Services"),0,KEY_READ,&SystemKey);
|
||||||
if (status != ERROR_SUCCESS)
|
if (status != ERROR_SUCCESS)
|
||||||
goto fail;
|
goto fail;
|
||||||
@ -222,7 +222,7 @@ BOOLEAN PacketGetAddressesFromRegistry(LPTSTR AdapterName, npf_if_addr* buffer,
|
|||||||
DHCPEnabled=0;
|
DHCPEnabled=0;
|
||||||
|
|
||||||
|
|
||||||
/* Retrieve the adrresses */
|
/* Retrieve the addresses */
|
||||||
if(DHCPEnabled){
|
if(DHCPEnabled){
|
||||||
|
|
||||||
BufLen = sizeof String;
|
BufLen = sizeof String;
|
||||||
@ -284,7 +284,7 @@ BOOLEAN PacketGetAddressesFromRegistry(LPTSTR AdapterName, npf_if_addr* buffer,
|
|||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The number of masks MUST be equal to the number of adresses
|
// The number of masks MUST be equal to the number of addresses
|
||||||
if(nmasks != naddrs){
|
if(nmasks != naddrs){
|
||||||
RegCloseKey(TcpIpKey);
|
RegCloseKey(TcpIpKey);
|
||||||
RegCloseKey(UnderTcpKey);
|
RegCloseKey(UnderTcpKey);
|
||||||
@ -353,7 +353,7 @@ BOOLEAN PacketGetAddressesFromRegistry(LPTSTR AdapterName, npf_if_addr* buffer,
|
|||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The number of masks MUST be equal to the number of adresses
|
// The number of masks MUST be equal to the number of addresses
|
||||||
if(nmasks != naddrs){
|
if(nmasks != naddrs){
|
||||||
RegCloseKey(TcpIpKey);
|
RegCloseKey(TcpIpKey);
|
||||||
RegCloseKey(UnderTcpKey);
|
RegCloseKey(UnderTcpKey);
|
||||||
@ -432,7 +432,7 @@ BOOLEAN PacketAddIP6Addresses(PADAPTER_INFO AdInfo)
|
|||||||
ODS("PacketAddIP6Addresses, retrieved addresses\n");
|
ODS("PacketAddIP6Addresses, retrieved addresses\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Scan the list of adddresses obtained from the IP helper API
|
// Scan the list of addresses obtained from the IP helper API
|
||||||
//
|
//
|
||||||
for(TmpAddr = AdBuffer; TmpAddr != NULL; TmpAddr = TmpAddr->Next)
|
for(TmpAddr = AdBuffer; TmpAddr != NULL; TmpAddr = TmpAddr->Next)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user