From 3964d5a4d211a059e8942664643815d615c44ba8 Mon Sep 17 00:00:00 2001
From: OlivierHecart <olivier@zettascale.tech>
Date: Fri, 27 Sep 2024 12:47:34 +0200
Subject: [PATCH] Send Declare and OAM messages with Control priority (#1476)

---
 commons/zenoh-protocol/src/network/mod.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons/zenoh-protocol/src/network/mod.rs b/commons/zenoh-protocol/src/network/mod.rs
index 336f952f3d..ed23b0337a 100644
--- a/commons/zenoh-protocol/src/network/mod.rs
+++ b/commons/zenoh-protocol/src/network/mod.rs
@@ -251,13 +251,13 @@ pub mod ext {
 
         pub const DEFAULT: Self = Self::new(Priority::DEFAULT, CongestionControl::DEFAULT, false);
 
-        pub const DECLARE: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false);
+        pub const DECLARE: Self = Self::new(Priority::Control, CongestionControl::Block, false);
         pub const PUSH: Self = Self::new(Priority::DEFAULT, CongestionControl::Drop, false);
         pub const REQUEST: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false);
         pub const RESPONSE: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false);
         pub const RESPONSE_FINAL: Self =
             Self::new(Priority::DEFAULT, CongestionControl::Block, false);
-        pub const OAM: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false);
+        pub const OAM: Self = Self::new(Priority::Control, CongestionControl::Block, false);
 
         pub const fn new(
             priority: Priority,