]> git.meshlink.io Git - meshlink/commit - src/meshlink.c
Only let mesh->self be reachable when the mesh is started.
authorGuus Sliepen <guus@meshlink.io>
Mon, 27 Jan 2020 14:07:35 +0000 (15:07 +0100)
committerGuus Sliepen <guus@meshlink.io>
Mon, 27 Jan 2020 14:07:35 +0000 (15:07 +0100)
commita97a07d79c847d0b30c61a2589e7bde62f25d603
tree0ac403fc57ea5286ca63ba384a7c79576b533d82
parentdf4ba45db481a9cda90e487dc154995f590d8b3e
Only let mesh->self be reachable when the mesh is started.

This ensures meshlink_node_get_reachability(mesh->self) returns true only
if the mesh has been started. It also handles reachability of self in
graph.c just like any other node. This means there will now also be a
node status callback generated when the mesh is started and stopped.
src/graph.c
src/meshlink.c
src/net_setup.c
test/basic.c