Windows TCP/IP userland used to be a port of the BSD networking tools (I think via Lachman Associates) so that's not surprising. Allegedly they reimplemented it at some point.
On Thu, May 23, 2019 at 3:57 PM Keith Medcalf <kmedc...@dessus.com> wrote: > On Thursday, 23 May, 2019 08:35, Dominique Devienne <ddevie...@gmail.com> > wrote: > > >On Thu, May 23, 2019 at 3:50 PM Jose Isaias Cabrera > ><jic...@outlook.com> wrote: > > > >> I have been working network for a long time, and I have never seen > >> any application that takes "zeroed left-filled" IP addresses. Just > >> sharing... > >> Thanks. > > > Works for me with a .001 at least, as shown below. But that wasn't > > really the point I was making, FWIW. --DD > > Well, actually, that depends on how the code in the network stack converts > from presentation format to network format. Windows 10 1903 (at least) > treats each component as an input number which means that a number that > starts with a 0 is an octal number ... (ie, the BSD way) > > >ping 172.217.14.227 > > Pinging 172.217.14.227 with 32 bytes of data: > Reply from 172.217.14.227: bytes=32 time=26ms TTL=56 > Reply from 172.217.14.227: bytes=32 time=26ms TTL=56 > > >ping 172.217.014.227 > > Pinging 172.217.12.227 with 32 bytes of data: > Reply from 172.217.12.227: bytes=32 time=73ms TTL=45 > Reply from 172.217.12.227: bytes=32 time=72ms TTL=45 > > Other parsers may see the input as invalid: > > sqlite> select ipblobaddr(ipaddrblob('172.217.014.227')); > > sqlite> select ipblobaddr(ipaddrblob('172.217.14.227')); > 172.217.14.227 > > So really, what you get depends on who wrote the code that is doing the > translation. Since the code that I used to implement ipblobaddr and > ipaddrblob is taken from the ISC DNS Bind code based on code written by > Paul Vixie in 1996, it is quite possible that many things will see leading > 0's as invalid input. Some things (for example Cisco IOS) may also choose > to just ignore the extra 0's. Other things may take it as an indicator > that the value is base-8 rather than base-10. > > See > https://tools.ietf.org/html/draft-main-ipaddr-text-rep-00 > https://en.wikipedia.org/wiki/Dot-decimal_notation > > --- > The fact that there's a Highway to Hell but only a Stairway to Heaven says > a lot about anticipated traffic volume. > > > > > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users