From 106f4bfdebe277ab0b86d2b8c950ab78a35b0654 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sun, 7 Feb 2021 10:05:41 +0800 Subject: [PATCH] add MAX_RETRANSMIT error code --- mesh.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mesh.proto b/mesh.proto index eead5ab..cc2a217 100644 --- a/mesh.proto +++ b/mesh.proto @@ -136,9 +136,13 @@ message RouteDiscovery { repeated int32 route = 2; } +/* + * A failure in delivering a message (usually used for routing control messages, but might be provided in addition to ack.fail_id to provide + * details on the type of failure). + */ enum ErrorReason { - /** This message is not a failure */ + /* This message is not a failure */ NONE = 0; /* @@ -155,6 +159,9 @@ enum ErrorReason { /* No suitable interface could be found for delivering this packet */ NO_INTERFACE = 4; + + /* We reached the max retransmission count (typically for naive flood routing) */ + MAX_RETRANSMIT = 5; } /*