147 lines
4.0 KiB
C
147 lines
4.0 KiB
C
/*
|
|
******************************************************************************
|
|
* SOURCE FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipl2tp_config.h,v $ $Revision: 1.6 $
|
|
* $Source: /home/interpeak/CVSRoot/ipl2tp/config/ipl2tp_config.h,v $
|
|
* $Author: tneale $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef _IPL2TP_CONFIG_H_
|
|
#define _IPL2TP_CONFIG_H_
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*
|
|
* L2TP configuration file.
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 GENERAL
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPL2TP_SYSLOG_PRIORITY
|
|
*===========================================================================
|
|
* Initial L2TP syslog system priority.
|
|
*/
|
|
#ifdef IP_DEBUG
|
|
#define IPL2TP_SYSLOG_PRIORITY IPCOM_LOG_DEBUG
|
|
#else
|
|
#define IPL2TP_SYSLOG_PRIORITY IPCOM_LOG_WARNING
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/* Version */
|
|
#define IPL2TP_VERSION_NUM 160
|
|
#define IPL2TP_VERSION_STR "6.0.0"
|
|
#define IPL2TP_VERSION_API 4
|
|
|
|
/* Protocol version */
|
|
#define IPL2TP_PROTOCOL_VER 1
|
|
#define IPL2TP_PROTOCOL_REV 0
|
|
|
|
/* Host name */
|
|
#define IPL2TP_VENDOR_NAME "WindRiver"
|
|
#define IPL2TP_HOST_NAME "IPL2TP"
|
|
|
|
/* Default receive window size */
|
|
#define IPL2TP_RECEIVE_WINDOW_SIZE 4
|
|
|
|
/* Max no of retransmissions */
|
|
#define IPL2TP_MAX_RETRANSMIT 5
|
|
|
|
/* Seconds until first retransmission */
|
|
#define IPL2TP_FIRST_RETRANSMIT_SEC 1
|
|
|
|
/* Max seconds between retransmissions */
|
|
#define IPL2TP_MAX_BACKOFF_SEC 8
|
|
|
|
/* Seconds to keep a tunnel after StopCCN is received */
|
|
#define IPL2TP_TUNNEL_ZOMBIE_SEC 32
|
|
|
|
/* Seconds between HELLO messages */
|
|
#define IPL2TP_HELLO_INTERVAL_SEC 60
|
|
|
|
/* Seconds between HELLO ticks (resolution of HELLO transmission) */
|
|
#define IPL2TP_HELLO_TICK_SEC 10
|
|
|
|
/* Tunnel establishment timeout */
|
|
#define IPL2TP_ESTABLISH_TIMEOUT_SEC 60
|
|
|
|
/* Force a single session per tunnel */
|
|
#define IPL2TP_OPEN_EXCLUSIVE IPL2TP_MIB_NO
|
|
|
|
/* Run-time log level */
|
|
#define IPL2TP_RUNTIME_LOGLEVEL IPL2TP_LOGLEVEL_ALL
|
|
|
|
/* Max size of control message sent by us */
|
|
#define IPL2TP_MAX_MESSAGE_SIZE 2048
|
|
|
|
/* Max size of error message */
|
|
#define IPL2TP_MAX_ERROR_MESSAGE_SIZE 256
|
|
|
|
/* Min and max length of CHAP challenges */
|
|
#define IPL2TP_MIN_CHALLENGE_LENGTH 16
|
|
#define IPL2TP_MAX_CHALLENGE_LENGTH 16
|
|
|
|
/* Max size of host name */
|
|
#define IPL2TP_MAX_HOST_NAME_SIZE 64
|
|
|
|
/* Max size of fixed AVP value */
|
|
#define IPL2TP_MAX_AVP_VALUE_SIZE (32 - 6) /* 'call errors' is 32 octets */
|
|
|
|
/* Size of sent data headers */
|
|
#define IPL2TP_DATA_HEADER_SIZE 12
|
|
#define IPL2TP_MISALIGNED_DATA_HEADER_SIZE 14
|
|
|
|
/* No of preallocated descriptors */
|
|
#define IPL2TP_PREALLOCATED_TUNNEL_NO 100
|
|
#define IPL2TP_PREALLOCATED_SESSION_NO 100
|
|
|
|
/* Max numbers */
|
|
#define IPL2TP_TUNNEL_MAX 8192
|
|
#define IPL2TP_SESSION_MAX 8192
|
|
|
|
/* Initial size of attribute pool */
|
|
#define IPL2TP_ATTRPOOL_SIZE 8
|
|
|
|
/* Max attribute type in an AVP */
|
|
#define IPL2TP_AVP_MAX 75
|
|
|
|
/* Number of in-sequence out of window data messages before we reset
|
|
* the sequence counter */
|
|
#define IPL2TP_L2_OUT_OF_ORDER_RESET 10
|
|
|
|
/* Use mutex */
|
|
#define IPL2TP_USE_MUTEX 1
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|
|
|
|
#endif
|