ltm rule command GTP payloadΒΆ

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

GTP::payload
       Returns the entire payload for G-PDU message. This command returns an empty value, in case of non-G-PDU
       messages.

SYNOPSIS
       GTP::payload

       GTP::payload COUNT

       GTP::payload OFFSET COUNT

       GTP::payload 'replace' ('-message' MESSAGE)? OFFSET COUNT NEW_VALUE

DESCRIPTION
       Returns the payload, either complete or partial, for G-PDU message.  This command returns an empty value, in
       case of non-G-PDU messages.

       Syntax

       GTP::payload

	  * Returns the entire payload for G-PDU message. This command returns an
	  empty value, in case of non-G-PDU messages.

       GTP::payload

	   * Returns COUNT bytes of the payload for G-PDU message, starting from the beginning.

       GTP::payload OFFSET COUNT

	   * Returns COUNT bytes of the payload for G-PDU message starting from OFFSET.  If OFFSET + COUNT exceeds the size of the payload, an error is raised.

       GTP::payload replace OFFSET COUNT NEW_VALUE

	   * Replaces COUNT bytes of the payload with NEW_VALUE, starting at OFFSET.

RETURN VALUE
VALID DURING
EXAMPLES
	when CLIENT_ACCEPTED {
	    set payload [UDP::payload]
	    set t2 [GTP::parse $payload]
	    log local0. "GTP version [GTP::header version -message $t2]"
	    log local0. "GTP type [GTP::header type -message $t2]"
	    log local0. "GTP teid [GTP::header teid -message $t2]"
	}

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

BIG-IP						      2020-06-23					     iRule(1)