2018-11-26 14:09:35 +01:00
|
|
|
# D4 encapsulation protocol (DRAFT)
|
|
|
|
|
|
|
|
## Headers
|
|
|
|
|
|
|
|
| Name | bit size | Description |
|
|
|
|
|---------------|-----------|:----------------------------------------------------------------------:|
|
2018-11-26 16:55:16 +01:00
|
|
|
| version | uint 8 | Version of the header |
|
2018-11-26 14:09:35 +01:00
|
|
|
| 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)|
|
|
|
|
|