#include <stdio.h>
#include "net/ip/uip.h"
#include "lib/memb.h"
#include "net/ip/uip-packetqueue.h"
Macros | |
#define | _DEBUG_ 0 |
#define | MAX_NUM_QUEUED_PACKETS 2 |
#define | PRINTF(...) |
Functions | |
MEMB (packets_memb, struct uip_packetqueue_packet, MAX_NUM_QUEUED_PACKETS) | |
static void | packet_timedout (void *ptr) |
struct uip_packetqueue_packet * | uip_packetqueue_alloc (struct uip_packetqueue_handle *handle, clock_time_t lifetime) |
uint8_t * | uip_packetqueue_buf (struct uip_packetqueue_handle *h) |
uint16_t | uip_packetqueue_buflen (struct uip_packetqueue_handle *h) |
void | uip_packetqueue_free (struct uip_packetqueue_handle *handle) |
void | uip_packetqueue_new (struct uip_packetqueue_handle *handle) |
void | uip_packetqueue_set_buflen (struct uip_packetqueue_handle *h, uint16_t len) |
#define _DEBUG_ 0 |
#define MAX_NUM_QUEUED_PACKETS 2 |
#define PRINTF | ( | ... | ) |
Referenced by packet_timedout(), uip_packetqueue_alloc(), uip_packetqueue_free(), and uip_packetqueue_new().
MEMB | ( | packets_memb | , |
struct uip_packetqueue_packet | , | ||
MAX_NUM_QUEUED_PACKETS | |||
) |
|
static |
References memb_free(), NULL, uip_packetqueue_handle::packet, PRINTF, and ptr.
Referenced by uip_packetqueue_alloc().
struct uip_packetqueue_packet* uip_packetqueue_alloc | ( | struct uip_packetqueue_handle * | handle, |
clock_time_t | lifetime | ||
) |
References ctimer_set(), uip_packetqueue_packet::lifetimer, memb_alloc(), NULL, uip_packetqueue_handle::packet, packet_timedout(), and PRINTF.
Referenced by tcpip_ipv6_output().
uint8_t* uip_packetqueue_buf | ( | struct uip_packetqueue_handle * | h | ) |
References NULL, uip_packetqueue_handle::packet, and uip_packetqueue_packet::queue_buf.
Referenced by na_input(), ra_input(), and tcpip_ipv6_output().
uint16_t uip_packetqueue_buflen | ( | struct uip_packetqueue_handle * | h | ) |
References NULL, uip_packetqueue_handle::packet, and uip_packetqueue_packet::queue_buf_len.
Referenced by na_input(), ra_input(), and tcpip_ipv6_output().
void uip_packetqueue_free | ( | struct uip_packetqueue_handle * | handle | ) |
References ctimer_stop(), uip_packetqueue_packet::lifetimer, memb_free(), NULL, uip_packetqueue_handle::packet, and PRINTF.
Referenced by na_input(), ra_input(), tcpip_ipv6_output(), and uip_ds6_nbr_rm().
void uip_packetqueue_new | ( | struct uip_packetqueue_handle * | handle | ) |
References NULL, uip_packetqueue_handle::packet, and PRINTF.
Referenced by uip_ds6_nbr_add().
void uip_packetqueue_set_buflen | ( | struct uip_packetqueue_handle * | h, |
uint16_t | len | ||
) |
References len, NULL, uip_packetqueue_handle::packet, and uip_packetqueue_packet::queue_buf_len.
Referenced by tcpip_ipv6_output().