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;
};
/*---------------------------------------------------------------------------*/
static int
hdr_length(void)
{
return DECORATED_FRAMER.length() + sizeof(struct hdr);
}
/*---------------------------------------------------------------------------*/
static int
create(void)
@ -172,6 +178,7 @@ parse(void)
}
/*---------------------------------------------------------------------------*/
const struct framer contikimac_framer = {
hdr_length,
create,
create_and_secure,
parse