From 6bc36e8cf87593200c121caab8eccdaf94e2f841 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 3 Apr 2025 16:28:50 +0200 Subject: [PATCH] broker/main: Adapt enum values to agree with comm.bif Logic to detect this error already existed, but due to enum identifiers not having a value set, it never triggered before. Should probably backport this one. --- scripts/base/frameworks/broker/main.zeek | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/scripts/base/frameworks/broker/main.zeek b/scripts/base/frameworks/broker/main.zeek index 805f1f1e6c..1213555dc5 100644 --- a/scripts/base/frameworks/broker/main.zeek +++ b/scripts/base/frameworks/broker/main.zeek @@ -207,24 +207,26 @@ export { PEER_INVALID = 3, ## Remote peer not listening. PEER_UNAVAILABLE = 4, + ## Remote peer disconnected during the handshake. + PEER_DISCONNECT_DURING_HANDSHAKE = 5, ## A peering request timed out. - PEER_TIMEOUT = 5, + PEER_TIMEOUT = 6, ## Master with given name already exists. - MASTER_EXISTS = 6, + MASTER_EXISTS = 7, ## Master with given name does not exist. - NO_SUCH_MASTER = 7, + NO_SUCH_MASTER = 8, ## The given data store key does not exist. - NO_SUCH_KEY = 8, + NO_SUCH_KEY = 9, ## The store operation timed out. - REQUEST_TIMEOUT = 9, + REQUEST_TIMEOUT = 10, ## The operation expected a different type than provided. - TYPE_CLASH = 10, + TYPE_CLASH = 11, ## The data value cannot be used to carry out the desired operation. - INVALID_DATA = 11, + INVALID_DATA = 12, ## The storage backend failed to execute the operation. - BACKEND_FAILURE = 12, + BACKEND_FAILURE = 13, ## The storage backend failed to execute the operation. - STALE_DATA = 13, + STALE_DATA = 14, ## Catch-all for a CAF-level problem. CAF_ERROR = 100 };