Browse Source

tcp_isn: fix building with PPP support disabled and hook disabled

master
Simon Goldschmidt 8 years ago
parent
commit
033deed807
  1. 4
      addons/tcp_isn/tcp_isn.c

4
addons/tcp_isn/tcp_isn.c

@ -75,6 +75,8 @@
#include "lwip/sys.h"
#include <string.h>
#ifdef LWIP_HOOK_TCP_ISN
/* pull in md5 of ppp? */
#include "netif/ppp/ppp_opts.h"
#if !PPP_SUPPORT || (!LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS)
@ -176,3 +178,5 @@ lwip_hook_tcp_isn(const ip_addr_t *local_ip, u16_t local_port,
/* Add the current time in 4-microsecond units. */
return isn + base_time + sys_now() * 250;
}
#endif /* LWIP_HOOK_TCP_ISN */

Loading…
Cancel
Save