Ntohl(int)
When receiving long integers in HTTP response from the network, this command converts a 32 bit long integer from network byte order to host byte order.
Syntax
ntohl(int);
Arguments
| Name | Description |
|---|---|
|
int |
An integer which will be calculated. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
str="0x12345678"
test=ntohl(str)
debug("return : %x \n", test)
log("record a log: %x \n", test)
}
Result:
return: 78563412
Supported Version
FortiADC version 4.8.x and later.