# HG changeset patch # User asl # Date 1056361510 0 # Node ID 4464de5a8dce823dfec2bb311b68704820b0524b # Parent 4de388a3615bf193fee894f48ba124a7f0fe83dd * src/ecos/support.c: Increase the stack size for the background thread when IPv6 is enabled otherwise the stack overflows. diff --git a/packages/net/bsd_tcpip/current/ChangeLog b/packages/net/bsd_tcpip/current/ChangeLog --- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2003-06-23 Jay Foster + + * 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 * src/ecos/synch.c (spl_any): Put call to cyg_mutex_lock() into a diff --git a/packages/net/bsd_tcpip/current/src/ecos/support.c b/packages/net/bsd_tcpip/current/src/ecos/support.c --- 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;