changeset 1059:4464de5a8dce

* src/ecos/support.c: Increase the stack size for the background thread when IPv6 is enabled otherwise the stack overflows.
author asl
date Mon, 23 Jun 2003 09:45:10 +0000
parents 4de388a3615b
children 968041f10447
files packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/ecos/support.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog
+++ b/packages/net/bsd_tcpip/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-23  Jay Foster  <jay@systech.com>
+
+	* src/ecos/support.c: Increase the stack size for the background
+	thread when IPv6 is enabled otherwise the stack overflows.
+
 2003-06-09  Nick Garnett  <nickg@balti.calivar.com>
 
 	* src/ecos/synch.c (spl_any): Put call to cyg_mutex_lock() into a
--- a/packages/net/bsd_tcpip/current/src/ecos/support.c
+++ b/packages/net/bsd_tcpip/current/src/ecos/support.c
@@ -104,7 +104,11 @@ volatile struct timeval mono_time;
 int cyg_net_log_mask = CYGPKG_NET_FREEBSD_LOGGING;
 #endif
 
+#ifdef CYGPKG_NET_INET6
+#define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_TYPICAL+2048)
+#else
 #define STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
+#endif
 static char netint_stack[STACK_SIZE];
 static cyg_thread netint_thread_data;
 static cyg_handle_t netint_thread_handle;