226 lines
6.0 KiB
C
226 lines
6.0 KiB
C
/*
|
|
******************************************************************************
|
|
* INTERPEAK CONFIGURATION HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipppp_config.h,v $ $Revision: 1.28.10.3 $
|
|
* $Source: /home/interpeak/CVSRoot/ipppp/config/ipppp_config.h,v $
|
|
* $Author: hxu0 $ $Date: 2012-08-30 09:43:51 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IPPPP_CONFIG_H
|
|
#define IPPPP_CONFIG_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include <ipcom_config.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 GENERAL
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_SYSLOG_PRIORITY
|
|
*===========================================================================
|
|
* Initial PPP syslog system priority.
|
|
*/
|
|
#ifdef IP_DEBUG
|
|
#define IPPPP_SYSLOG_PRIORITY IPCOM_LOG_DEBUG
|
|
#else
|
|
#define IPPPP_SYSLOG_PRIORITY IPCOM_LOG_WARNING
|
|
#endif
|
|
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_AUTH_XXX
|
|
*===========================================================================
|
|
* Define for PPP Authentication PAP and/or CHAP support.
|
|
*/
|
|
#ifdef IPCOM_USE_AUTH
|
|
#define IPPPP_USE_AUTH_PAP
|
|
#ifdef IPCOM_USE_MD5
|
|
#define IPPPP_USE_AUTH_CHAP
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_RFC1877_XXX
|
|
*===========================================================================
|
|
* Define for PPP RFC1877 client/server support (Primary & secondary DNS/NBNS)
|
|
*/
|
|
#ifndef IPLITE
|
|
/*#define IPPPP_USE_RFC1877_SERVER*/
|
|
#define IPPPP_USE_RFC1877_CLIENT
|
|
#endif
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 PPPOE
|
|
****************************************************************************
|
|
*/
|
|
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_PPPOE
|
|
*===========================================================================
|
|
* Define to support PPPoE (in 'server' mode only)
|
|
*/
|
|
#define IPPPP_USE_PPPOE
|
|
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_PPPMP
|
|
*===========================================================================
|
|
* Define to support PPPMP
|
|
*/
|
|
#if defined(IP_PORT_VXWORKS) && (_WRS_CONFIG_IPPPP_MP)
|
|
#define IPPPP_USE_PPPMP
|
|
#else
|
|
/*
|
|
#define IPPPP_USE_PPPMP
|
|
*/
|
|
#endif
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_MAX_LINKS
|
|
*===========================================================================
|
|
* If PPPMP is not being used, this macro must always be set to 1.
|
|
*/
|
|
#if defined(IPPPP_USE_PPPMP)
|
|
|
|
/*
|
|
* Maximum bundle size
|
|
*/
|
|
#define IPPPP_MAX_LINKS 3
|
|
|
|
/*
|
|
* Maximum receive reconstructed unit
|
|
*/
|
|
#define IPPPP_PPPMP_MRRU_MAX 3000
|
|
|
|
/*
|
|
* Enable multilink fragment timer
|
|
* default timeout 20 seconds.
|
|
*/
|
|
/*
|
|
#define IPPPP_PPPMP_FRAGMENT_TIMER
|
|
#define IPPPP_PPPMP_TIMEOUT_LENGTH 20000
|
|
*/
|
|
|
|
#else /* not IPPPP_USE_PPPMP */
|
|
#define IPPPP_MAX_LINKS 1
|
|
#endif
|
|
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_VJCOMP
|
|
*===========================================================================
|
|
* Define to support Van Jacobson compression of TCP/IP headers
|
|
* (for TCP/IP only)
|
|
*/
|
|
/*
|
|
#ifdef IPCOM_USE_INET
|
|
#define IPPPP_USE_VJCOMP
|
|
#endif
|
|
*/
|
|
|
|
#ifdef IPPPP_USE_VJCOMP
|
|
/*
|
|
* Maximum number of simultaneous connections
|
|
* (see dicussion of MAX_STATES in rfc1144.c)
|
|
*/
|
|
#define IPPPP_VJCOMP_MAX_SLOTS 16
|
|
|
|
/*
|
|
* Allow slot ID to be compressed in VJC compressed
|
|
* packet? (0 means NO, 1 means OK)
|
|
*/
|
|
#define IPPPP_VJCOMP_COMP_SLOT_ID 0
|
|
#endif
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_PPPOE_USE_MD5
|
|
*===========================================================================
|
|
* Define if you want to use the PPPoE AC_Cookie to better protect vs DOS attacks.
|
|
*/
|
|
#if defined(IPPPP_USE_PPPOE) && !defined(IPLITE)
|
|
#define IPPPP_PPPOE_USE_MD5
|
|
#endif
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_PPPL2TP
|
|
*===========================================================================
|
|
* Define to support PPP over L2TPv2
|
|
*/
|
|
/*
|
|
#ifdef IPL2TP
|
|
#define IPPPP_USE_PPPL2TP
|
|
#endif
|
|
*/
|
|
|
|
/*
|
|
#ifdef IPPPP_USE_PPPL2TP
|
|
#define IPPPP_USE_PPPL2TP_LNS
|
|
#endif
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 DO NOT EDIT
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*===========================================================================
|
|
* IPPPP_USE_AUTH
|
|
*===========================================================================
|
|
* NO NOT EDIT!
|
|
*/
|
|
#if defined(IPPPP_USE_AUTH_PAP) || defined(IPPPP_USE_AUTH_CHAP)
|
|
#define IPPPP_USE_AUTH
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|