diff options
Diffstat (limited to 'net/decnet/dn_rules.c')
-rw-r--r-- | net/decnet/dn_rules.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index 5e86dd542302..17a1932216d6 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <net/dn_fib.h> | 31 | #include <net/dn_fib.h> |
32 | #include <net/dn_neigh.h> | 32 | #include <net/dn_neigh.h> |
33 | #include <net/dn_dev.h> | 33 | #include <net/dn_dev.h> |
34 | #include <net/dn_route.h> | ||
34 | 35 | ||
35 | static struct fib_rules_ops dn_fib_rules_ops; | 36 | static struct fib_rules_ops dn_fib_rules_ops; |
36 | 37 | ||
@@ -239,9 +240,9 @@ static u32 dn_fib_rule_default_pref(void) | |||
239 | return 0; | 240 | return 0; |
240 | } | 241 | } |
241 | 242 | ||
242 | int dn_fib_dump_rules(struct sk_buff *skb, struct netlink_callback *cb) | 243 | static void dn_fib_rule_flush_cache(void) |
243 | { | 244 | { |
244 | return fib_rules_dump(skb, cb, AF_DECnet); | 245 | dn_rt_cache_flush(-1); |
245 | } | 246 | } |
246 | 247 | ||
247 | static struct fib_rules_ops dn_fib_rules_ops = { | 248 | static struct fib_rules_ops dn_fib_rules_ops = { |
@@ -254,6 +255,7 @@ static struct fib_rules_ops dn_fib_rules_ops = { | |||
254 | .compare = dn_fib_rule_compare, | 255 | .compare = dn_fib_rule_compare, |
255 | .fill = dn_fib_rule_fill, | 256 | .fill = dn_fib_rule_fill, |
256 | .default_pref = dn_fib_rule_default_pref, | 257 | .default_pref = dn_fib_rule_default_pref, |
258 | .flush_cache = dn_fib_rule_flush_cache, | ||
257 | .nlgroup = RTNLGRP_DECnet_RULE, | 259 | .nlgroup = RTNLGRP_DECnet_RULE, |
258 | .policy = dn_fib_rule_policy, | 260 | .policy = dn_fib_rule_policy, |
259 | .rules_list = &dn_fib_rules, | 261 | .rules_list = &dn_fib_rules, |