mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
include/nuttx/net/netconfig.h: fix typos and nxstyle
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
62d38c32e8
commit
70cbb7e537
@@ -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.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user