ltm rule command htonsΒΆ

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



htons
       Converts the unsigned short integer from host byte order to network
       byte order.

SYNOPSIS
       htons NUMBER

DESCRIPTION
       Convert the unsigned short integer from host byte order to network byte
       order.

       Syntax

       htons 

	    * Convert the unsigned short integer from host byte order to network
	      byte order.

RETURN VALUE
VALID DURING
       GLOBAL_GTM

EXAMPLES
	when HTTP_REQUEST {
	  set hostshort 1234
	  set netshort [htons $hostshort]
	}

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



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