lwip: packet-stream/link-state signals in recv thread

Issue #1327
This commit is contained in:
Josef Söntgen
2015-03-12 20:23:05 +01:00
committed by Christian Helmuth
parent 6c6375aa83
commit 2d469cb35c
4 changed files with 102 additions and 50 deletions

View File

@ -47,6 +47,13 @@ int lwip_nic_init(genode_int32_t ip_addr,
__SIZE_TYPE__ tx_buf_size,
__SIZE_TYPE__ rx_buf_size);
/**
* Pass on link-state changes to lwIP
*
* \param state current link-state
*/
void lwip_nic_link_state_changed(int state);
#ifdef __cplusplus
}
#endif

View File

@ -42,7 +42,8 @@
#define TCP_RCV_SCALE 2 /* receive scale factor IETF RFC 1323 */
#if LWIP_DHCP
#define LWIP_NETIF_STATUS_CALLBACK 1 /* callback function used by DHCP init */
#define LWIP_NETIF_STATUS_CALLBACK 1 /* callback function used for interface changes */
#define LWIP_NETIF_LINK_CALLBACK 1 /* callback function used for link-state changes */
#endif
/***********************************