[BusyBox-cvs] svn commit: trunk/busybox/networking/libiproute

pgf at busybox.net pgf at busybox.net
Wed Jul 20 19:01:06 UTC 2005


Author: pgf
Date: 2005-07-20 13:01:05 -0600 (Wed, 20 Jul 2005)
New Revision: 10878

Log:
applying fix for:
    0000203: 'ip route flush cache' not implemented



Modified:
   trunk/busybox/networking/libiproute/iproute.c


Changeset:
Modified: trunk/busybox/networking/libiproute/iproute.c
===================================================================
--- trunk/busybox/networking/libiproute/iproute.c	2005-07-20 18:42:52 UTC (rev 10877)
+++ trunk/busybox/networking/libiproute/iproute.c	2005-07-20 19:01:05 UTC (rev 10878)
@@ -537,6 +537,15 @@
 			} else if (matches(*argv, "match") == 0) {
 				NEXT_ARG();
 				get_prefix(&filter.mdst, *argv, do_ipv6);
+			} else if (matches(*argv, "table") == 0) {
+				NEXT_ARG();
+				if (matches(*argv, "cache") == 0) {
+					filter.tb = -1;
+				} else if (matches(*argv, "main") != 0) {
+					invarg("invalid \"table\"", *argv);
+				}
+			} else if (matches(*argv, "cache") == 0) {
+				filter.tb = -1;
 			} else {
 				if (matches(*argv, "exact") == 0) {
 					NEXT_ARG();




More information about the busybox-cvs mailing list