iproute: fix parsing and matching of of "short" IP addrs like 10/8
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 23 Feb 2011 00:20:44 +0000 (01:20 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 23 Feb 2011 00:20:44 +0000 (01:20 +0100)
commit3bb235c3b50ca072e8bcfc20d5030f5460439c07
tree8704db0e2526381902606da0c5ba5f7a91fc8e1e
parentbac0a25f72cdf59f34638aa3fd95bb14b103c286
iproute: fix parsing and matching of of "short" IP addrs like 10/8

function                                             old     new   delta
print_route                                         1613    1813    +200
get_addr_1                                           209     258     +49
get_prefix                                           393     356     -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 249/-37)           Total: 212 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/iproute.c
networking/libiproute/libnetlink.c
networking/libiproute/utils.c
networking/libiproute/utils.h