Allow payload len to be larger than 256 bytes
This commit is contained in:
parent
7b59e1dbe7
commit
bec721d313
@ -345,7 +345,7 @@ frame802154_parse(uint8_t *data, int len, frame802154_t *pf)
|
||||
/* header length */
|
||||
c = p - data;
|
||||
/* payload length */
|
||||
pf->payload_len = (uint8_t)(0xff & (len - c));
|
||||
pf->payload_len = (len - c);
|
||||
/* payload */
|
||||
pf->payload = p;
|
||||
|
||||
|
@ -155,7 +155,7 @@ typedef struct {
|
||||
uint8_t src_addr[8]; /**< Source address */
|
||||
frame802154_aux_hdr_t aux_hdr; /**< Aux security header */
|
||||
uint8_t *payload; /**< Pointer to 802.15.4 frame payload */
|
||||
uint8_t payload_len; /**< Length of payload field */
|
||||
int payload_len; /**< Length of payload field */
|
||||
} frame802154_t;
|
||||
|
||||
/* Prototypes */
|
||||
|
Loading…
Reference in New Issue
Block a user