ltm rule command GTP newΒΆ

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

GTP::new
       Creates a new GTP message for given version & request-type.

SYNOPSIS
       GTP::new VERSION TYPE

DESCRIPTION
       Creates a new GTP message for given version & request-type.  Valid values for version are 1 or 2 only.  Request-type: A
       value less than 256.  Returns a TCL object of type "GTP-Message"

RETURN VALUE
       Returns a TCL object of type "GTP-Message"

VALID DURING
EXAMPLES
	when CLIENT_ACCEPTED {
	    set t2 [GTP::new 2 10]
	    log local0. "GTP version [GTP::header version -message $t2]"
	    log local0. "GTP type [GTP::header type -message $t2]"
	}

HINTS
SEE ALSO
       GTP::parse

CHANGE LOG
       @BIGIP-11.6.0 --First introduced the command.

BIG-IP							    2022-04-12							  iRule(1)