74 struct tcpip_uipstate {
79 #define UIP_APPCALL tcpip_uipcall
80 #define UIP_UDP_APPCALL tcpip_uipcall
81 #define UIP_ICMP6_APPCALL tcpip_icmp6_call
87 typedef struct tcpip_uipstate uip_icmp6_appstate_t;
89 void tcpip_uipcall(
void);
113 #define tcp_markconn(conn, appstate) tcp_attach(conn, appstate)
209 #define udp_markconn(conn, appstate) udp_attach(conn, appstate)
262 #define udp_bind(conn, port) uip_udp_bind(conn, port)
343 #if NETSTACK_CONF_WITH_IPV6
345 void tcpip_set_outputfunc(uint8_t (* f)(
const uip_lladdr_t *));
348 void tcpip_set_outputfunc(uint8_t (* f)(
void));
354 #if NETSTACK_CONF_WITH_IPV6
366 extern unsigned char tcpip_is_forwarding;
369 #define tcpip_set_forwarding(forwarding) tcpip_do_forwarding = (forwarding)
uip_ipaddr_t ripaddr
The IP address of the remote peer.
Representation of a uIP TCP connection.
unsigned char tcpip_do_forwarding
Is forwarding generally enabled?
CCIF process_event_t tcpip_event
The uIP event.
CCIF struct uip_conn * tcp_connect(const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
Open a TCP connection to the specified IP address and port.
uip_udp_appstate_t appstate
The application state.
struct uip_udp_conn * udp_broadcast_new(uint16_t port, void *appstate)
Create a new UDP broadcast connection.
Representation of a uIP UDP connection.
CCIF void tcp_listen(uint16_t port)
Open a TCP port.
void udp_attach(struct uip_udp_conn *conn, void *appstate)
Attach the current process to a UDP connection.
void tcpip_poll_tcp(struct uip_conn *conn)
Cause a specified TCP connection to be polled.
uip_ipaddr_t ripaddr
The IP address of the remote host.
CCIF struct uip_udp_conn * udp_new(const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
Create a new UDP connection.
PROCESS_NAME(sample_process)
Process the sampler runs as.
CCIF void tcp_unlisten(uint16_t port)
Close a listening TCP port.
void tcpip_ipv6_output(void)
This function does address resolution and then calls tcpip_output.
void tcpip_icmp6_call(uint8_t type)
This function is called at reception of an ICMPv6 packet If an application registered as an ICMPv6 li...
uint8_t icmp6_new(void *appstate)
register an ICMPv6 callback
CCIF void tcp_attach(struct uip_conn *conn, void *appstate)
Attach a TCP connection to the current process.
CCIF process_event_t tcpip_icmp6_event
The ICMP6 event.
struct tcpip_uipstate uip_udp_appstate_t
The type of the application state that is to be stored in the uip_conn structure. ...
Header file for the uIP 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.
CCIF void tcpip_poll_udp(struct uip_udp_conn *conn)
Cause a specified UDP connection to be polled.
CCIF void tcpip_input(void)
Deliver an incoming packet to the TCP/IP stack.
struct tcpip_uipstate uip_tcp_appstate_t
The type of the application state that is to be stored in the uip_conn structure. ...