Thread (6 messages) 6 messages, 2 authors, 2016-03-31

Re: [PATCH iproute2 v1 1/1] lib/utils: fix get_addr() and get_prefix() error messages

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2016-03-27 18:01:59

On Tue, 22 Mar 2016 13:02:02 +0000
"Varlese, Marco" [off-list ref] wrote:
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 <redacted>
Signed-off-by: Marco Varlese <redacted>
Since this was so trivial, I did change manually since patch was corrupted.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help