tipc: reduce code dependency between binding table and node layer
[cascardo/linux.git] / net / tipc / name_table.c
index 0f47f08..91fce70 100644 (file)
@@ -42,6 +42,7 @@
 #include "subscr.h"
 #include "bcast.h"
 #include "addr.h"
+#include "node.h"
 #include <net/genetlink.h>
 
 #define TIPC_NAMETBL_SIZE 1024         /* must be a power of 2 */
@@ -677,7 +678,7 @@ struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower,
        spin_unlock_bh(&tn->nametbl_lock);
 
        if (buf)
-               named_cluster_distribute(net, buf);
+               tipc_node_broadcast(net, buf);
        return publ;
 }
 
@@ -709,7 +710,7 @@ int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower, u32 ref,
        spin_unlock_bh(&tn->nametbl_lock);
 
        if (skb) {
-               named_cluster_distribute(net, skb);
+               tipc_node_broadcast(net, skb);
                return 1;
        }
        return 0;