svn commit: trunk/busybox/networking/libiproute
vda at busybox.net
vda at busybox.net
Sat Jun 7 17:25:55 PDT 2008
Author: vda
Date: 2008-06-07 17:25:55 -0700 (Sat, 07 Jun 2008)
New Revision: 22268
Log:
ip: make numeric table work: "ip route list table 255". closes bug 3664.
function old new delta
iproute_list_or_flush 1270 1300 +30
Modified:
trunk/busybox/networking/libiproute/iproute.c
Changeset:
Modified: trunk/busybox/networking/libiproute/iproute.c
===================================================================
--- trunk/busybox/networking/libiproute/iproute.c 2008-06-08 00:24:43 UTC (rev 22267)
+++ trunk/busybox/networking/libiproute/iproute.c 2008-06-08 00:25:55 UTC (rev 22268)
@@ -576,8 +576,16 @@
filter.tb = -1;
else if (parm == KW_all)
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");
+#endif
+ }
} else if (arg == KW_cache) {
/* The command 'ip route flush cache' is used by OpenSWAN.
* Assuming it's a synonym for 'ip route flush table cache' */
More information about the busybox-cvs
mailing list