From 0704ad418c95050a617938eee06d6fbd148936d0 Mon Sep 17 00:00:00 2001 From: Dominik Werder Date: Thu, 2 May 2024 14:14:54 +0200 Subject: [PATCH] Clarify flags --- netfetch/src/ca/proto.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netfetch/src/ca/proto.rs b/netfetch/src/ca/proto.rs index c6cb50f..0a08d6c 100644 --- a/netfetch/src/ca/proto.rs +++ b/netfetch/src/ca/proto.rs @@ -599,8 +599,9 @@ impl CaMsgTy { CreateChanFail(_) => {} AccessRightsRes(_) => {} EventAdd(_) => { - // TODO allow to customize the mask. Test if it works. - buf.copy_from_slice(&[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0e, 0, 0]); + // Using flags DBE_ARCHIVE, DBE_ALARM, DBE_PROPERTY. + let flags = 0b1110; + buf.copy_from_slice(&[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, flags, 0, 0]); } EventAddRes(_) => {} EventAddResEmpty(_) => {}