net: fib_rules: consolidate IPv4 and DECnet ->default_pref() functions.
Both functions are equivalent, consolidate them since a following patch needs a third implementation for multicast routing. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5611551103
commit
d8a566beaa
4 changed files with 21 additions and 36 deletions
|
@ -114,4 +114,5 @@ extern int fib_rules_lookup(struct fib_rules_ops *,
|
|||
extern int fib_default_rule_add(struct fib_rules_ops *,
|
||||
u32 pref, u32 table,
|
||||
u32 flags);
|
||||
extern u32 fib_default_rule_pref(struct fib_rules_ops *ops);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue