mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
Source documentation added.
This commit is contained in:
parent
45e36d9f56
commit
8d052ecf24
@ -6,7 +6,7 @@ in lwIP development.
|
|||||||
2 How to contribute to lwIP
|
2 How to contribute to lwIP
|
||||||
|
|
||||||
Here is a short list of suggestions to anybody working with lwIP and
|
Here is a short list of suggestions to anybody working with lwIP and
|
||||||
trying to contribute bugreports, fixes, enhancements, platform ports etc.
|
trying to contribute bug reports, fixes, enhancements, platform ports etc.
|
||||||
First of all as you may already know lwIP is a volunteer project so feedback
|
First of all as you may already know lwIP is a volunteer project so feedback
|
||||||
to fixes or questions might often come late. Hopefully the bug and patch tracking
|
to fixes or questions might often come late. Hopefully the bug and patch tracking
|
||||||
features of Savannah help us not lose users' input.
|
features of Savannah help us not lose users' input.
|
||||||
|
@ -56,19 +56,25 @@ tcpip_tcp_timer(void *arg)
|
|||||||
{
|
{
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
|
||||||
|
/* call TCP timer handler */
|
||||||
tcp_tmr();
|
tcp_tmr();
|
||||||
|
/* timer still needed? */
|
||||||
if (tcp_active_pcbs || tcp_tw_pcbs) {
|
if (tcp_active_pcbs || tcp_tw_pcbs) {
|
||||||
|
/* restart timer */
|
||||||
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
|
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
|
||||||
} else {
|
} else {
|
||||||
tcpip_tcp_timer_active = 0;
|
/* disable timer */
|
||||||
|
tcpip_tcp_timer_active = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tcp_timer_needed(void)
|
tcp_timer_needed(void)
|
||||||
{
|
{
|
||||||
|
/* timer is off but needed again? */
|
||||||
if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
|
if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
|
||||||
tcpip_tcp_timer_active = 1;
|
/* enable and start timer */
|
||||||
|
tcpip_tcp_timer_active = 1;
|
||||||
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
|
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user