Chapter 8 Advanced Expressions: IP and MAC Addresses, Throughput, VLAN IDs 151

Operations on IPV4 Addresses

Prefix

Description

 

 

ip address.GET1. . .GET4

Returns a portion of an IP address as a numeric

 

value. For example, if the IP address value is

 

10.100.200.1, the following is returned:

 

client.ip.src.get1 Returns 10

 

client.ip.src.get2 returns 100

 

client.ip.src.get3 returns 200

ip

Returns a Boolean TRUE if the subnet argument

address.IN_SUBNET(subnet)

matches the subnet of the IP address value. For

 

example, the following determines whether the

 

client's destination IP address subnet is

 

10.100.10.100/18:

 

client.ip.dst.eq(10.100.10.100/18)

ip address.SUBNET(n)

Returns the IP address after applying the subnet

 

mask specified as the argument. The subnet mask

 

can take values between 0 and 32.

 

For example:

 

CLIENT.IP.SRC.SUBNET(24) will return

 

192.168.1.0 if the IP address represented by the

 

prefix is 192.168.1.[0-255].

ip address.IS_IPV6

Returns a Boolean TRUE if this is an Internet

 

Protocol version 6 (IPv6) host for the client or

 

server. Following is an example:

 

client.ip.src.is_ipv6

ip

Returns a Boolean TRUE if the IP address for the

address.MATCHES("hostname")

host specified in hostname matches the current IP

 

address. The hostname cannot exceed 255

 

characters.

ip

Returns a Boolean TRUE if the location of the IP

address.MATCHES_LOCATION(lo

address matches the location argument. The

cation)

Location string can take the following form:

 

qual1.qual2.qual3.qual4.qual5.qual6,

 

for example: NorthAmeria.CA.*

 

Following is an example:

 

client.ip.src.matches_location(\"Euro

 

pe.GB.17.London.*.*\")

About IPv6 Expressions

IP addresses that are formatted for Internet Protocol version 6 (IPv6) enable more flexibility when assigning addresses than the older IPv4 format. An IPv6 address in a URL has a different appearance from a traditional URL. The following is an example of an IPv6 URL:

Page 165
Image 165
Citrix Systems 9.2 manual About IPv6 Expressions, Qual1.qual2.qual3.qual4.qual5.qual6