]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
fixed bug #38701 (wrong comment on tcp_pcb::snd_queuelen
authorSimon Goldschmidt <goldsimon@gmx.de>
Wed, 24 Apr 2013 19:28:56 +0000 (21:28 +0200)
committerSimon Goldschmidt <goldsimon@gmx.de>
Wed, 24 Apr 2013 19:28:56 +0000 (21:28 +0200)
src/core/tcp_out.c
src/include/lwip/tcp.h

index d66221784eab4d419ee329f5aea5c60ad2d830cf..b9fc339eb15f386c1eb0b360b40b0e2b1b5b7069 100644 (file)
@@ -1377,9 +1377,9 @@ void
 tcp_keepalive(struct tcp_pcb *pcb)
 {
   struct pbuf *p;
-#if CHECKSUM_GEN_TCP\r
+#if CHECKSUM_GEN_TCP
   struct tcp_hdr *tcphdr;
-#endif /* CHECKSUM_GEN_TCP */\r
+#endif /* CHECKSUM_GEN_TCP */
 
   LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: sending KEEPALIVE probe to "));
   ipX_addr_debug_print(PCB_ISIPV6(pcb), TCP_DEBUG, &pcb->remote_ip);
@@ -1394,12 +1394,12 @@ tcp_keepalive(struct tcp_pcb *pcb)
                 ("tcp_keepalive: could not allocate memory for pbuf\n"));
     return;
   }
-#if CHECKSUM_GEN_TCP\r
+#if CHECKSUM_GEN_TCP
   tcphdr = (struct tcp_hdr *)p->payload;
 
   tcphdr->chksum = ipX_chksum_pseudo(PCB_ISIPV6(pcb), p, IP_PROTO_TCP, p->tot_len,
       &pcb->local_ip, &pcb->remote_ip);
-#endif /* CHECKSUM_GEN_TCP */\r
+#endif /* CHECKSUM_GEN_TCP */
   TCP_STATS_INC(tcp.xmit);
 
   /* Send output to IP */
index 0ab301f0e71c99a0d4bf74a9292c6bda3aefaa03..add77e8dff15c6ea29730e5fd87ea6141f75ad2e 100644 (file)
@@ -233,7 +233,7 @@ struct tcp_pcb {
 
   u16_t snd_buf;   /* Available buffer space for sending (in bytes). */
 #define TCP_SNDQUEUELEN_OVERFLOW (0xffffU-3)
-  u16_t snd_queuelen; /* Available buffer space for sending (in tcp_segs). */
+  u16_t snd_queuelen; /* Available buffer space for sending (in pbufs). */
 
 #if TCP_OVERSIZE
   /* Extra bytes available at the end of the last pbuf in unsent. */