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;
|
||||
};
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user