]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Source documentation added.
authorlikewise <likewise>
Mon, 12 Jul 2004 20:42:16 +0000 (20:42 +0000)
committerlikewise <likewise>
Mon, 12 Jul 2004 20:42:16 +0000 (20:42 +0000)
doc/contrib.txt
src/api/tcpip.c

index 00fffa653273ed0f749db5bd7651a9dfc05f3794..8620e751a19dda11926d3ececcdb36fbdfb96f60 100644 (file)
@@ -6,7 +6,7 @@ in lwIP development.
 2 How to contribute to lwIP
 
 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
 to fixes or questions might often come late. Hopefully the bug and patch tracking 
 features of Savannah help us not lose users' input.
index bdd35932d3b7eab2c19a8c08de5601346dbe5d28..622d8b5d74834e941e4d8e52d0b4a50a062c9bea 100644 (file)
@@ -56,19 +56,25 @@ tcpip_tcp_timer(void *arg)
 {
   (void)arg;
 
+  /* call TCP timer handler */
   tcp_tmr();
+  /* timer still needed? */
   if (tcp_active_pcbs || tcp_tw_pcbs) {
+    /* restart timer */
     sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
   } else {
-  tcpip_tcp_timer_active = 0;
+    /* disable timer */
+    tcpip_tcp_timer_active = 0;
   }
 }
 
 void
 tcp_timer_needed(void)
 {
+  /* timer is off but needed again? */
   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);
   }
 }