]> git.meshlink.io Git - meshlink/commit
Detect and prevent two nodes with the same Name being on the VPN simultaneously.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 4 Jun 2010 12:53:52 +0000 (14:53 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 4 Jun 2010 12:53:52 +0000 (14:53 +0200)
commit4a21aabada23d1d2c8a10f54dd7248171c4ec82f
tree0a9b11e90765bea3aec30ef225980c0ae50f8029
parentdbf3d168b720045328d476f3b9e5f5e45b4ab6de
Detect and prevent two nodes with the same Name being on the VPN simultaneously.

In this situation, the two nodes will start fighting over the edges they announced.
When we have to contradict both ADD_EDGE and DEL_EDGE messages, we log a warning,
and with 25% chance per PingTimeout we quit.
src/net.c
src/net.h
src/protocol_edge.c