From 08153cede0fa2f1faf9e0eeb8b677c6a6617be7c Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 26 Nov 2018 14:09:35 +0100 Subject: [PATCH] add: [format] brainstorm discussion --- format/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 format/README.md diff --git a/format/README.md b/format/README.md new file mode 100644 index 0000000..34d57d1 --- /dev/null +++ b/format/README.md @@ -0,0 +1,20 @@ +# D4 encapsulation protocol (DRAFT) + +## Headers + +| Name | bit size | Description | +|---------------|-----------|:----------------------------------------------------------------------:| +| type | uint 8 | Data encapsulated type | +| uuid | uint 128 | Sensor uuid | +| timestamp | uint 64 | Encapsulation time | +| hmac | uint 256 | Header authenticated header (HMAC-SHA-256-128) | +| size | uint 32 | Payload size | + +## Type + +|Type| Description | +|----|:------------| +| 0 | Reserved | +| 1 | pcap | +| 2 | meta header (JSON)| +