mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
tipc: make tipc random value aware of net namespace
After namespace is supported, each namespace should own its private random value. So the global variable representing the random value must be moved to tipc_net structure. Signed-off-by: Ying Xue <ying.xue@windriver.com> Tested-by: Tero Aho <Tero.Aho@coriant.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a62fbccecd
commit
bafa29e341
4 changed files with 4 additions and 12 deletions
|
@ -289,7 +289,7 @@ struct tipc_link *tipc_link_create(struct tipc_node *n_ptr,
|
|||
tipc_msg_init(n_ptr->net, msg, LINK_PROTOCOL, RESET_MSG, INT_H_SIZE,
|
||||
l_ptr->addr);
|
||||
msg_set_size(msg, sizeof(l_ptr->proto_msg));
|
||||
msg_set_session(msg, (tipc_random & 0xffff));
|
||||
msg_set_session(msg, (tn->random & 0xffff));
|
||||
msg_set_bearer_id(msg, b_ptr->identity);
|
||||
strcpy((char *)msg_data(msg), if_name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue