All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] ipv6: Export nd_tbl to allow modules to support IPv6
@ 2012-09-05 11:14 Thomas Graf
  2012-09-05 17:06 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Graf @ 2012-09-05 11:14 UTC (permalink / raw)
  To: davem; +Cc: netdev

Several out of the tree modules use the exported symbol arp_tbl
to read the ARP table. These modules now seek to support IPv6
but can't because nd_tbl is not exported.

Having access to the protocol specific neigh_table structure is
required in order to use the functions neigh_lookup() or
neigh_create() which are already exported to modules.

It does not make sense to export these functions if we don't
export the table itself as well.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
---
 net/ipv6/ndisc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index ff36194..0a0eb3f 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -143,6 +143,8 @@ struct neigh_table nd_tbl = {
 	.gc_thresh3 =	1024,
 };
 
+EXPORT_SYMBOL(nd_tbl);
+
 static inline int ndisc_opt_addr_space(struct net_device *dev)
 {
 	return NDISC_OPT_SPACE(dev->addr_len + ndisc_addr_option_pad(dev->type));
-- 
1.7.11.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-06 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-05 11:14 [PATCH net-next] ipv6: Export nd_tbl to allow modules to support IPv6 Thomas Graf
2012-09-05 17:06 ` David Miller
2012-09-06  8:51   ` Thomas Graf
2012-09-06 17:47     ` David Miller
2012-09-06 21:06       ` Thomas Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.