Microchip® Advanced Software Framework

uip-fw.h File Reference

uIP packet forwarding header file.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "net/ip/uip.h"

Data Structures

struct  uip_fw_netif
 Representation of a uIP network interface. More...
 

Macros

#define UIP_FW_DROPPED
 An error message that indicates that a packet that should be forwarded or output was dropped. More...
 
#define UIP_FW_FORWARDED
 A non-error message that indicates that a packet was forwarded. More...
 
#define UIP_FW_LOCAL
 A non-error message that indicates that a packet should be processed locally. More...
 
#define UIP_FW_NETIF(ip1, ip2, ip3, ip4, nm1, nm2, nm3, nm4, outputfunc)
 Instantiating macro for a uIP network interface. More...
 
#define UIP_FW_NOROUTE
 An error message that indicates that no suitable interface could be found for an outbound packet. More...
 
#define UIP_FW_OK
 A non-error message that indicates that something went OK. More...
 
#define uip_fw_setipaddr(netif, addr)
 Set the IP address of a network interface. More...
 
#define uip_fw_setnetmask(netif, addr)
 Set the netmask of a network interface. More...
 
#define UIP_FW_TOOLARGE
 An error message that indicates that a packet that was too large for the outbound network interface was detected. More...
 
#define UIP_FW_ZEROLEN
 A non-error message that indicates that a zero-length packet transmission was attempted, and that no packet was sent. More...
 

Functions

void uip_fw_default (struct uip_fw_netif *netif)
 Register a default network interface. More...
 
uint8_t uip_fw_forward (void)
 Forward an IP packet in the uip_buf buffer. More...
 
void uip_fw_init (void)
 Initialize the uIP packet forwarding module. More...
 
uint8_t uip_fw_output (void)
 Output an IP packet on the correct network interface. More...
 
void uip_fw_periodic (void)
 Perform periodic processing. More...
 
void uip_fw_register (struct uip_fw_netif *netif)
 Register a network interface with the forwarding module. More...