From: Etienne Dechamps Date: Sun, 29 Jun 2014 08:57:11 +0000 (+0100) Subject: Implement sptps_verify_datagram(). X-Git-Tag: release-1.1pre11~88 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=b54fde67474e7201e94fa4be34dae65d295b2936;hp=b54fde67474e7201e94fa4be34dae65d295b2936;p=tinc Implement sptps_verify_datagram(). Implementation of sptps_verify_datagram() was left as a TODO. This causes problems when using SPTPS in tinc, because this function is used in try_mac(), which itself is used in try_harder() to locate nodes sending UDP packets from unexpected addresses. In the current state this function always returns true, resulting in UDP addresses of random nodes getting changed which makes UDP communication fragile and unreliable. In addition, this makes UDP communication impossible through port translation and local discovery. This commit adds the missing implementation, thus fixing the issue. ---