F
FE-FR
My question is about the mpradminconnectionremovequarantine API
This is what we have in the SDK :
DWORD MprAdminConnectionRemoveQuarantine(
HANDLE hRasServer,
HANDLE hRasConnection,
BOOL fIsIpAddress
);
if fIsIpAddress=TRUE then it means that the hRasConnection parameter has to
contain the IP Address of the connection (Given by DHCP during the VPN
connection for example).I am a bit confused by the format, in this case, of
hRasConnection.The SDK says "The IP address should be specified as a DWORD
in network byte order".Let's suppose that the IP Address is 192.168.1.2. How
can I convert this : * Option 1 : use inet_addr function (big-endian)
* Option 2 : convert each number in binary, ... add a few 0 ... concatenate
.. For example : 192 : 11000000 11000000 168
:10101000 10101000 1 :1 00000001
2 : 10 00000010 Concatenate : 11000000 10101000
00000001 00000010 Convert : 11000000101010000000000100000010 which is
3232235778 in DWORDCan you advise me ?Thanks.FE
This is what we have in the SDK :
DWORD MprAdminConnectionRemoveQuarantine(
HANDLE hRasServer,
HANDLE hRasConnection,
BOOL fIsIpAddress
);
if fIsIpAddress=TRUE then it means that the hRasConnection parameter has to
contain the IP Address of the connection (Given by DHCP during the VPN
connection for example).I am a bit confused by the format, in this case, of
hRasConnection.The SDK says "The IP address should be specified as a DWORD
in network byte order".Let's suppose that the IP Address is 192.168.1.2. How
can I convert this : * Option 1 : use inet_addr function (big-endian)
* Option 2 : convert each number in binary, ... add a few 0 ... concatenate
.. For example : 192 : 11000000 11000000 168
:10101000 10101000 1 :1 00000001
2 : 10 00000010 Concatenate : 11000000 10101000
00000001 00000010 Convert : 11000000101010000000000100000010 which is
3232235778 in DWORDCan you advise me ?Thanks.FE