浏览代码

netns: export netns list

Conntrack code will use it for
a) removing expectations and helpers when corresponding module is removed, and
b) removing conntracks when L3 protocol conntrack module is removed.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Alexey Dobriyan 16 年之前
父节点
当前提交
b76a461f11
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/core/net_namespace.c

+ 1 - 0
net/core/net_namespace.c

@@ -18,6 +18,7 @@ static struct list_head *first_device = &pernet_list;
 static DEFINE_MUTEX(net_mutex);
 static DEFINE_MUTEX(net_mutex);
 
 
 LIST_HEAD(net_namespace_list);
 LIST_HEAD(net_namespace_list);
+EXPORT_SYMBOL_GPL(net_namespace_list);
 
 
 struct net init_net;
 struct net init_net;
 EXPORT_SYMBOL(init_net);
 EXPORT_SYMBOL(init_net);