Use datagram SPTPS for packet exchange between nodes.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 30 Jul 2012 16:36:59 +0000 (18:36 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 30 Jul 2012 16:36:59 +0000 (18:36 +0200)
When two nodes which support SPTPS want to send packets to each other, they now
always use SPTPS. The node initiating the SPTPS session send the first SPTPS
packet via an extended REQ_KEY messages. All other handshake messages are sent
using ANS_KEY messages. This ensures that intermediate nodes using an older
version of tinc can still help with NAT traversal. After the authentication
phase is over, SPTPS packets are sent via UDP, or are encapsulated in extended
REQ_KEY messages instead of PACKET messages.


No differences found