Vince,
When translating dotted (decimal) IP addresses to hex, if one or more of the components has a leading zero specified, that number is translated as octal.
> ECHO %@IPTOHEX[10.11.12.13]
0A0B0C0D
> ECHO %@IPTOHEX[010.011.012.013]
08090A0B
What I am trying to do is canonicalize an IP address which may have leading zeroes with
%@HEXTOIP[%@IPTOHEX[%foo]]
When foo is 010.011.012.013, the result is 8.9.10.11 .
Any chance you can fix this?
When translating dotted (decimal) IP addresses to hex, if one or more of the components has a leading zero specified, that number is translated as octal.
> ECHO %@IPTOHEX[10.11.12.13]
0A0B0C0D
> ECHO %@IPTOHEX[010.011.012.013]
08090A0B
What I am trying to do is canonicalize an IP address which may have leading zeroes with
%@HEXTOIP[%@IPTOHEX[%foo]]
When foo is 010.011.012.013, the result is 8.9.10.11 .
Any chance you can fix this?