# modules/uip/uip/uip.c File Reference

`#include "uip.h"`
`#include "uipopt.h"`
`#include "uip_arch.h"`
`#include <string.h>`

## Defines
#define | DEBUG_PRINTF(...)
#define | TCP_FIN 0x01
#define | TCP_SYN 0x02
#define | TCP_RST 0x04
#define | TCP_PSH 0x08
#define | TCP_ACK 0x10
#define | TCP_URG 0x20
#define | TCP_CTL 0x3f
#define | TCP_OPT_END 0
#define | TCP_OPT_NOOP 1
#define | TCP_OPT_MSS 2
#define | TCP_OPT_MSS_LEN 4
#define | ICMP_ECHO_REPLY 0
#define | ICMP_ECHO 8
#define | ICMP6_ECHO_REPLY 129
#define | ICMP6_ECHO 128
#define | ICMP6_NEIGHBOR_SOLICITATION 135
#define | ICMP6_NEIGHBOR_ADVERTISEMENT 136
#define | ICMP6_FLAG_S (1 << 6)
#define | ICMP6_OPTION_SOURCE_LINK_ADDRESS 1
#define | ICMP6_OPTION_TARGET_LINK_ADDRESS 2
#define | BUF ((struct uip_tcpip_hdr *)&uip_buf[UIP_LLH_LEN])
#define | FBUF ((struct uip_tcpip_hdr *)&uip_reassbuf[0])
#define | ICMPBUF ((struct uip_icmpip_hdr *)&uip_buf[UIP_LLH_LEN])
#define | UDPBUF ((struct uip_udpip_hdr *)&uip_buf[UIP_LLH_LEN])
#define | UIP_STAT(s)
#define | UIP_LOG(m)
## Functions
void | uip_setipid (u16_t id)
void | uip_add32 (u8_t *op32, u16_t op16)
u16_t | uip_chksum (u16_t *data, u16_t len)
u16_t | uip_ipchksum (void)
u16_t | uip_tcpchksum (void)
void | uip_init (void)
struct uip_conn * | uip_connect (uip_ipaddr_t *ripaddr, u16_t rport)
void | uip_unlisten (u16_t port)
void | uip_listen (u16_t port)
void | uip_process (u8_t flag)
u16_t | htons (u16_t val)
void | uip_send (const void *data, int len)
## Variables
uip_ipaddr_t | uip_hostaddr
uip_ipaddr_t | uip_draddr
uip_ipaddr_t | uip_netmask
struct uip_eth_addr | uip_ethaddr = {{0,0,0,0,0,0}}
u8_t | uip_buf [UIP_BUFSIZE+2]
void * | uip_appdata
void * | uip_sappdata
u16_t | uip_len
u16_t | uip_slen
u8_t | uip_flags
struct uip_conn * | uip_conn
struct uip_conn | uip_conns [UIP_CONNS]
u16_t | uip_listenports [UIP_LISTENPORTS]
u8_t | uip_acc32 [4]

## Detailed Description

The uIP TCP/IP stack code.

Author:
  Adam Dunkels <adam@dunkels.com>

## Define Documentation

#define DEBUG_PRINTF | ( | ... |  | ) |