From 6c979fed4031d7d86dcfb9473ecc33df84e4a8a7 Mon Sep 17 00:00:00 2001 From: cborrelli Date: Tue, 5 Nov 2002 18:36:32 +0000 Subject: [PATCH] added ifndef around the TCP_TMR defines so that the user can define these values in the lwipopts.h file if needed; this change will not be seen outside the stack unless the user wants to change the default values. --- src/include/lwip/tcp.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index b8e5cad0..3c5fbab7 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -129,13 +129,21 @@ void tcp_rexmit (struct tcp_pcb *pcb); /* Length of the TCP header, excluding options. */ #define TCP_HLEN 20 +#ifndef TCP_TMR_INTERVAL #define TCP_TMR_INTERVAL 100 /* The TCP timer interval in - milliseconds. */ + milliseconds. */ +#endif /* TCP_TMR_INTERVAL */ +#ifndef TCP_FAST_INTERVAL #define TCP_FAST_INTERVAL 200 /* the fine grained timeout in - milliseconds */ + milliseconds */ +#endif /* TCP_FAST_INTERVAL */ + +#ifndef TCP_SLOW_INTERVAL #define TCP_SLOW_INTERVAL 500 /* the coarse grained timeout in - milliseconds */ + milliseconds */ +#endif /* TCP_SLOW_INTERVAL */ + #define TCP_FIN_WAIT_TIMEOUT 20000 /* milliseconds */ #define TCP_SYN_RCVD_TIMEOUT 20000 /* milliseconds */