You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/11/08 17:58:31 UTC

[incubator-nuttx] 02/03: include/nuttx/net/netconfig.h: fix typos and nxstyle

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 70cbb7e5378657fd5327d7a68958ea2602070c50
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Sun Nov 8 17:56:41 2020 +0200

    include/nuttx/net/netconfig.h: fix typos and nxstyle
    
    Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
 include/nuttx/net/netconfig.h | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/include/nuttx/net/netconfig.h b/include/nuttx/net/netconfig.h
index ae5a9c2..dea2684 100644
--- a/include/nuttx/net/netconfig.h
+++ b/include/nuttx/net/netconfig.h
@@ -253,8 +253,8 @@
 #  endif
 #endif
 
-/* The UDP maximum packet size. This is should not be to set to more
- * than NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(dev) - __UDP_HDRLEN - IPv*_HDRLEN.
+/* The UDP maximum packet size. This should not be set to more than
+ * NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(dev) - __UDP_HDRLEN - IPv*_HDRLEN.
  */
 
 #define UDP_MSS(d,h)               (NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(d) - __UDP_HDRLEN - (h))
@@ -351,7 +351,7 @@
 #  define MAX_UDP_MSS           __MAX_UDP_MSS(__IPv4_HDRLEN)
 #endif
 
-/* If IPv6 is support, it will have the smaller MSS */
+/* If IPv6 is supported, it will have the smaller MSS. */
 
 #ifdef CONFIG_NET_IPv6
 #  undef  MIN_UDP_MSS
@@ -399,10 +399,7 @@
 
 /* The initial retransmission timeout counted in timer pulses.
  * REVISIT:  TCP RTO really should be calculated dynamically for each TCP
- * connection:
- *
- * https://unix.stackexchange.com/questions/210367/changing-the-tcp-rto-value-in-linux
- * http://sgros.blogspot.com/2012/02/calculating-tcp-rto.html
+ * connection.
  */
 
 #ifdef CONFIG_NET_TCP_RTO
@@ -428,12 +425,12 @@
 
 #define TCP_MAXSYNRTX 5
 
-/* The TCP maximum segment size. This is should not be set to more
- * than NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
+/* The TCP maximum segment size. This should not be set to more than
+ * NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
  *
  * In the case where there are multiple network devices with different
- * link layer protocols, each network device may support a different UDP
- * MSS value.  Here we arbitrarily select the minimum MSS for that case.
+ * link layer protocols, each network device may support a different MSS
+ * value.  Here we arbitrarily select the minimum MSS for that case.
  *
  * REVISIT: __TCP_HDRLEN is not really a constant!
  */
@@ -521,7 +518,7 @@
 #endif
 
 /* If IPv4 is supported, it will have the larger MSS.
- * NOTE: MSS calcuation excludes the __TCP_HDRLEN.
+ * NOTE: MSS calculation excludes the __TCP_HDRLEN.
  */
 
 #ifdef CONFIG_NET_IPv6
@@ -542,7 +539,7 @@
 #  define MAX_TCP_MSS           __MAX_TCP_MSS(__IPv4_HDRLEN)
 #endif
 
-/* If IPv6 is supported, it will have the smaller MSS */
+/* If IPv6 is supported, it will have the smaller MSS. */
 
 #ifdef CONFIG_NET_IPv6
 #  undef MIN_TCP_MSS
@@ -609,7 +606,7 @@
 
 /* Statistics datatype
  *
- * This typedef defines the dataype used for keeping statistics in
+ * This typedef defines the datatype used for keeping statistics in
  * the network.
  */