Skip to content

Commit

Permalink
docs(monitoring-data): clarify payload size field scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed Oct 13, 2024
1 parent 9737510 commit 4c85e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pia/protocols/monitoring-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Monitoring was added to Pia in version 3.4.
## Monitoring Data Header
As described above, the message payload starts with a monitoring data header. Each monitoring data structure starts with a monitoring data header as well. The flags field is always 0xFC in the first monitoring data header, and 0xFF in all other monitoring data headers.

In the first monitoring data header, the payload size indicates the size of the compressed payload. In all other monitoring data headers, the payload size indicates the size of the structure, including the monitoring data header itself.
In the first monitoring data header, the payload size indicates the size of the compressed payload *after* the payload has been decrypted. In all other monitoring data headers, the payload size indicates the size of the structure, including the monitoring data header itself.

| Offset | Size | Description |
| ------ | ---- | --------------------------------- |
Expand Down

0 comments on commit 4c85e05

Please sign in to comment.