Keep last known address and time since reachability changed.

This allows tincctl info to show since when a node is online or offline.
This commit is contained in:
Guus Sliepen 2012-09-26 22:20:43 +02:00
parent 1e5deec973
commit 9ade39b7d5
6 changed files with 26 additions and 16 deletions

View file

@ -709,6 +709,7 @@ static bool setup_myself(void) {
myself->nexthop = myself;
myself->via = myself;
myself->status.reachable = true;
myself->last_state_change = time(NULL);
myself->status.sptps = experimental;
node_add(myself);