[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #6861] Support for proper system termination in lwIP
From: |
Iordan Neshev |
Subject: |
[lwip-devel] [patch #6861] Support for proper system termination in lwIP |
Date: |
Tue, 14 Jul 2009 14:35:08 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 |
Follow-up Comment #3, patch #6861 (project lwip):
>In the past, there have been multiple requests for 'graceful >shutdown' of
the stack and every time, we decided to not >implement it because it's not
used on most platforms (embedded >systems just power off)
There are exceptions. We have a battery powered GPRS terminal which acquires
information and goes online only for a minute or two every day in order to
send it. I bet there are much users that have similar needs.
We solved the problem by creating and assigning separate .text, .data and
.bss sections only for lwip+netif+ping/.... Then I wrote lwip_reinit() which
does exactly what the startup code in crt0.s does (note: we had to add the
-fno-common compiler option in order to place all lwip's variables in the
dedicated section). We don't need lwip_shutdown() function, we just stop
calling the tcp_tmr(). We don't use an OS if it matters.
> and it requires much code most people will never use
It can be surrounded by something like #if LWIP_SHUTDOWN_SUPPORT
>So, any reason to leave this open?
How about schedule it for 1.4?
Regards,
Iordan
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6861>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/