Bugfix: lastport must be defines both when UIP_ACTIVE_OPEN or UIP_UDP are defined (thanks Oliver!)

This commit is contained in:
adamdunkels 2010-02-04 21:14:45 +00:00
parent dd4d3446c6
commit d8b0625e21
2 changed files with 6 additions and 6 deletions

View file

@ -41,7 +41,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: uip.c,v 1.19 2010/02/04 11:17:42 adamdunkels Exp $ * $Id: uip.c,v 1.20 2010/02/04 21:14:45 adamdunkels Exp $
* *
*/ */
@ -174,10 +174,10 @@ void uip_setipid(u16_t id) { ipid = id; }
static u8_t iss[4]; /* The iss variable is used for the TCP static u8_t iss[4]; /* The iss variable is used for the TCP
initial sequence number. */ initial sequence number. */
#if UIP_ACTIVE_OPEN #if UIP_ACTIVE_OPEN || UIP_UDP
static u16_t lastport; /* Keeps track of the last port used for static u16_t lastport; /* Keeps track of the last port used for
a new connection. */ a new connection. */
#endif /* UIP_ACTIVE_OPEN */ #endif /* UIP_ACTIVE_OPEN || UIP_UDP */
/* Temporary variables. */ /* Temporary variables. */
u8_t uip_acc32[4]; u8_t uip_acc32[4];

View file

@ -41,7 +41,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: uip6.c,v 1.9 2010/02/04 11:17:42 adamdunkels Exp $ * $Id: uip6.c,v 1.10 2010/02/04 21:14:45 adamdunkels Exp $
* *
*/ */
@ -200,10 +200,10 @@ struct uip_conn *uip_conn;
static u8_t c; static u8_t c;
#endif #endif
#if UIP_ACTIVE_OPEN #if UIP_ACTIVE_OPEN || UIP_UDP
/* Keeps track of the last port used for a new connection. */ /* Keeps track of the last port used for a new connection. */
static u16_t lastport; static u16_t lastport;
#endif /* UIP_ACTIVE_OPEN */ #endif /* UIP_ACTIVE_OPEN || UIP_UDP */
/** @} */ /** @} */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/