]> err.no Git - linux-2.6/blobdiff - include/net/fib_rules.h
zd1211rw: port to mac80211
[linux-2.6] / include / net / fib_rules.h
index 2364db1a47e62e7c21f2b973db0999c9e6c7b852..4f472507129e6b69b5a2beb7b95ebca6f6d494a8 100644 (file)
@@ -56,7 +56,7 @@ struct fib_rules_ops
        int                     (*fill)(struct fib_rule *, struct sk_buff *,
                                        struct nlmsghdr *,
                                        struct fib_rule_hdr *);
-       u32                     (*default_pref)(void);
+       u32                     (*default_pref)(struct fib_rules_ops *ops);
        size_t                  (*nlmsg_payload)(struct fib_rule *);
 
        /* Called after modifications to the rules set, must flush
@@ -101,8 +101,8 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
        return frh->table;
 }
 
-extern int                     fib_rules_register(struct fib_rules_ops *);
-extern int                     fib_rules_unregister(struct fib_rules_ops *);
+extern int fib_rules_register(struct net *, struct fib_rules_ops *);
+extern void fib_rules_unregister(struct net *, struct fib_rules_ops *);
 extern void                     fib_rules_cleanup_ops(struct fib_rules_ops *);
 
 extern int                     fib_rules_lookup(struct fib_rules_ops *,