]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/fib_rules.h
net: fib_rules: mark arguments to fib_rules_register const and __net_initdata
[net-next-2.6.git] / include / net / fib_rules.h
index c49086d2bc7da380c9ef18873e88bc6a709ce9e6..e8923bc20f9ff8f28b586af3b795bcf6230df92f 100644 (file)
@@ -104,7 +104,7 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
        return frh->table;
 }
 
-extern struct fib_rules_ops *fib_rules_register(struct fib_rules_ops *, struct net *);
+extern struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *, struct net *);
 extern void fib_rules_unregister(struct fib_rules_ops *);
 extern void                     fib_rules_cleanup_ops(struct fib_rules_ops *);
 
@@ -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