You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Szymon Janc (JIRA)" <ji...@apache.org> on 2017/03/13 18:37:41 UTC

[jira] [Resolved] (MYNEWT-515) Use packed structures for PDUs in BT Security Manager

     [ https://issues.apache.org/jira/browse/MYNEWT-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Szymon Janc resolved MYNEWT-515.
--------------------------------
    Resolution: Fixed

> 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
>            Assignee: 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.15#6346)