aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-02-19 12:58:07 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-02-19 14:54:24 +0100
commit55d3369d9e7f68bb0c836c8143778b2918f01ba5 (patch)
tree06b1c6b9563423af40b3710e71970138e68f147d /etc
parentffb3d8f11b232e811bebfe0c9b450a8a95a7b12b (diff)
downloadntw-55d3369d9e7f68bb0c836c8143778b2918f01ba5.tar.gz
ntw-55d3369d9e7f68bb0c836c8143778b2918f01ba5.tar.bz2
Use ssmarshal to generate the response data
Previously, we manually constructed the data to sent with a Get_Report response. This patch introduces the Response struct which can be serialized using ssmarshal. As Serialize is only implemented for arrays with a length up to 32, we have to use the serde-big-array crate for the data field. As the command ID might not be recognized by us, we use a raw u8 value instead of the CommandId enum.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions