This archive is retained to ensure existing URLs remain functional. It will not contain any emails sent to this mailing list after July 1, 2024. For all messages, including those sent before and after this date, please visit the new location of the archive at https://mailman.ripe.net/archives/list/ripe-atlas@ripe.net/
[atlas] IPv4 leading zeroes and weird interface behaviour
- Previous message (by thread): [atlas] IPv4 leading zeroes and weird interface behaviour
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Christian Teuschel
christian.teuschel at ripe.net
Mon Oct 30 12:01:09 CET 2017
Hi Max, On RIPEstat having leading zeros in the octets is a very uncommon query pattern but since this behaviour is an inconsistency in the parsing for prefixes and IP addresses, it has been changed so that leading zeros are ignored. This change affects IP addresses and IP ranges. Hth, Christian On 25/10/2017 22:45, Max Grobecker wrote: > Hello, > > is there - by standard - a definition on how to represent an IPv4 address? > > I have (for example) the IP address "73.0.255.229", which can IMHO also be written as "073.000.255.229" as the leading zeroes > are not giving any changes to the binary representation of this address. Am I right on this? > > But: When I lookup this IP address on https://stat.ripe.net/073.000.255.229 the first octet is internally getting swapped to "59". > This can be explained, if you take "073" as an octal value and convert it to a decimal value. > It is definitely a octal-to-decimal conversion thing, as for example also the value "010" is getting replaced by "8" and so on. > > Now I'm puzzled: Of course, writing IPv4 octets with leading zeroes is not very common. > But: Is it officially prohibited or discouraged? > > This weird conversion also happens inside the "geoiplookup" tool by MaxMind and I'm not sure if I'm going to be the moron in this story > or if I found the same bug inside multiple softwares at once ;-) > > > Thanks and greetings from Wuppertal > Max >
- Previous message (by thread): [atlas] IPv4 leading zeroes and weird interface behaviour
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]