libnet: adding timeout function
#include <lwip/opt.h>
#include <lwip/netif.h>
+#include <lwip/timeouts.h>
#include "include/net/netif.h"
#include <netif/etharp.h>
@@ -54,7 +55,6 @@ static err_t net_if_linkoutput(struct netif *netif, struct pbuf *p)
}
-
static void net_if_status_cb(struct netif *netif)
{
debug_printf("netif status changed %s\n", ip4addr_ntoa(netif_ip4_addr(netif)));
@@ -326,6 +326,7 @@ errval_t net_if_poll(struct netif *netif)
}
}
+ sys_check_timeouts();
return SYS_ERR_OK;
