/* ****************************************************************************** * IPNET_CONFIG.H * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: iptcp_config.h,v $ $Revision: 1.13.10.2 $ * $Source: /home/interpeak/CVSRoot/iptcp/config/iptcp_config.h,v $ * $Author: jli7 $ $Date: 2015-02-09 03:38:14 $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Kenneth Jonsson ****************************************************************************** */ #ifndef IPTCP_CONFIG_H #define IPTCP_CONFIG_H /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** * * Configuration for IPTCP. Parameters that are macros can only be changed * before compiling, variables can be changed before compiling and linking. */ /* **************************************************************************** * 2 INCLUDE FILES **************************************************************************** */ #include #include #include #ifdef IPCRYPTO #include #endif #ifdef __cplusplus extern "C" { #endif /* **************************************************************************** * 3 TYPES **************************************************************************** */ /* **************************************************************************** * 4 CONFIGURATION **************************************************************************** */ #ifdef IPLITE IP_EXTERN IP_CONST int iptcp_conf_connection_timeout; IP_EXTERN IP_CONST int iptcp_conf_msl; IP_EXTERN IP_CONST int iptcp_conf_max_mss; #endif /* IPLITE */ IP_EXTERN IP_CONST int iptcp_conf_default_backlog; /* *=========================================================================== * IPTCP_USE_TIMESTAMP_OPT *=========================================================================== * Define to include support for TCP Timestamp Options as described in * in RFC 1323. */ #if defined(IPNET) #define IPTCP_USE_TIMESTAMP_OPT #endif /* *=========================================================================== * IPTCP_USE_SACK_OPT *=========================================================================== * Define to include support for TCP Selective Acknowledgment Options * as described in RFC 2018. */ #if defined(IPNET) /* #define IPTCP_USE_SACK_OPT */ #endif /* *=========================================================================== * IPTCP_USE_MD5_SIGNATURE_OPT *=========================================================================== * Define to include support for MD5 signatures on TCP segments as described * in RFC 2385. */ #if defined(IPNET) && defined(IPCOM_USE_MD5) #define IPTCP_USE_MD5_SIGNATURE_OPT #endif /* * Define to include support for secure Initial Sequence Number as described * in RFC 6528 */ #if defined(IPNET) && defined(IPCRYPTO) #define IPTCP_USE_SECURE_ISN #endif /* RFC5925 8 * >> TCP implementations that support TCP MD5 MUST support TCP-AO. */ #ifdef IPTCP_USE_MD5_SIGNATURE_OPT /* *=========================================================================== * IPTCP_USE_AO *=========================================================================== * Define to include support for TCP Authentication Option on TCP segments as * described in RFC 5925. */ #define IPTCP_USE_AO /* *=========================================================================== * IPTCP_USE_AO_CMD *=========================================================================== * Define to include support for the manegement of MKT(Master Key Tuple) in * TCP Authentication Option, if disable this, you can use "set/getsockopt" * to set the information that AO needed, this will ONLY affect the current * socket, the socket pairs(5 tuple) can be treated as special MKT. */ #define IPTCP_USE_AO_CMD #endif #ifdef IPTCP_USE_AO #if defined(IPNET) && !defined(OPENSSL_NO_SHA) #define IPTCP_USE_AO_SHA #endif #if defined(IPNET) && !defined(OPENSSL_NO_AES) && defined(IPCRYPTO) #define IPTCP_USE_AO_AESCMAC #endif #endif /* *=========================================================================== * IPCOM_SYSLOG_PRIORITY *=========================================================================== * Default syslog priority. */ #ifdef IP_DEBUG #define IPTCP_SYSLOG_PRIORITY IPCOM_LOG_INFO /* (see ipcom_syslog.h) */ #else #define IPTCP_SYSLOG_PRIORITY IPCOM_LOG_WARNING #endif /* *=========================================================================== * IPTCP DEBUG/ASSERT *=========================================================================== * Define IPTCP_ASSERT and/or IPTCP_DEBUG to debug IPTCP. */ #ifdef IP_ASSERT #define IPTCP_ASSERT #endif #ifdef IP_DEBUG #define IPTCP_DEBUG #endif #ifdef __cplusplus } #endif #endif /* IPTCP_CONFIG_H */ /* **************************************************************************** * END OF FILE **************************************************************************** */