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);
112 #define tcp_markconn(conn, appstate) tcp_attach(conn, appstate) 208 #define udp_markconn(conn, appstate) udp_attach(conn, appstate) 261 #define udp_bind(conn, port) uip_udp_bind(conn, port) 358 extern unsigned char tcpip_is_forwarding;
361 #define tcpip_set_forwarding(forwarding) tcpip_do_forwarding = (forwarding) uint8_t tcpip_output(const uip_lladdr_t *)
Output packet to layer 2 The eventual parameter is the MAC address of the destination.
void udp_attach(struct uip_udp_conn *conn, void *appstate)
Attach the current process to a UDP connection.
void tcpip_poll_udp(struct uip_udp_conn *conn)
Cause a specified UDP connection to be polled.
Representation of a uIP TCP connection.
void tcpip_ipv6_output(void)
This function does address resolution and then calls tcpip_output.
process_event_t tcpip_event
The uIP event.
void tcp_attach(struct uip_conn *conn, void *appstate)
Attach a TCP connection to the current process.
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.
struct uip_udp_conn * udp_broadcast_new(uint16_t port, void *appstate)
Create a new UDP broadcast connection.
void tcp_unlisten(uint16_t port)
Close a listening TCP port.
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. ...
struct uip_udp_conn * udp_new(const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
Create a new UDP connection.
unsigned char tcpip_do_forwarding
Is forwarding generally enabled?
#define PROCESS_NAME(name)
Declare the name of a process.
Header file for the uIP TCP/IP stack.
void tcp_listen(uint16_t port)
Open a TCP port.
uip_ipaddr_t ripaddr
The IP address of the remote peer.
uint8_t icmp6_new(void *appstate)
register an ICMPv6 callback
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.
struct tcpip_uipstate uip_tcp_appstate_t
The type of the application state that is to be stored in the uip_conn structure. ...
void tcpip_input(void)
Deliver an incoming packet to the TCP/IP stack.
Representation of a uIP UDP connection.
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...
uip_udp_appstate_t appstate
The application state.