Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

uip-fw.c File Reference


Detailed Description

uIP packet forwarding.

Author:
Adam Dunkels <adam@sics.se>
This file implements a number of simple functions which do packet forwarding over multiple network interfaces with uIP.

Definition in file uip-fw.c.

#include "net/uip.h"
#include "net/uip_arch.h"
#include "net/uip-fw.h"
#include "contiki-conf.h"
#include <string.h>

Go to the source code of this file.

Defines

#define ICMP_ECHO   8
#define ICMP_TE   11
#define BUF   ((struct tcpip_hdr *)&uip_buf[UIP_LLH_LEN])
#define ICMPBUF   ((struct icmpip_hdr *)&uip_buf[UIP_LLH_LEN])
#define FWCACHE_SIZE   2
#define FW_TIME   20

Functions

void uip_fw_init (void)
 Initialize the uIP packet forwarding module.
u8_t uip_fw_output (void)
 Output an IP packet on the correct network interface.
u8_t uip_fw_forward (void)
 Forward an IP packet in the uip_buf buffer.
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.


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4