ContikiMAC: Added missing length function to contikimac-framer.c

This commit is contained in:
kkrentz 2014-10-09 23:33:08 -07:00
parent ce49276e80
commit 18ee5ce294

View File

@ -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