Szymon Janc created MYNEWT-515:
----------------------------------
Summary: Use packed structures for PDUs in BT Security Manager
Key: MYNEWT-515
URL: https://issues.apache.org/jira/browse/MYNEWT-515
Project: Mynewt
Issue Type: Improvement
Components: ble
Reporter: Szymon Janc
Priority: Minor
For describing protocol SM PDUs we could use packed structs instead of
operating on raw bytes. This improved code readability but also allows for
simpler parsing where pointers can be casted to buffer with received data
instead of dedicated parsing functions. Packed structs can also be used in TX
path where constructing PDUs is done in similar manner instead of byte-by-byte
construction with helper function.
This could be done also for others protocols if this proposal is accepted.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)