Added a function to clear only the header part of the packetbuf
This commit is contained in:
parent
e88d209214
commit
a68b4c40c4
2 changed files with 21 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: packetbuf.c,v 1.4 2009/10/20 08:06:43 adamdunkels Exp $
|
||||
* $Id: packetbuf.c,v 1.5 2010/02/06 07:48:52 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -120,6 +120,12 @@ packetbuf_clear(void)
|
|||
packetbuf_attr_clear();
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
packetbuf_clear_hdr(void)
|
||||
{
|
||||
hdrptr = PACKETBUF_HDR_SIZE;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
packetbuf_copyfrom(const void *from, uint16_t len)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue