]> git.meshlink.io Git - meshlink/commit
Move the routing header out of the SPTPS payload. outer-routing
authorGuus Sliepen <guus@meshlink.io>
Thu, 8 Nov 2018 19:27:54 +0000 (20:27 +0100)
committerGuus Sliepen <guus@meshlink.io>
Sun, 18 Nov 2018 23:25:50 +0000 (00:25 +0100)
commitde1fbdf4403ea2a78f14925ffcc113198d87fc9d
tree032e3505f4f7aa492ff43691f98f3435fd8c8703
parentb8d9f9f97b63565bfe56c248428a49bc3f6a1e47
Move the routing header out of the SPTPS payload.

Give every node in the mesh a unique ID (based on a hash of its name), and
add the ID of the source and destination packet at the start of a UDP
packet, before the SPTPS payload. This allows fast forwarding of packets,
and avoids having to look up nodes based on UDP address/port.
21 files changed:
src/Makefile.am
src/conf.c
src/devtools.c
src/have.h
src/meshlink.c
src/meshlink_internal.h
src/net.c
src/net.h
src/net_packet.c
src/net_setup.c
src/node.c
src/node.h
src/protocol.c
src/protocol.h
src/protocol_auth.c
src/protocol_key.c
src/protocol_misc.c
src/route.c [deleted file]
src/route.h [deleted file]
src/sptps.c
src/sptps.h