projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ee523
)
applying fix for:
author
Paul Fox
<pgf@brightstareng.com>
Wed, 20 Jul 2005 19:01:05 +0000
(19:01 -0000)
committer
Paul Fox
<pgf@brightstareng.com>
Wed, 20 Jul 2005 19:01:05 +0000
(19:01 -0000)
0000203
: 'ip route flush cache' not implemented
networking/libiproute/iproute.c
patch
|
blob
|
history
diff --git
a/networking/libiproute/iproute.c
b/networking/libiproute/iproute.c
index 9c57140a580364885ec66f8bfec662c33e71a8fa..fabab5b7a523407f26a97fb2a1a33ddfcb464286 100644
(file)
--- a/
networking/libiproute/iproute.c
+++ b/
networking/libiproute/iproute.c
@@
-537,6
+537,15
@@
static int iproute_list_or_flush(int argc, char **argv, int flush)
} 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();