57 remove_queued_packet(
void *item)
63 queuebuf_free(i->buf);
83 i->buf = queuebuf_new_from_packetbuf();
97 ctimer_set(&i->lifetimer, lifetime, remove_queued_packet, i);
120 queuebuf_free(i->buf);
void memb_init(struct memb *m)
Initialize a memory block that was declared with MEMB().
Header file for the packetqueue module
char memb_free(struct memb *m, void *ptr)
Deallocate a memory block from a memory block previously declared with MEMB().
void * memb_alloc(struct memb *m)
Allocate a memory block from a block of memory declared with MEMB().
struct packetqueue_item * packetqueue_first(struct packetqueue *q)
Access the first item on the packet buffer.
#define NULL
The null pointer.
void list_remove(list_t list, void *item)
Remove a specific element from a list.
void * packetqueue_ptr(struct packetqueue_item *i)
Access the user-defined pointer in a packet queue item.
int list_length(list_t list)
Get the length of a list.
Representation of an item in a packet queue.
void list_init(list_t list)
Initialize a list.
void ctimer_set(struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr)
Set a callback timer.
void * list_head(list_t list)
Get a pointer to the first element of a list.
int packetqueue_len(struct packetqueue *q)
Get the length of the packet queue.
void list_add(list_t list, void *item)
Add an item at the end of a list.
struct queuebuf * packetqueue_queuebuf(struct packetqueue_item *i)
Access the queuebuf in a packet queue item.
int packetqueue_enqueue_packetbuf(struct packetqueue *q, clock_time_t lifetime, void *ptr)
Enqueue a packetbuf on a packet queue.
Header file for the callback timer
void packetqueue_init(struct packetqueue *q)
Initialize a packet queue.
Representation of a packet queue.
void packetqueue_dequeue(struct packetqueue *q)
Remove the first item on the packet buffer.
void ctimer_stop(struct ctimer *c)
Stop a pending callback timer.