[riot-notifications] [RIOT-OS/RIOT] Initial implementation of IEEE 802.15.4 security (#15150)

Martine Lenders notifications at github.com
Wed Nov 4 15:07:25 CET 2020


@miri64 commented on this pull request.



>      };
-
+#if IS_USED(MODULE_IEEE802154_SECURITY)
+    gnrc_pktbuf_merge(pkt->next);
+    iolist_payload.iol_next = (iolist_t *)pkt->next->next,
+    iolist_payload.iol_base = pkt->next->data,
+    iolist_payload.iol_len = pkt->next->size;
+    uint8_t hdr_len = res;
+    uint8_t mic_len;
+    uint8_t mic[IEEE802154_MAC_SIZE];

as `mic` in the end is added to an `iolist` element, you could just allocate it in the packet buffer. Packet snips are transparent to `iolist`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15150#discussion_r517367335
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201104/f00cf1e9/attachment-0001.htm>


More information about the notifications mailing list