NETADDRESS Variable Type

NETADDRESS variables must receive their values in the Selector or Provider sections. Therefore, do not assign values to NETADDRESS variables in the declaration.

WAN Traffic Manager uses two predefined variables based on the NETADDRESS variable type. These predefined variables are:

NETADDRESS is declared as a structure with the following elements:

Type IPX or IP

a

(IP or IPX)

b

0-255 (IP or IPX)

c

0-255 (IP or IPX)

d

0-255 (IP or IPX)

e

0-255 (IPX only)

f

0-255 (IPX only)

g

0-255 (IPX only)

h

0-255 (IPX only)

i

0-255 (IPX only)

j

0-255 (IPX only)

k

0-255 (IPX only)

l

0-255 (IPX only)

You can access NETADDRESS variable elements by appending a period and the element name to the variable name. For example, 'R1.type' accesses the 'type' element of the R1 variable.

NETADDRESS variables with the REQUIRED scope receive their type element from the get WAN policy call.


Examples

X is a variable of type NETADDRESS.

A TCP/IP address looks like 11.22.33.44 where the numbers are 0 to 255 decimal. X.type is IP, X.a is 11, X.b is 22, X.c is 33, and X.d is 44.

An IPX address looks like 11223344:5566778899AA:BBCC (network, node, socket) where the numbers are in hex. X.type is IPX, X.a is 0x11 (0x indicates hex), X.b is 0x22, X.c is 0x33, X.d is 0x44, X.e is 0x55, X.f is 0x66, X.g is 0x77, X.h is 0x88, X.i is 0x99, X.j is 0xAA, X.k is 0xBB, and X.l is 0xCC.



Previous | Next