Microchip® Advanced Software Framework

uip-packetqueue.c File Reference
#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_packetuip_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

MEMB ( packets_memb  ,
struct uip_packetqueue_packet  ,
MAX_NUM_QUEUED_PACKETS   
)
static void packet_timedout ( void *  ptr)
static
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_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 
)