uIP 1.0 based webserver for LPC1114 + ENC28J60
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 ) |
uint8_t uip_fw_forward | ( | void | ) |
void uip_fw_init | ( | void | ) |
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_ZEROLEN Indicates that a zero-length packet transmission was attempted and that no packet was sent. UIP_FW_NOROUTE No 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.
void uip_fw_register | ( | struct uip_fw_netif * | netif ) |
Generated on Tue Jul 12 2022 12:52:12 by 1.7.2