Handle UDP packets from different and ports than advertised.
authorGuus Sliepen <guus@sliepen.eu.org>
Thu, 2 Apr 2009 23:05:23 +0000 (01:05 +0200)
committerGuus Sliepen <guus@sliepen.eu.org>
Thu, 2 Apr 2009 23:05:23 +0000 (01:05 +0200)
Previously, tinc used a fixed address and port for each node for UDP packet
exchange.  The port was the one advertised by that node as its listening port.
However, due to NAT the port might be different.  Now, tinc sends a different
session key to each node. This way, the sending node can be determined from
incoming packets by checking the MAC against all session keys. If a match is
found, the address and port for that node are updated.


No differences found