Microchip® Advanced Software Framework

uip_buf_t Union Reference

The uIP packet buffer.

The uip_buf array is used to hold incoming and outgoing packets. The device driver should place incoming data into this buffer. When sending data, the device driver should read the link level headers and the TCP/IP headers from this buffer. The size of the link level headers is configured by the UIP_LLH_LEN define.

Note
The application data need not be placed in this buffer, so the device driver must read it from the place pointed to by the uip_appdata pointer as illustrated by the following example:
void
devicedriver_send(void)
{
hwsend(&uip_buf[0], UIP_LLH_LEN);
hwsend(&uip_buf[UIP_LLH_LEN], uip_len - UIP_LLH_LEN);
} else {
}
}

#include <uip.h>

Data Fields

uint32_t u32 [(UIP_BUFSIZE+3)/4]
 
uint8_t u8 [UIP_BUFSIZE]
 

uint32_t uip_buf_t::u32[(UIP_BUFSIZE+3)/4]
uint8_t uip_buf_t::u8[UIP_BUFSIZE]

Referenced by input().