iproute: support for filtering by and printing of scope
authorAndré Draszik <git@andred.net>
Tue, 13 Jun 2017 17:59:59 +0000 (19:59 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 13 Jun 2017 17:59:59 +0000 (19:59 +0200)
commit2f24d30d0133f81cf3e0639746039a8ed58426e9
tree1bea338ed67e719c45eb0d0178f557176b74f65b
parent978307f8a19084ffb6e977ee28c731445e37dbbd
iproute: support for filtering by and printing of scope

This patch adds filtering by and printing of 'scope' to the
ip route command, taken from the upstream ip command.

x86_64:
function                                             old     new   delta
iproute_list_or_flush                               1548    1674    +126
print_route                                         2394    2469     +75
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 201/0)             Total: 201 bytes

mipsel:
iproute_list_or_flush                               1952    2096    +144
print_route                                         2580    2696    +116
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 2/0 up/down: 260/0)             Total: 260 bytes

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/iproute.c