ltm rule command DATAGRAM ip6ΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



DATAGRAM::ip6
       Returns ipv6 header information.

SYNOPSIS
       DATAGRAM::ip6 hop_limit

       DATAGRAM::ip6 (option | option_count) (IPV6_OPTION)?

DESCRIPTION
       This iRules command returns ipv6 header information.  Note: throws an
       error when used with IPv4

       DATAGRAM::ip6 hop_limit

	    * This command returns IPv6 hop limit as an integer value.

       DATAGRAM::ip6 option

	    * This command returns a Tcl list of IPv6 options from reassembled
	      IPv6 datagram. Each option is a Tcl list with one or two values -
	      option code (integer), and option value (byte array) if option has
	      the value. Multiple options with the same code will be returned as
	      separate sublists. There are one or two byte IPv6 options that do
	      not have any data - in this case only option code is present. If
	      datagram has no IPv6 options an empty value is returned. Options
	      are retrieved from all IPv6 options extension headers - Hop-By-Hop
	      and Destination headers.

       DATAGRAM::ip6 option [option-code]

	    * This command returns a Tcl list of values for IPv6 option with
	      specified option code from reassembled IPv6 datagram. If option
	      occurs multiple times and has no data (1 or 2 byte option) then a
	      list of empty values is returned. If there is a single occurrence
	      of such option then empty value is returned. In this case
	      option_count must be used to detect presence of this option.

       DATAGRAM::ip6 option_count

	    * This command returns a number of IPv6 options in the IPv6 datagram
	      extension headers.

       DATAGRAM::ip6 option_count [option-code]

	    * This command returns a number of IPv6 options with specified option
	      code in the IPv6 datagram extension headers.

RETURN VALUE
VALID DURING
       FLOW_INIT, CLIENT_DATA

EXAMPLES
HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.6.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)