#include "uipopt.h"
#include "../proj/cli/debug.h"
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | uip_conn |
struct | uip_udp_conn |
struct | uip_stats |
struct | uip_tcpip_hdr |
struct | uip_icmpip_hdr |
struct | uip_udpip_hdr |
struct | uip_eth_addr |
Defines | |
#define | uip_sethostaddr(addr) |
#define | uip_gethostaddr(addr) |
#define | uip_setdraddr(addr) |
#define | uip_setnetmask(addr) |
#define | uip_getdraddr(addr) |
#define | uip_getnetmask(addr) |
#define | uip_input() |
#define | uip_periodic(conn) |
#define | uip_conn_active(conn) (uip_conns[conn].tcpstateflags != UIP_CLOSED) |
#define | uip_periodic_conn(conn) |
#define | uip_poll_conn(conn) |
#define | uip_udp_periodic(conn) |
#define | uip_udp_periodic_conn(conn) |
#define | uip_outstanding(conn) ((conn)->len) |
#define | uip_datalen() |
#define | uip_urgdatalen() |
#define | uip_close() |
#define | uip_abort() |
#define | uip_stop() |
#define | uip_stopped(conn) |
#define | uip_restart() |
#define | uip_udpconnection() |
#define | uip_newdata() |
#define | uip_acked() |
#define | uip_connected() |
#define | uip_closed() |
#define | uip_aborted() |
#define | uip_timedout() |
#define | uip_rexmit() |
#define | uip_poll() |
#define | uip_initialmss() |
#define | uip_mss() |
#define | uip_udp_remove(conn) |
#define | uip_udp_bind(conn, port) |
#define | uip_udp_send(len) |
#define | uip_ipaddr(addr, addr0, addr1, addr2, addr3) |
#define | uip_ip6addr(addr, addr0, addr1, addr2, addr3, addr4, addr5, addr6, addr7) |
#define | uip_ipaddr_copy(dest, src) |
#define | uip_ipaddr_cmp(addr1, addr2) |
#define | uip_ipaddr_maskcmp(addr1, addr2, mask) |
#define | uip_ipaddr_mask(dest, src, mask) |
#define | uip_ipaddr1(addr) |
#define | uip_ipaddr2(addr) |
#define | uip_ipaddr3(addr) |
#define | uip_ipaddr4(addr) |
#define | HTONS(n) |
#define | ntohs htons |
#define | UIP_ACKDATA 1 |
#define | UIP_NEWDATA 2 |
#define | UIP_REXMIT 4 |
#define | UIP_POLL 8 |
#define | UIP_CLOSE 16 |
#define | UIP_ABORT 32 |
#define | UIP_CONNECTED 64 |
#define | UIP_TIMEDOUT 128 |
#define | UIP_DATA 1 |
#define | UIP_TIMER 2 |
#define | UIP_POLL_REQUEST 3 |
#define | UIP_UDP_SEND_CONN 4 |
#define | UIP_UDP_TIMER 5 |
#define | UIP_CLOSED 0 |
#define | UIP_SYN_RCVD 1 |
#define | UIP_SYN_SENT 2 |
#define | UIP_ESTABLISHED 3 |
#define | UIP_FIN_WAIT_1 4 |
#define | UIP_FIN_WAIT_2 5 |
#define | UIP_CLOSING 6 |
#define | UIP_TIME_WAIT 7 |
#define | UIP_LAST_ACK 8 |
#define | UIP_TS_MASK 15 |
#define | UIP_STOPPED 16 |
#define | UIP_APPDATA_SIZE |
#define | UIP_PROTO_ICMP 1 |
#define | UIP_PROTO_TCP 6 |
#define | UIP_PROTO_UDP 17 |
#define | UIP_PROTO_ICMP6 58 |
#define | UIP_IPH_LEN 20 |
#define | UIP_UDPH_LEN 8 |
#define | UIP_TCPH_LEN 20 |
#define | UIP_IPUDPH_LEN (UIP_UDPH_LEN + UIP_IPH_LEN) |
#define | UIP_IPTCPH_LEN (UIP_TCPH_LEN + UIP_IPH_LEN) |
#define | UIP_TCPIP_HLEN UIP_IPTCPH_LEN |
Typedefs | |
typedef u16_t | uip_ip4addr_t [2] |
typedef u16_t | uip_ip6addr_t [8] |
typedef uip_ip4addr_t | uip_ipaddr_t |
Functions | |
void | uip_init (void) |
void | uip_setipid (u16_t id) |
void | uip_listen (u16_t port) |
void | uip_unlisten (u16_t port) |
struct uip_conn * | uip_connect (uip_ipaddr_t *ripaddr, u16_t port) |
void | uip_send (const void *data, int len) |
struct uip_udp_conn * | uip_udp_new (uip_ipaddr_t *ripaddr, u16_t rport) |
u16_t | htons (u16_t val) |
void | uip_process (u8_t flag) |
u16_t | uip_chksum (u16_t *data, u16_t len) |
u16_t | uip_ipchksum (void) |
u16_t | uip_tcpchksum (void) |
u16_t | uip_udpchksum (void) |
Variables | |
u8_t | uip_buf [UIP_BUFSIZE+2] |
void * | uip_appdata |
u16_t | uip_len |
struct uip_conn * | uip_conn |
struct uip_conn | uip_conns [UIP_CONNS] |
u8_t | uip_acc32 [4] |
struct uip_udp_conn * | uip_udp_conn |
struct uip_udp_conn | uip_udp_conns [UIP_UDP_CONNS] |
struct uip_stats | uip_stat |
u8_t | uip_flags |
struct uip_tcpip_hdr | PACK_STRUCT_END |
uip_ipaddr_t | uip_hostaddr |
uip_ipaddr_t | uip_netmask |
uip_ipaddr_t | uip_draddr |
Header file for the uIP TCP/IP stack.
The uIP TCP/IP stack header file contains definitions for a number of C macros that are used by uIP programs as well as internal uIP structures, TCP/IP header structures and function declarations.
Definition in file uip.h.