Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8874ecae authored by Chris Packham's avatar Chris Packham Committed by David S. Miller
Browse files

tipc: initialise addr_trail_end when setting node addresses



We set the field 'addr_trial_end' to 'jiffies', instead of the current
value 0, at the moment the node address is initialized. This guarantees
we don't inadvertently enter an address trial period when the node
address is explicitly set by the user.

Signed-off-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58799865
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ void tipc_set_node_addr(struct net *net, u32 addr)
		tipc_set_node_id(net, node_id);
	}
	tn->trial_addr = addr;
	tn->addr_trial_end = jiffies;
	pr_info("32-bit node address hash set to %x\n", addr);
}