Merge pull request #631 from nfi/framer-len
Added function to framer that returns the estimated header length
This commit is contained in:
commit
eceaf0c59b
5 changed files with 42 additions and 15 deletions
|
@ -76,6 +76,13 @@ is_broadcast_addr(uint8_t mode, uint8_t *addr)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static int
|
||||
hdr_length(void)
|
||||
{
|
||||
/* never adds any header */
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static int
|
||||
create(void)
|
||||
{
|
||||
/* nothing extra... */
|
||||
|
@ -116,5 +123,5 @@ parse(void)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
const struct framer no_framer = {
|
||||
create, parse
|
||||
hdr_length, create, parse
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue