]> git.meshlink.io Git - meshlink/blobdiff - src/protocol.h
Handle connections from nodes using MeshLink-tiny.
[meshlink] / src / protocol.h
index fb1e10960cc25539971a4250f8c9f358a1e87556..05c2203bf70bc791bbb8657e3090191a8aa55e81 100644 (file)
@@ -62,6 +62,10 @@ typedef struct past_request_t {
        time_t firstseen;
 } past_request_t;
 
+/* Protocol support flags */
+
+static const uint32_t PROTOCOL_TINY = 1; // Peer is using meshlink-tiny
+
 /* Maximum size of strings in a request.
  * scanf terminates %2048s with a NUL character,
  * but the NUL character can be written after the 2048th non-NUL character.