net: ipv4: export fib_lookup and fib_table_lookup
authorFlorian Westphal <fw@strlen.de>
Thu, 25 Aug 2011 11:46:12 +0000 (13:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 4 Dec 2011 21:43:33 +0000 (22:43 +0100)
The reverse path filter module will use fib_lookup.

If CONFIG_IP_MULTIPLE_TABLES is not set, fib_lookup is
only a static inline helper that calls fib_table_lookup,
so export that too.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/fib_rules.c
net/ipv4/fib_trie.c

index 46339ba..799fc79 100644 (file)
@@ -67,6 +67,7 @@ int fib_lookup(struct net *net, struct flowi4 *flp, struct fib_result *res)
 
        return err;
 }
+EXPORT_SYMBOL_GPL(fib_lookup);
 
 static int fib4_rule_action(struct fib_rule *rule, struct flowi *flp,
                            int flags, struct fib_lookup_arg *arg)
index 37b6711..d04b13a 100644 (file)
@@ -1607,6 +1607,7 @@ found:
        rcu_read_unlock();
        return ret;
 }
+EXPORT_SYMBOL_GPL(fib_table_lookup);
 
 /*
  * Remove the leaf and return parent.