uIP 1.0 based webserver for LPC1114 + ENC28J60

Dependencies:   mbed TMP102

Embed: (wiki syntax)

« Back to documentation index

uIP packet forwarding

uIP packet forwarding
[Uip]

Data Structures

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

Files

file  uip-fw.c
 

uIP packet forwarding.


file  uip-fw.h
 

uIP packet forwarding header file.


Functions

void uip_fw_init (void)
 Initialize the uIP packet forwarding module.
uint8_t uip_fw_output (void)
 Output an IP packet on the correct network interface.
uint8_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.

Function Documentation

void uip_fw_default ( struct uip_fw_netif netif )

Register a default network interface.

All packets that don't go out on any of the other interfaces will be routed to the default interface.

Parameters:
netifA pointer to the network interface that is to be registered.

Definition at line 515 of file uip-fw.c.

uint8_t uip_fw_forward ( void   )

Forward an IP packet in the uip_buf buffer.

Returns:
UIP_FW_FORWARDED if the packet was forwarded, UIP_FW_LOCAL if the packet should be processed locally.

Definition at line 403 of file uip-fw.c.

void uip_fw_init ( void   )

Initialize the uIP packet forwarding module.

Definition at line 185 of file uip-fw.c.

uint8_t uip_fw_output ( void   )

Output an IP packet on the correct network interface.

The IP packet should be present in the uip_buf buffer and its length in the global uip_len variable.

Return values:
UIP_FW_ZEROLENIndicates that a zero-length packet transmission was attempted and that no packet was sent.
UIP_FW_NOROUTENo suitable network interface could be found for the outbound packet, and the packet was not sent.
Returns:
The return value from the actual network interface output function is passed unmodified as a return value.

Definition at line 354 of file uip-fw.c.

void uip_fw_periodic ( void   )

Perform periodic processing.

Definition at line 525 of file uip-fw.c.

void uip_fw_register ( struct uip_fw_netif netif )

Register a network interface with the forwarding module.

Parameters:
netifA pointer to the network interface that is to be registered.

Definition at line 498 of file uip-fw.c.