MprAdminConnectionRemoveQuarantine

  • Thread starter Thread starter FE-FR
  • Start date Start date
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
 
You can use either option. But my recommendation would be using inet_addr
instead of manipulating bytes.

Thanks,
Rama Krishna Amaravadi
 
Use inet_addr(IP addrees String) to get network byte order and call
MprAdminConnectionRemoveQuarantine().

--
Thanks
Ashok
PS: Network byte order is big endian.
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks a lot.

Regards.

FE
Ashok said:
Use inet_addr(IP addrees String) to get network byte order and call
MprAdminConnectionRemoveQuarantine().

--
Thanks
Ashok
PS: Network byte order is big endian.
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.



"FE-FR" <fe> wrote in message news:[email protected]... which
 
Back
Top