Drop packet if there are not enough free buffers to perform fragmentation
This commit is contained in:
parent
8b72ab49c0
commit
68b9412776
5 changed files with 34 additions and 1 deletions
|
@ -307,6 +307,16 @@ queuebuf_init(void)
|
|||
#endif /* QUEUEBUF_STATS */
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
queuebuf_numfree(void)
|
||||
{
|
||||
if(packetbuf_is_reference()) {
|
||||
return memb_numfree(&refbufmem);
|
||||
} else {
|
||||
return memb_numfree(&bufmem);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if QUEUEBUF_DEBUG
|
||||
struct queuebuf *
|
||||
queuebuf_new_from_packetbuf_debug(const char *file, int line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue