Lines Matching refs:tn
84 struct tipc_net *tn = tipc_net(net); in tipc_disc_init_msg() local
89 tipc_msg_init(tn->trial_addr, hdr, LINK_CONFIG, mtyp, in tipc_disc_init_msg()
93 msg_set_node_sig(hdr, tn->random); in tipc_disc_init_msg()
96 msg_set_bc_netid(hdr, tn->net_id); in tipc_disc_init_msg()
98 msg_set_peer_net_hash(hdr, tipc_net_hash_mixes(net, tn->random)); in tipc_disc_init_msg()
150 struct tipc_net *tn = tipc_net(net); in tipc_disc_addr_trial_msg() local
152 bool trial = time_before(jiffies, tn->addr_trial_end) && !self; in tipc_disc_addr_trial_msg()
159 if (dst != tn->trial_addr) in tipc_disc_addr_trial_msg()
163 tn->trial_addr = sugg_addr; in tipc_disc_addr_trial_msg()
165 tn->addr_trial_end = jiffies + msecs_to_jiffies(1000); in tipc_disc_addr_trial_msg()
171 schedule_work(&tn->work); in tipc_disc_addr_trial_msg()
172 msg_set_prevnode(buf_msg(d->skb), tn->trial_addr); in tipc_disc_addr_trial_msg()
196 struct tipc_net *tn = tipc_net(net); in tipc_disc_rcv() local
200 bool legacy = tn->legacy_addr_format; in tipc_disc_rcv()
234 if (net_id != tn->net_id) in tipc_disc_rcv()
296 struct tipc_net *tn = tipc_net(d->net); in tipc_disc_timeout() local
311 if (!time_before(jiffies, tn->addr_trial_end) && !tipc_own_addr(net)) { in tipc_disc_timeout()
314 schedule_work(&tn->work); in tipc_disc_timeout()
319 if (time_before(jiffies, tn->addr_trial_end)) { in tipc_disc_timeout()
328 msg_set_prevnode(buf_msg(d->skb), tn->trial_addr); in tipc_disc_timeout()
353 struct tipc_net *tn = tipc_net(net); in tipc_disc_create() local
368 tn->addr_trial_end = jiffies + msecs_to_jiffies(1000); in tipc_disc_create()