Limit size of uip/tcpip stack when not using TCP at all.

This commit is contained in:
lebrush 2013-05-15 12:07:57 +02:00
parent a445c4020d
commit 96a1a97736
2 changed files with 9 additions and 1 deletions

View file

@ -166,6 +166,7 @@ start_periodic_tcp_timer(void)
static void
check_for_tcp_syn(void)
{
#if UIP_TCP || UIP_CONF_IP_FORWARD
/* This is a hack that is needed to start the periodic TCP timer if
an incoming packet contains a SYN: since uIP does not inform the
application if a SYN arrives, we have no other way of starting
@ -176,6 +177,7 @@ check_for_tcp_syn(void)
(UIP_TCP_BUF->flags & TCP_SYN) == TCP_SYN) {
start_periodic_tcp_timer();
}
#endif /* UIP_TCP || UIP_CONF_IP_FORWARD */
}
/*---------------------------------------------------------------------------*/
static void