]> git.meshlink.io Git - meshlink/commit - src/net_packet.c
Allow nodes to learn their own reflexive UDP address.
authorGuus Sliepen <guus@meshlink.io>
Thu, 31 Oct 2019 21:26:25 +0000 (22:26 +0100)
committerGuus Sliepen <guus@meshlink.io>
Thu, 31 Oct 2019 21:26:25 +0000 (22:26 +0100)
commitffda069e617db34c12321b438964e4c369053466
treecfd455555f1cd2755218112ca36ff36a9b6060c4
parent9ece2f9ded8c65c7f20826f2ec9ae1f0527bdd7c
Allow nodes to learn their own reflexive UDP address.

When a node gets a succesful UDP probe reply, it informs the peer of the
UDP address and port that it has. The peer can then use this information to
inform other nodes it wants to communicate with.

Currently, this is only done to close the time window where two nodes have
established an SPTPS session via a third node, while the third node hasn't
learned of the two nodes' UDP addresses, in which case it was too late for
the third node to assist with hole punching.
src/net_packet.c
src/protocol_key.c