]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/ip6_fib.h
ipv6: fib_rules: Check if rule is a default rule
[mirror_ubuntu-bionic-kernel.git] / include / net / ip6_fib.h
index 1a88008cc6f5e14a788491f62ae3c15e47b62c16..6000b0dc51eedb0ff6cc96ed9c1f4c6c16a1225e 100644 (file)
@@ -295,6 +295,7 @@ int ipv6_route_open(struct inode *inode, struct file *file);
 #ifdef CONFIG_IPV6_MULTIPLE_TABLES
 int fib6_rules_init(void);
 void fib6_rules_cleanup(void);
+bool fib6_rule_default(const struct fib_rule *rule);
 #else
 static inline int               fib6_rules_init(void)
 {
@@ -304,5 +305,9 @@ static inline void              fib6_rules_cleanup(void)
 {
        return ;
 }
+static inline bool fib6_rule_default(const struct fib_rule *rule)
+{
+       return true;
+}
 #endif
 #endif