ltm rule command UDP remote portΒΆ

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

UDP::remote_port
       Returns the remote UDP port/service number.

SYNOPSIS
       UDP::remote_port (clientside | serverside)?

DESCRIPTION
       Returns the remote UDP port/service number.

       Syntax

       UDP::remote_port

	    * Returns the remote UDP port/service number.

       UDP::remote_port clientside

	    * Returns the remote UDP port/service number of the clientside
	      connection.

       UDP::remote_port serverside

	    * Returns the remote UDP port/service number of the serverside
	      connection.

RETURN VALUE
       Returns the remote UDP port/service number

VALID DURING
       CLIENT_ACCEPTED, CLIENT_CLOSED, CLIENT_DATA, SERVER_CLOSED, SERVER_CONNECTED, SERVER_DATA, SIP_REQUEST,
       SIP_REQUEST_SEND, SIP_RESPONSE, STREAM_MATCHED

EXAMPLES
	when SIP_REQUEST {
	  SIP::header insert "Via" "[lindex [split [SIP::via 0] ";"] 0]received=[IP::client_addr]rport=[UDP::remote_port][lindex [split [SIP::via 0] ";"] 1]"
	  SIP::header remove "Via" 1
	}

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

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