Contiki 2.6

uip-fw.h File Reference

uIP packet forwarding header file. More...

#include "net/uip.h"

Go to the source code of this file.

Data Structures

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

Defines

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

Functions

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

Detailed Description

uIP packet forwarding header file.

Author:
Adam Dunkels <adam@sics.se>

Definition in file uip-fw.h.