]> git.ipfire.org Git - thirdparty/iproute2.git/commit
support batching of ip route get commands
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 16 Jul 2015 00:06:36 +0000 (17:06 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 20 Jul 2015 21:55:19 +0000 (14:55 -0700)
commit56d8ff0ac8dd14ca24a2467dcc9befd406e11c42
tree56b8504af3923cb8517382daf6c6651db9a83f82
parenta6ea668c91bd586ac54c7d56f83315ecd43f3c6a
support batching of ip route get commands

This patch replaces exits with returns in
ip route get command handling. This allows batching
of ip route get commands.

$cat route_get_batch.txt
route get 10.0.14.2
route get 12.0.14.2
route get 10.0.14.4

$ip -batch route_get_batch.txt
local 10.0.14.2 dev lo  src 10.0.14.2
    cache <local>
12.0.14.2 via 192.168.0.2 dev eth0  src 192.168.0.15
    cache
10.0.14.4 dev dummy0  src 10.0.14.2
    cache

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
ip/iproute.c