We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc06bc6 + 3813558 commit 8aaebccCopy full SHA for 8aaebcc
libtock/net/ieee802154.c
@@ -436,7 +436,7 @@ int libtock_ieee802154_frame_get_length(const uint8_t* frame) {
436
437
int libtock_ieee802154_frame_get_payload_offset(const uint8_t* frame) {
438
if (!frame) return 0;
439
- return frame[0];
+ return frame[0] + libtock_ieee802154_FRAME_META_LEN;
440
}
441
442
int libtock_ieee802154_frame_get_payload_length(const uint8_t* frame) {
0 commit comments