|
Contiki 3.x
|
Header file for the Rime buffer (packetbuf) managementMore...
#include "contiki-conf.h"#include "net/linkaddr.h"#include "net/llsec/llsec802154.h"#include "net/mac/tsch/tsch-conf.h"Go to the source code of this file.
Macros | |
| #define | PACKETBUF_SIZE 128 |
| The size of the packetbuf, in bytes. | |
Functions | |
| void | packetbuf_clear (void) |
| Clear and reset the packetbuf. More... | |
| void * | packetbuf_dataptr (void) |
| Get a pointer to the data in the packetbuf. More... | |
| void * | packetbuf_hdrptr (void) |
| Get a pointer to the header in the packetbuf, for outbound packets. More... | |
| uint8_t | packetbuf_hdrlen (void) |
| Get the length of the header in the packetbuf. More... | |
| uint16_t | packetbuf_datalen (void) |
| Get the length of the data in the packetbuf. More... | |
| uint16_t | packetbuf_totlen (void) |
| Get the total length of the header and data in the packetbuf. More... | |
| void | packetbuf_set_datalen (uint16_t len) |
| Set the length of the data in the packetbuf. More... | |
| void | packetbuf_compact (void) |
| Compact the packetbuf. More... | |
| int | packetbuf_copyfrom (const void *from, uint16_t len) |
| Copy from external data into the packetbuf. More... | |
| int | packetbuf_copyto (void *to) |
| Copy the entire packetbuf to an external buffer. More... | |
| int | packetbuf_hdralloc (int size) |
| Extend the header of the packetbuf, for outbound packets. More... | |
| int | packetbuf_hdrreduce (int size) |
| Reduce the header in the packetbuf, for incoming packets. More... | |
| int | packetbuf_holds_broadcast (void) |
| Checks whether the current packet is a broadcast. More... | |
Header file for the Rime buffer (packetbuf) management
Definition in file packetbuf.h.
1.8.6