Lines Matching refs:tn
83 struct tipc_net *tn = tipc_net(net); in tipc_disc_init_msg() local
88 tipc_msg_init(tn->trial_addr, hdr, LINK_CONFIG, mtyp, in tipc_disc_init_msg()
92 msg_set_node_sig(hdr, tn->random); in tipc_disc_init_msg()
95 msg_set_bc_netid(hdr, tn->net_id); in tipc_disc_init_msg()
97 msg_set_peer_net_hash(hdr, tipc_net_hash_mixes(net, tn->random)); in tipc_disc_init_msg()
149 struct tipc_net *tn = tipc_net(net); in tipc_disc_addr_trial_msg() local
151 bool trial = time_before(jiffies, tn->addr_trial_end) && !self; in tipc_disc_addr_trial_msg()
158 if (dst != tn->trial_addr) in tipc_disc_addr_trial_msg()
162 tn->trial_addr = sugg_addr; in tipc_disc_addr_trial_msg()
164 tn->addr_trial_end = jiffies + msecs_to_jiffies(1000); in tipc_disc_addr_trial_msg()
170 tipc_sched_net_finalize(net, tn->trial_addr); in tipc_disc_addr_trial_msg()
171 msg_set_prevnode(buf_msg(d->skb), tn->trial_addr); in tipc_disc_addr_trial_msg()
195 struct tipc_net *tn = tipc_net(net); in tipc_disc_rcv() local
199 bool legacy = tn->legacy_addr_format; in tipc_disc_rcv()
233 if (net_id != tn->net_id) in tipc_disc_rcv()
295 struct tipc_net *tn = tipc_net(d->net); in tipc_disc_timeout() local
310 if (!time_before(jiffies, tn->addr_trial_end) && !tipc_own_addr(net)) { in tipc_disc_timeout()
313 tipc_sched_net_finalize(net, tn->trial_addr); in tipc_disc_timeout()
318 if (time_before(jiffies, tn->addr_trial_end)) { in tipc_disc_timeout()
327 msg_set_prevnode(buf_msg(d->skb), tn->trial_addr); in tipc_disc_timeout()
352 struct tipc_net *tn = tipc_net(net); in tipc_disc_create() local
367 tn->addr_trial_end = jiffies + msecs_to_jiffies(1000); in tipc_disc_create()