diff mbox

[net] ipv6:export nd_tbl

Message ID a46bd31bb9a4876e97f96e82d399a26506646d04.1323154266.git.panweiping3@gmail.com
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Peter Pan(潘卫平) Dec. 6, 2011, 6:52 a.m. UTC
A customer wants to use nd_tbl in his kernel module,
the easiest way is to export nd_tbl, just as arp_tbl.

There were some requests to export nd_tbl, like:
http://marc.info/?l=netfilter-devel&m=111416950824614&w=2
http://marc.info/?l=linux-netdev&m=110715893206991&w=2

But they were all rejected.
I want to know the reason why can't nd_tbl be exported just as arp_tbl,
and how can we look up nd_tbl without exporting it.

thanks
Weiping Pan

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
---
 net/ipv6/ndisc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

David Miller Dec. 6, 2011, 5:57 p.m. UTC | #1
From: Weiping Pan <panweiping3@gmail.com>
Date: Tue,  6 Dec 2011 14:52:41 +0800

> A customer wants to use nd_tbl in his kernel module,
> the easiest way is to export nd_tbl, just as arp_tbl.
> 
> There were some requests to export nd_tbl, like:
> http://marc.info/?l=netfilter-devel&m=111416950824614&w=2
> http://marc.info/?l=linux-netdev&m=110715893206991&w=2
> 
> But they were all rejected.
> I want to know the reason why can't nd_tbl be exported just as arp_tbl,
> and how can we look up nd_tbl without exporting it.
> 
> Signed-off-by: Weiping Pan <panweiping3@gmail.com>

We do not accomodate out-of-tree code, arp_tbl is exported because
modules (such as ATM clip) in the upstream tree use that symbol.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 0cb78d7..1ab98b5 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -153,6 +153,7 @@  struct neigh_table nd_tbl = {
 	.gc_thresh2 =	 512,
 	.gc_thresh3 =	1024,
 };
+EXPORT_SYMBOL(nd_tbl);
 
 /* ND options */
 struct ndisc_options {