aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/libiproute/iproute.c10
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' */