Contiki-NG
Loading...
Searching...
No Matches
tcpip.h File Reference

Header for the Contiki/uIP interface. More...

#include "contiki.h"
#include "net/ipv6/uip.h"

Go to the source code of this file.

Variables

process_event_t tcpip_event
 The uIP event.
 

TCP functions

void tcp_attach (struct uip_conn *conn, void *appstate)
 Attach a TCP connection to the current process.
 
void tcp_listen (uint16_t port)
 Open a TCP port.
 
void tcp_unlisten (uint16_t port)
 Close a listening TCP port.
 
struct uip_conntcp_connect (const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
 Open a TCP connection to the specified IP address and port.
 
void tcpip_poll_tcp (struct uip_conn *conn)
 Cause a specified TCP connection to be polled.
 

UDP functions

#define udp_bind(conn, port)   uip_udp_bind(conn, port)
 Bind a UDP connection to a local port.
 
void udp_attach (struct uip_udp_conn *conn, void *appstate)
 Attach the current process to a UDP connection.
 
struct uip_udp_connudp_new (const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
 Create a new UDP connection.
 
struct uip_udp_connudp_broadcast_new (uint16_t port, void *appstate)
 Create a new UDP broadcast connection.
 
void tcpip_poll_udp (struct uip_udp_conn *conn)
 Cause a specified UDP connection to be polled.
 

TCP/IP packet processing

unsigned char tcpip_do_forwarding
 Is forwarding generally enabled?
 
void tcpip_input (void)
 Deliver an incoming packet to the TCP/IP stack.
 
uint8_t tcpip_output (const uip_lladdr_t *)
 Output packet to layer 2 The eventual parameter is the MAC address of the destination.
 
void tcpip_ipv6_output (void)
 This function does address resolution and then calls tcpip_output.
 

ICMPv6 functions

process_event_t tcpip_icmp6_event
 The ICMP6 event.
 
uint8_t icmp6_new (void *appstate)
 register an ICMPv6 callback
 
void tcpip_icmp6_call (uint8_t type)
 This function is called at reception of an ICMPv6 packet If an application registered as an ICMPv6 listener (with icmp6_new), it will be called through a process_post_synch()
 

Detailed Description

Header for the Contiki/uIP interface.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
Mathilde Durvy mdurv.nosp@m.y@ci.nosp@m.sco.c.nosp@m.om (IPv6 related code)
Julien Abeille jabei.nosp@m.lle@.nosp@m.cisco.nosp@m..com (IPv6 related code)

Definition in file tcpip.h.