]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: abbreviation of network-prefix is no longer possible with ip route
authorAndreas Henriksson <andreas@fatal.se>
Fri, 29 Aug 2008 17:26:42 +0000 (19:26 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 15 Sep 2008 20:56:46 +0000 (13:56 -0700)
commit2ca4abdcb823e708b88156f947fa5b493055618a
treeb28fa7cfdeb2015d6870a4b4c3cd763c4f60b463
parent5a67f8f9d3a7f80a49554fb1ca4e68a1effd5399
ip: abbreviation of network-prefix is no longer possible with ip route

Commit 516ffb6b7724e97ca035293dcfd9f94cf6ce3a47 says:

Stephen Hemminger [Thu, 22 May 2008 20:41:40 +0000 (13:41 -0700)]
> Use the standard POSIX inet_pton to convert from string to IPV4
> address. This avoids problems where ip parses "127.2" wrong.

Apparently inet_pton doesn't support abbreviated/shortened/classful
ipv4 addresses at all, but inet_aton does.
Since the function only deals with AF_INET anyway maybe using
inet_aton "to increse backwards compatability" (please those
who still want to use the format) could be considered?
(This will still not restore the 10/8 format which apparently used
to work in iproute, so people would have to settle for 10.0/8)

(See http://bugs.debian.org/497011)
lib/utils.c