]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Use inet_pton to read ipv4 addresses
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 22 May 2008 20:41:40 +0000 (13:41 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 22 May 2008 20:41:40 +0000 (13:41 -0700)
commit516ffb6b7724e97ca035293dcfd9f94cf6ce3a47
tree6e28a09dd5b05ad26d1b8f44696fd066e2a58e03
parent7dfb0366655a136f82c23fb3a6e6f30b482e3f86
Use inet_pton to read ipv4 addresses

Use the standard POSIX inet_pton to convert from string to IPV4
address. This avoids problems where ip parses "127.2" wrong.
lib/utils.c