From: Guus Sliepen Date: Thu, 2 Apr 2009 23:05:23 +0000 (+0200) Subject: Handle UDP packets from different and ports than advertised. X-Git-Tag: release-1.0.10~79 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=3308d13e7e3bf20cfeaf6f2ab17228a9820cea66;hp=3308d13e7e3bf20cfeaf6f2ab17228a9820cea66 Handle UDP packets from different and ports than advertised. 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. ---