]> err.no Git - linux-2.6/blobdiff - include/net/fib_rules.h
[IPV6]: Move nfheader_len into rt6_info
[linux-2.6] / include / net / fib_rules.h
index 08bab8b6e57548a2bb305735280d24ba0d5b5938..41a301e386433006e659ae14409e1373f905d36b 100644 (file)
@@ -59,9 +59,13 @@ struct fib_rules_ops
        u32                     (*default_pref)(void);
        size_t                  (*nlmsg_payload)(struct fib_rule *);
 
+       /* Called after modifications to the rules set, must flush
+        * the route cache if one exists. */
+       void                    (*flush_cache)(void);
+
        int                     nlgroup;
-       struct nla_policy       *policy;
-       struct list_head        *rules_list;
+       const struct nla_policy *policy;
+       struct list_head        rules_list;
        struct module           *owner;
 };
 
@@ -103,4 +107,7 @@ extern int                  fib_rules_unregister(struct fib_rules_ops *);
 extern int                     fib_rules_lookup(struct fib_rules_ops *,
                                                 struct flowi *, int flags,
                                                 struct fib_lookup_arg *);
+extern int                     fib_default_rule_add(struct fib_rules_ops *,
+                                                    u32 pref, u32 table,
+                                                    u32 flags);
 #endif