ip: make numeric table work: "ip route list table 255". closes bug 3664.
function old new delta iproute_list_or_flush 1270 1300 +30
This commit is contained in:
parent
b597564e4c
commit
52a8d975da
@ -576,8 +576,16 @@ static int iproute_list_or_flush(char **argv, int flush)
|
|||||||
filter.tb = -1;
|
filter.tb = -1;
|
||||||
else if (parm == KW_all)
|
else if (parm == KW_all)
|
||||||
filter.tb = 0;
|
filter.tb = 0;
|
||||||
else if (parm != KW_main)
|
else if (parm != KW_main) {
|
||||||
|
#if ENABLE_FEATURE_IP_RULE
|
||||||
|
uint32_t tid;
|
||||||
|
if (rtnl_rttable_a2n(&tid, *argv))
|
||||||
|
invarg(*argv, "table");
|
||||||
|
filter.tb = tid;
|
||||||
|
#else
|
||||||
invarg(*argv, "table");
|
invarg(*argv, "table");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
} else if (arg == KW_cache) {
|
} else if (arg == KW_cache) {
|
||||||
/* The command 'ip route flush cache' is used by OpenSWAN.
|
/* The command 'ip route flush cache' is used by OpenSWAN.
|
||||||
* Assuming it's a synonym for 'ip route flush table cache' */
|
* Assuming it's a synonym for 'ip route flush table cache' */
|
||||||
|
Loading…
Reference in New Issue
Block a user