33,7 → 33,6 |
/** @file |
* TCP module implementation. |
* @see tcp.h |
* \todo |
*/ |
|
#include <assert.h> |
81,11 → 80,11 |
*/ |
#define NET_DEFAULT_TCP_WINDOW 10240 |
|
/** \todo |
/** Initial timeout for new connections. |
*/ |
#define NET_DEFAULT_TCP_INITIAL_TIMEOUT 3000000L |
|
/** \todo |
/** Default timeout for closing. |
*/ |
#define NET_DEFAULT_TCP_TIME_WAIT_TIMEOUT 2000L |
|
105,7 → 104,7 |
*/ |
#define TCP_FREE_PORTS_END 65535 |
|
/** \todo |
/** Timeout for connection initialization, SYN sent. |
*/ |
#define TCP_SYN_SENT_TIMEOUT 1000000L |
|
117,7 → 116,11 |
*/ |
#define TCP_FAST_RETRANSMIT_COUNT 3 |
|
/** \todo |
/** Returns a value indicating whether the value is in the interval respecting the possible overflow. |
* The high end and/or the value may overflow, be lower than the low value. |
* @param[in] lower The last value before the interval. |
* @param[in] value The value to be checked. |
* @param[in] high_equal The last value in the interval. |
*/ |
#define IS_IN_INTERVAL_OVERFLOW( lower, value, higher_equal ) (((( lower ) < ( value )) && ((( value ) <= ( higher_equal )) || (( higher_equal ) < ( lower )))) || ((( value ) <= ( higher_equal )) && (( higher_equal ) < ( lower )))) |
|
166,8 → 169,8 |
}; |
|
/** Releases the packet and returns the result. |
* @param packet The packet queue to be released. Input parameter. |
* @param result The result to be returned. Input parameter. |
* @param[in] packet The packet queue to be released. |
* @param[in] result The result to be returned. |
* @return The result parameter. |
*/ |
int tcp_release_and_return( packet_t packet, int result ); |