ltm rule command ntohsΒΆ

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



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

SYNOPSIS
       ntohs NUMBER

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

       Syntax

       ntohs 

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

RETURN VALUE
VALID DURING
       ANY_EVENT, GLOBAL_GTM

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

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



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