Contiki 3.x
Functions | Variables
uip.c File Reference

The uIP TCP/IP stack code. More...

#include "net/ip/uip.h"
#include "net/ip/uipopt.h"
#include "net/ipv4/uip_arp.h"
#include "net/ip/uip_arch.h"
#include "net/ipv4/uip-neighbor.h"
#include <string.h>
#include "sys/cc.h"

Go to the source code of this file.

Functions

void uip_setipid (uint16_t id)
 uIP initialization function. More...
 
void uip_add32 (uint8_t *op32, uint16_t op16)
 Carry out a 32-bit addition. More...
 
uint16_t uip_chksum (uint16_t *data, uint16_t len)
 Calculate the Internet checksum over a buffer. More...
 
uint16_t uip_ipchksum (void)
 Calculate the IP header checksum of the packet header in uip_buf. More...
 
uint16_t uip_icmp6chksum (void)
 Calculate the ICMP checksum of the packet in uip_buf. More...
 
uint16_t uip_tcpchksum (void)
 Calculate the TCP checksum of the packet in uip_buf and uip_appdata. More...
 
void uip_init (void)
 uIP initialization function. More...
 
struct uip_udp_connuip_udp_new (const uip_ipaddr_t *ripaddr, uint16_t rport)
 Set up a new UDP connection. More...
 
void uip_unlisten (uint16_t port)
 Stop listening to the specified port. More...
 
void uip_listen (uint16_t port)
 Start listening to the specified port. More...
 
void uip_process (uint8_t flag)
 process the options within a hop by hop or destination option header More...
 
uint16_t uip_htons (uint16_t val)
 Convert a 16-bit quantity from host byte order to network byte order. More...
 
void uip_send (const void *data, int len)
 Send data on the current connection. More...
 

Variables

void * uip_appdata
 Pointer to the application data in the packet buffer. More...
 
uint16_t uip_len
 The length of the packet in the uip_buf buffer. More...
 
struct uip_connuip_conn
 Pointer to the current TCP connection. More...
 
struct uip_udp_connuip_udp_conn
 The current UDP connection.
 
uint8_t uip_acc32 [4]
 4-byte array used for the 32-bit sequence number calculations.
 

Detailed Description

The uIP TCP/IP stack code.

Author
Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om

Definition in file uip.c.