Remove broadcast-based local discovery mechanism.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 29 Jun 2014 10:01:24 +0000 (11:01 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 29 Jun 2014 10:24:36 +0000 (11:24 +0100)
commit415910897122da0073a862784d148802ca390020
tree797283dd50baa5cb2efba015862d85302f7f4906
parente16ade874d08f82481dca7302b98305bcfbe27cf
Remove broadcast-based local discovery mechanism.

The new local address based local discovery mechanism is technically
superior to the old broadcast-based one. In fact, the old algorithm
can technically make things worse by e.g. sending broadcasts over the
VPN itself and then selecting the VPN address as the node's UDP
address. This cannot happen with the new mechanism.

Note that this means old nodes that don't send their local addresses in
ADD_EDGE messages can't be discovered, because there is no address to
send discovery packets to. Old nodes can still discover new nodes by
sending them broadcasts, though.
doc/tinc.conf.5.in
src/net.h
src/net_packet.c
src/net_setup.c