#include "net/netstack.h"
Defines | |
#define | NETSTACK_BUFFERSIZE (576+ETH_HEADER_LEN) |
Functions | |
void | netstackInit (uint32_t ipaddress, uint32_t netmask, uint32_t gatewayip) |
u08 * | netstackGetBuffer (void) |
netstackGetBuffer returns a pointer to the common receive/process/transmit buffer. | |
int | netstackService (void) |
void | netstackIPProcess (unsigned int len, ip_hdr *packet) |
void | netstackUDPIPProcess (unsigned int len, udpip_hdr *packet) __attribute__((weak)) |
void | netstackTCPIPProcess (unsigned int len, tcpip_hdr *packet) __attribute__((weak)) |
|
NET_BUFFERSIZE is the common receive/process/transmit buffer.
Definition at line 53 of file netstack.h. |
|
netstackInit prepares the network interface for use and should be called once at the beginning of the user program.
Definition at line 22 of file netstack.c. |
|
netstackIPProcess handles distribution of IP received packets. Definition at line 91 of file netstack.c. |
|
netstackService should be called in the main loop of the user program. The function will process one received network packet per call. The return value is the length of the packet processed, or zero if no packet was processed. Definition at line 46 of file netstack.c. |
|
This weakly-defined function is the default handler for incoming TCP/IP packets. Users should define this same function in user code (same name and arguments) to override this default handler and get access to the received packets. Definition at line 138 of file netstack.c. |
|
This weakly-defined function is the default handler for incoming UDP/IP packets. Users should define this same function in user code (same name and arguments) to override this default handler and get access to the received packets. Definition at line 131 of file netstack.c. |