]> git.proxmox.com Git - mirror_iproute2.git/commit
lib/utils: improve error messages of get_addr() and get_prefix()
authorPhil Sutter <phil@nwl.cc>
Thu, 29 Oct 2015 16:20:56 +0000 (17:20 +0100)
committerStephen Hemminger <shemming@brocade.com>
Wed, 4 Nov 2015 00:28:36 +0000 (16:28 -0800)
commitb5bb1820e8a7666a1cab56bf8370b338647fd7a2
tree0bacbca9663db71d38b179f2d75159395aac6ebe
parentbd5bbad45007937758ec1339f2612049ce7187d7
lib/utils: improve error messages of get_addr() and get_prefix()

Instead of statically complaining about illegal inet address, use
get_family() to get the address family right.

Based on a patch by Hangbin Liu to print "inet6" for AF_INET6 made more
generic by me.

Signed-off-by: Phil Sutter <phil@nwl.cc>
lib/utils.c