From 35444c9f06b3f37bc87a64106843aed32c0ee7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 27 Feb 2017 03:10:49 +0100 Subject: [PATCH] mgmt: adjust return message type definition If we allow interpretation of zero-terminated string, actually force it in the specification. --- services/mgmt1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/mgmt1.md b/services/mgmt1.md index d38b3cba..593afac8 100644 --- a/services/mgmt1.md +++ b/services/mgmt1.md @@ -72,9 +72,9 @@ to set the policy using current mechanism. ## Returned messages -First two bytes of a message is a message type. This is 16 bit little endian -integer. Values start at 0x30 (48, `'0'`, zero digit in ASCII) for readability -in hexdump. +First byte of a message is a message type. This is 8 bit non-zero integer. +Values start at 0x30 (48, `'0'`, zero digit in ASCII) for readability in hexdump. +Next byte must be 0x00 (a separator). This alternatively can be thought of as zero-terminated string containing single ASCII digit.