include/nuttx/net/netconfig.h: fix typos and nxstyle

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen
2020-11-08 17:56:41 +02:00
committed by Abdelatif Guettouche
parent 62d38c32e8
commit 70cbb7e537
+11 -14
View File
@@ -253,8 +253,8 @@
# endif # endif
#endif #endif
/* The UDP maximum packet size. This is should not be to set to more /* The UDP maximum packet size. This should not be set to more than
* than NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(dev) - __UDP_HDRLEN - IPv*_HDRLEN. * 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)) #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) # define MAX_UDP_MSS __MAX_UDP_MSS(__IPv4_HDRLEN)
#endif #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 #ifdef CONFIG_NET_IPv6
# undef MIN_UDP_MSS # undef MIN_UDP_MSS
@@ -399,10 +399,7 @@
/* The initial retransmission timeout counted in timer pulses. /* The initial retransmission timeout counted in timer pulses.
* REVISIT: TCP RTO really should be calculated dynamically for each TCP * REVISIT: TCP RTO really should be calculated dynamically for each TCP
* connection: * connection.
*
* https://unix.stackexchange.com/questions/210367/changing-the-tcp-rto-value-in-linux
* http://sgros.blogspot.com/2012/02/calculating-tcp-rto.html
*/ */
#ifdef CONFIG_NET_TCP_RTO #ifdef CONFIG_NET_TCP_RTO
@@ -428,12 +425,12 @@
#define TCP_MAXSYNRTX 5 #define TCP_MAXSYNRTX 5
/* The TCP maximum segment size. This is should not be set to more /* The TCP maximum segment size. This should not be set to more than
* than NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN. * NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
* *
* In the case where there are multiple network devices with different * In the case where there are multiple network devices with different
* link layer protocols, each network device may support a different UDP * link layer protocols, each network device may support a different MSS
* MSS value. Here we arbitrarily select the minimum MSS for that case. * value. Here we arbitrarily select the minimum MSS for that case.
* *
* REVISIT: __TCP_HDRLEN is not really a constant! * REVISIT: __TCP_HDRLEN is not really a constant!
*/ */
@@ -521,7 +518,7 @@
#endif #endif
/* If IPv4 is supported, it will have the larger MSS. /* 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 #ifdef CONFIG_NET_IPv6
@@ -542,7 +539,7 @@
# define MAX_TCP_MSS __MAX_TCP_MSS(__IPv4_HDRLEN) # define MAX_TCP_MSS __MAX_TCP_MSS(__IPv4_HDRLEN)
#endif #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 #ifdef CONFIG_NET_IPv6
# undef MIN_TCP_MSS # undef MIN_TCP_MSS
@@ -609,7 +606,7 @@
/* Statistics datatype /* Statistics datatype
* *
* This typedef defines the dataype used for keeping statistics in * This typedef defines the datatype used for keeping statistics in
* the network. * the network.
*/ */