ltm rule command IP protocol
iRule(1) BIG-IP TMSH Manual iRule(1)
IP::protocol
Returns the IP protocol value.
SYNOPSIS
IP::protocol
DESCRIPTION
Returns the IP protocol value. This command replaces the BIG-IP 4.X variable ip_protocol. For a list of the IP protocol
numbers, see /etc/protocols or the IANA protocol number list
RETURN VALUE
IP protocol
VALID DURING
ANY_EVENT
EXAMPLES
when CLIENT_ACCEPTED {
if { [IP::protocol] == 6 } {
pool tcp_pool
} else {
pool slow_pool
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.2.2 -- Add to GTM @BIGIP-9.0.0 --First introduced the command.
BIG-IP 2022-04-12 iRule(1)