]> git.meshlink.io Git - meshlink/commit
Make code to detect two nodes with the same Name less triggerhappy.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 16 Jul 2011 08:47:35 +0000 (10:47 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 16 Jul 2011 08:47:35 +0000 (10:47 +0200)
commitbe2fc8b0458b1e2ced3b5de410356d8d8639acff
treedf682e91b8ab60ead1fcb349812046ad97933e2f
parent05260f941c2a24eb3f09070a2550cf15e431266a
Make code to detect two nodes with the same Name less triggerhappy.

First of all, if there really are two nodes with the same name, much
more than 10 contradicting ADD_EDGE and DEL_EDGE messages will be sent.
Also, we forgot to reset the counters when nothing happened.

In case there is a ADD_EDGE/DEL_EDGE storm, we do not shut down, but
sleep an increasing amount of time, allowing tinc to recover gracefully
from temporary failures.
src/net.c