mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-03 22:06:22 +00:00
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 */
|
/* header length */
|
||||||
c = p - data;
|
c = p - data;
|
||||||
/* payload length */
|
/* payload length */
|
||||||
pf->payload_len = (uint8_t)(0xff & (len - c));
|
pf->payload_len = (len - c);
|
||||||
/* payload */
|
/* payload */
|
||||||
pf->payload = p;
|
pf->payload = p;
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ typedef struct {
|
|||||||
uint8_t src_addr[8]; /**< Source address */
|
uint8_t src_addr[8]; /**< Source address */
|
||||||
frame802154_aux_hdr_t aux_hdr; /**< Aux security header */
|
frame802154_aux_hdr_t aux_hdr; /**< Aux security header */
|
||||||
uint8_t *payload; /**< Pointer to 802.15.4 frame payload */
|
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;
|
} frame802154_t;
|
||||||
|
|
||||||
/* Prototypes */
|
/* Prototypes */
|
||||||
|
Loading…
Reference in New Issue
Block a user