ip: Fix command line option parsing of "ip route get ..."
authorChristian Hornung <chhornung@googlemail.com>
Wed, 3 Nov 2010 13:08:00 +0000 (14:08 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 4 Nov 2010 07:59:42 +0000 (08:59 +0100)
commit3bbfb58bec18990a2ee93f31ea1ee2fd19c4d9b2
tree0ca93d8114af5743e41147dacb3448a487116cdf
parent6052c2b0be796bc92c870b8261f49bc1584877b9
ip: Fix command line option parsing of "ip route get ..."

I found and fixed a bug in the command line options parsing of "ip route get":
It was impossible to get any option other than the IP address
recognized correctly, and e.g. the command "ip route get connected"
just hung up infinitely in the options parsing loop instead of
printing an error message.

Signed-off-by: Christian Hornung <chhornung@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/iproute.c