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)
291 CCIF
extern process_event_t tcpip_icmp6_event;
312 void tcpip_icmp6_call(uint8_t type);
345 void tcpip_set_outputfunc(uint8_t (* f)(
const uip_lladdr_t *));
348 void tcpip_set_outputfunc(uint8_t (* f)(
void));
366 extern unsigned char tcpip_is_forwarding;
369 #define tcpip_set_forwarding(forwarding) tcpip_do_forwarding = (forwarding)
void tcpip_ipv6_output(void)
This function does address resolution and then calls tcpip_output.
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. ...
Representation of a uIP TCP connection.
CCIF struct uip_conn * tcp_connect(uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
Open a TCP connection to the specified IP address and port.
Header file for the uIP TCP/IP stack.
CCIF void tcp_attach(struct uip_conn *conn, void *appstate)
Attach a TCP connection to the current process.
CCIF struct uip_udp_conn * udp_new(const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
Create a new UDP connection.
#define PROCESS_NAME(name)
Declare the name of a process.
uint8_t tcpip_output(const uip_lladdr_t *a)
Output packet to layer 2 The eventual parameter is the MAC address of the destination.
uip_tcp_appstate_t appstate
The application state.
CCIF void tcp_unlisten(uint16_t port)
Close a listening TCP port.
CCIF void tcpip_poll_udp(struct uip_udp_conn *conn)
Cause a specified UDP connection to be polled.
uip_ipaddr_t ripaddr
The IP address of the remote peer.
struct uip_udp_conn * udp_broadcast_new(uint16_t port, void *appstate)
Create a new UDP broadcast connection.
unsigned char tcpip_do_forwarding
Is forwarding generally enabled?
struct tcpip_uipstate uip_udp_appstate_t
The type of the application state that is to be stored in the uip_conn structure. ...
process_event_t tcpip_event
The uIP event.
CCIF void tcp_listen(uint16_t port)
Open a TCP port.
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.
Representation of a uIP UDP connection.
void udp_attach(struct uip_udp_conn *conn, void *appstate)
Attach the current process to a UDP connection.
uip_udp_appstate_t appstate
The application state.