iproute2/lib
Marco Varlese 334af76143 fix get_addr() and get_prefix() error messages
An attempt to add invalid address to interface would print "???" string
instead of the address family name.

For example:
$ ip address add 256.10.166.1/24 dev ens8
Error: ??? prefix is expected rather than "256.10.166.1/24".

$ ip neighbor add proxy 2001:db8::g dev ens8
Error: ??? address is expected rather than "2001:db8::g".

With this patch the output will look like:
$ ip address add 256.10.166.1/24 dev ens8
Error: inet prefix is expected rather than "256.10.166.1/24".

$ ip neighbor add proxy 2001:db8::g dev ens8
Error: inet6 address is expected rather than "2001:db8::g".

Signed-off-by: Przemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>
Signed-off-by: Marco Varlese <marco.varlese@intel.com>
2016-03-27 10:47:02 -07:00
..
Makefile provide common json output formatter 2015-08-23 10:05:29 -07:00
color.c color: introduce color helpers and COLOR_CLEAR 2016-03-27 10:37:34 -07:00
coverity_model.c add coverity model file 2015-12-30 18:06:12 -08:00
dnet_ntop.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
dnet_pton.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
inet_proto.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
ipx_ntop.c include needed files 2012-12-23 11:49:06 -08:00
ipx_pton.c include needed files 2012-12-23 11:49:06 -08:00
json_writer.c provide common json output formatter 2015-08-23 10:05:29 -07:00
libgenl.c libnetlink: add size argument to rtnl_talk 2015-05-27 13:00:21 -07:00
libnetlink.c libnetlink: Double the dump buffer size 2016-03-06 12:51:18 -08:00
ll_addr.c lib/ll_addr: improve ll_addr_n2a() a bit 2016-03-27 10:37:35 -07:00
ll_map.c netns: allow to dump and monitor nsid 2015-04-20 10:02:38 -07:00
ll_proto.c ip: iplink_vlan: add 802.1ad support 2013-06-21 08:59:24 -07:00
ll_types.c ll_types: add netlink ARPHRD 2014-08-29 00:13:22 -07:00
mpls_ntop.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
mpls_pton.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
names.c tc class: Ignore if default class name file does not exist 2015-04-07 08:31:56 -07:00
namespace.c lib/namespace: fix fd leakage in non-error case 2015-08-19 16:32:56 -07:00
rt_names.c iproute2: fix building with musl 2016-02-02 15:58:33 +11:00
utils.c fix get_addr() and get_prefix() error messages 2016-03-27 10:47:02 -07:00