Defines an IP address restriction for an object-for example, you can define IP address restrictions that must be met for a policy to fire.
You can specify a single host IP address, a range of IP addresses, a host name, or a subnet mask.
Syntax
typedef struct Sm_PolicyApi_IPAddress_s { int iStructId; Sm_PolicyApi_IPAddressType_t iIPAddressType; unsigned long nIPAddress; unsigned long nEndIPAddress; unsigned long nSubnetMask; char pszHostName[BFSIZE]; struct Sm_PolicyApi_IPAddress_s *next; } Sm_PolicyApi_IPAddress_t;
Field |
Description |
---|---|
iStructId |
IP address structure ID, defined in Sm_PolicyApi_Structs_t. |
iIPAddressType |
Type of IP address, as enumerated in Sm_PolicyApi_IPAddressType_t. |
nIPAddress |
Starting IP address. |
nEndIPAddress |
Ending IP address. |
nSubnetMask |
The subnet mask value is a number of bits. To arrive at this value, count the bits in the binary value of the address. For example, suppose the subnet mask is 255.255.255.128. The binary format is: 11111111 11111111 11111111 10000000 Counting from left to right, the number to pass in nSubnetMask would be 25. |
pszHostName |
Host name of the machine that a user must be using in order for a policy to fire. |
next |
Pointer to next IP Address structure. |
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |