Previous Topic: Group Types

Next Topic: Management Commands

IP Address Types

Sm_PolicyApi_IPAddressType_t enumerates the type of IP address restrictions that are defined for an object in Sm_PolicyApi_IPAddress_t.

IP Address Type

Value

Sm_PolicyApi_IPAddressType_SingleHost

A single host IP address requires the following fields to be set:

  • iStructId. IP Address data structure ID defined in
    Sm_PolicyApi_Structs_t.
  • iIPAddressType. Set IP address type to be
    Sm_PolicyApi_IPAddressType_SingleHost.
  • nIPAddress. The valid IP address. This IP address is specified in the long format.

1

Sm_PolicyApi_IPAddressType_HostName

A host name IP address requires the following fields to be set:

  • iStructId. IP Address data structure ID defined in
    Sm_PolicyApi_Structs_t.
  • iIPAddressType. Set IP address type to be
    Sm_PolicyApi_IPAddressType_HostName.
  • pszHostName[BFSIZE]. Host name of the machine that a user must be using for an action to occur-for example, for a policy to fire.

2

Sm_PolicyApi_IPAddressType_AddressAndSubNetMask

A subnet mask requires the following fields to be set:

  • iStructId. IP Address data structure ID defined in
    Sm_PolicyApi_Structs_t.
  • iIPAddressType. Set IP address type to be
    Sm_PolicyApi_IPAddressType_AddressAndSubnetMask.
  • nIPAddress. The valid IP address. This IP address is specified in the long format.
  • nSubnetMask. Specify the subnet mask.

3

Sm_PolicyApi_IPAddressType_Range

A range of IP addresses requires the following fields to be set:

  • iStructId. IP Address data structure ID defined in
    Sm_PolicyApi_Structs_t.
  • iIPAddressType. Set IP address type to be
    Sm_PolicyApi_IPAddressType_Range.
  • nIPAddress. Starting IP address. This IP address is specified in the long format.
  • nEndIPAddress. Ending IP address. This IP address is specified in the long format.

4


Copyright © 2010 CA. All rights reserved. Email CA about this topic