Prevent tincd from sending packets to unexpecting nodes
authorthorkill <thkr@hannover.ccc.de>
Thu, 19 May 2016 13:48:15 +0000 (15:48 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 19 May 2016 13:58:29 +0000 (15:58 +0200)
Make tincd recognize when it was asleep and close connections to it's
peers. This happens when e.g. RoadWarrior has been suspended for
"longer" time period. After resume, it will start to communicate
with it's peers using the contextes it had before suspend.

On the other side, the nodes closed the connections since PingTimeout
and/or TCP connection went down.

Sending data to such unaware (sptps mostly) nodes will cause
havoc in the logs. Misleading the developers to wrong assumptions
that something is wrong with sptps.

# Conflicts:
# src/net.c


No differences found