Made the maximum number of concurrent TCP connections a highlevel config value.
This commit is contained in:
parent
85082693c5
commit
7b5bde6336
|
@ -30,7 +30,7 @@
|
||||||
*
|
*
|
||||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||||
*
|
*
|
||||||
* @(#)$Id: 6502def.h,v 1.22 2010/04/05 15:17:22 oliverschmidt Exp $
|
* @(#)$Id: 6502def.h,v 1.23 2010/04/11 20:47:16 oliverschmidt Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __6502DEF_H__
|
#ifndef __6502DEF_H__
|
||||||
|
@ -72,6 +72,18 @@ typedef unsigned short uip_stats_t;
|
||||||
|
|
||||||
#define LOADER_CONF_ARCH "lib/unload.h"
|
#define LOADER_CONF_ARCH "lib/unload.h"
|
||||||
|
|
||||||
|
#if MTU_SIZE
|
||||||
|
#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + MTU_SIZE)
|
||||||
|
#else /* MTU_SIZE */
|
||||||
|
#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + 1500)
|
||||||
|
#endif /* MTU_SIZE */
|
||||||
|
|
||||||
|
#if CONNECTIONS
|
||||||
|
#define UIP_CONF_MAX_CONNECTIONS CONNECTIONS
|
||||||
|
#else /* CONNECTIONS */
|
||||||
|
#define UIP_CONF_MAX_CONNECTIONS 10
|
||||||
|
#endif /* CONNECTIONS */
|
||||||
|
|
||||||
#if WITH_LOGGING
|
#if WITH_LOGGING
|
||||||
#define LOG_CONF_ENABLED 1
|
#define LOG_CONF_ENABLED 1
|
||||||
#define UIP_CONF_LOGGING 1
|
#define UIP_CONF_LOGGING 1
|
||||||
|
@ -80,12 +92,6 @@ typedef unsigned short uip_stats_t;
|
||||||
#define UIP_CONF_LOGGING 0
|
#define UIP_CONF_LOGGING 0
|
||||||
#endif /* WITH_LOGGING */
|
#endif /* WITH_LOGGING */
|
||||||
|
|
||||||
#if MTU_SIZE
|
|
||||||
#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + MTU_SIZE)
|
|
||||||
#else /* MTU_SIZE */
|
|
||||||
#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + 1500)
|
|
||||||
#endif /* MTU_SIZE */
|
|
||||||
|
|
||||||
#if WITH_BOOST
|
#if WITH_BOOST
|
||||||
#define UIP_CONF_TCP_SPLIT 1
|
#define UIP_CONF_TCP_SPLIT 1
|
||||||
#else /* WITH_BOOST */
|
#else /* WITH_BOOST */
|
||||||
|
|
|
@ -37,6 +37,10 @@ MTU_SIZE
|
||||||
- Default: 1500
|
- Default: 1500
|
||||||
- Purpose: Set the Maximum Transfer Unit size.
|
- Purpose: Set the Maximum Transfer Unit size.
|
||||||
|
|
||||||
|
CONNECTIONS
|
||||||
|
- Default: 10
|
||||||
|
- Purpose: Set the maximum number of concurrent TCP connections.
|
||||||
|
|
||||||
WITH_LOGGING
|
WITH_LOGGING
|
||||||
- Default: 0
|
- Default: 0
|
||||||
- Purpose: Have log_message() and UIP_LOG() write messages to the screen.
|
- Purpose: Have log_message() and UIP_LOG() write messages to the screen.
|
||||||
|
|
Loading…
Reference in a new issue