ltm rule command UDP respondΒΆ

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



UDP::respond
       Sends data directly to a peer.

SYNOPSIS
       UDP::respond RESPONSE_STRING

DESCRIPTION
       Sends the specified data directly to the peer. This command can be used
       to complete a protocol handshake inside an iRule.

       Syntax

       UDP::respond 

	    * Sends the specified data directly to the peer.

RETURN VALUE
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 CLIENT_DATA {
	  set payload "Error: Client not allowed."
	  if { [IP::remote_addr] eq 10.10.10.1 } {
	    UDP::drop
	    UDP::respond $payload
	  }
	}


	when CLIENT_ACCEPTED {
	  set packet [binary format S {0x0000}]
	  UDP::respond $packet
	}

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



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