diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-08 00:25:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-08 00:25:55 +0000 |
commit | 52a8d975da9c6b26fc7f6323a78556208cf0cd64 (patch) | |
tree | 7afa95c27f58ba436cff4276cdc88a7d52356a09 | |
parent | b597564e4c1fefd641a5f26a4e53d8b65d5fdcdf (diff) | |
download | busybox-w32-52a8d975da9c6b26fc7f6323a78556208cf0cd64.tar.gz busybox-w32-52a8d975da9c6b26fc7f6323a78556208cf0cd64.tar.bz2 busybox-w32-52a8d975da9c6b26fc7f6323a78556208cf0cd64.zip |
ip: make numeric table work: "ip route list table 255". closes bug 3664.
function old new delta
iproute_list_or_flush 1270 1300 +30
-rw-r--r-- | networking/libiproute/iproute.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 1f6479454..59cbf8073 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -576,8 +576,16 @@ static int iproute_list_or_flush(char **argv, int flush) | |||
576 | filter.tb = -1; | 576 | filter.tb = -1; |
577 | else if (parm == KW_all) | 577 | else if (parm == KW_all) |
578 | filter.tb = 0; | 578 | filter.tb = 0; |
579 | else if (parm != KW_main) | 579 | else if (parm != KW_main) { |
580 | #if ENABLE_FEATURE_IP_RULE | ||
581 | uint32_t tid; | ||
582 | if (rtnl_rttable_a2n(&tid, *argv)) | ||
583 | invarg(*argv, "table"); | ||
584 | filter.tb = tid; | ||
585 | #else | ||
580 | invarg(*argv, "table"); | 586 | invarg(*argv, "table"); |
587 | #endif | ||
588 | } | ||
581 | } else if (arg == KW_cache) { | 589 | } else if (arg == KW_cache) { |
582 | /* The command 'ip route flush cache' is used by OpenSWAN. | 590 | /* The command 'ip route flush cache' is used by OpenSWAN. |
583 | * Assuming it's a synonym for 'ip route flush table cache' */ | 591 | * Assuming it's a synonym for 'ip route flush table cache' */ |