Forum Discussion
ichalis_37981
Mar 22, 2015Historic F5 Account
ASCII to decimal conversions
Hi,
I need to convert DNS ascii representations (in query) of an IP address to dotted quad decimal format.
For example, the number 10 is represented in the packet as Hex 3130. (31 ASCII = 1...
ichalis_37981
Mar 22, 2015Historic F5 Account
This works:
binary scan \x31\x30\x31\x30\x31\x30\x31\x30 a2a2a2a2 A B C D
set address "$A.$B.$C.$D"
log local0. "catch $address => [catch {IP::addr $address mask 255.255.255.255} ]"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects