Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ipv4: export fib_lookup and fib_table_lookup

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>

authored by

Florian Westphal and committed by
Pablo Neira Ayuso
6fc01438 761965ea

+2
+1
net/ipv4/fib_rules.c
··· 67 67 68 68 return err; 69 69 } 70 + EXPORT_SYMBOL_GPL(fib_lookup); 70 71 71 72 static int fib4_rule_action(struct fib_rule *rule, struct flowi *flp, 72 73 int flags, struct fib_lookup_arg *arg)
+1
net/ipv4/fib_trie.c
··· 1607 1607 rcu_read_unlock(); 1608 1608 return ret; 1609 1609 } 1610 + EXPORT_SYMBOL_GPL(fib_table_lookup); 1610 1611 1611 1612 /* 1612 1613 * Remove the leaf and return parent.