aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/addr.c')
-rw-r--r--net/tipc/addr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/addr.c b/net/tipc/addr.c
index 4841e98591d0..b88d48d00913 100644
--- a/net/tipc/addr.c
+++ b/net/tipc/addr.c
@@ -59,7 +59,7 @@ void tipc_set_node_id(struct net *net, u8 *id)
59 59
60 memcpy(tn->node_id, id, NODE_ID_LEN); 60 memcpy(tn->node_id, id, NODE_ID_LEN);
61 tipc_nodeid2string(tn->node_id_string, id); 61 tipc_nodeid2string(tn->node_id_string, id);
62 tn->node_addr = tmp[0] ^ tmp[1] ^ tmp[2] ^ tmp[3]; 62 tn->trial_addr = tmp[0] ^ tmp[1] ^ tmp[2] ^ tmp[3];
63 pr_info("Own node identity %s, cluster identity %u\n", 63 pr_info("Own node identity %s, cluster identity %u\n",
64 tipc_own_id_string(net), tn->net_id); 64 tipc_own_id_string(net), tn->net_id);
65} 65}
@@ -74,6 +74,7 @@ void tipc_set_node_addr(struct net *net, u32 addr)
74 sprintf(node_id, "%x", addr); 74 sprintf(node_id, "%x", addr);
75 tipc_set_node_id(net, node_id); 75 tipc_set_node_id(net, node_id);
76 } 76 }
77 tn->trial_addr = addr;
77 pr_info("32-bit node address hash set to %x\n", addr); 78 pr_info("32-bit node address hash set to %x\n", addr);
78} 79}
79 80