* [PATCH net] ipv6:export nd_tbl
@ 2011-12-06 6:52 Weiping Pan
2011-12-06 17:57 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Weiping Pan @ 2011-12-06 6:52 UTC (permalink / raw)
Cc: Weiping Pan, David S. Miller, Alexey Kuznetsov, James Morris,
Hideaki YOSHIFUJI, Patrick McHardy,
open list:NETWORKING [IPv4/..., open list
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(-)
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 {
--
1.7.4.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] ipv6:export nd_tbl
2011-12-06 6:52 [PATCH net] ipv6:export nd_tbl Weiping Pan
@ 2011-12-06 17:57 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-12-06 17:57 UTC (permalink / raw)
To: panweiping3; +Cc: kuznet, jmorris, yoshfuji, kaber, netdev, linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-06 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 6:52 [PATCH net] ipv6:export nd_tbl Weiping Pan
2011-12-06 17:57 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).