ContikiMAC: Added missing length function to contikimac-framer.c
This commit is contained in:
parent
ce49276e80
commit
18ee5ce294
@ -78,6 +78,12 @@ struct hdr {
|
|||||||
uint8_t len;
|
uint8_t len;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*/
|
||||||
|
static int
|
||||||
|
hdr_length(void)
|
||||||
|
{
|
||||||
|
return DECORATED_FRAMER.length() + sizeof(struct hdr);
|
||||||
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
create(void)
|
create(void)
|
||||||
@ -172,6 +178,7 @@ parse(void)
|
|||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
const struct framer contikimac_framer = {
|
const struct framer contikimac_framer = {
|
||||||
|
hdr_length,
|
||||||
create,
|
create,
|
||||||
create_and_secure,
|
create_and_secure,
|
||||||
parse
|
parse
|
||||||
|
Loading…
Reference in New Issue
Block a user