111 lines
3.4 KiB
C
111 lines
3.4 KiB
C
/* ipmip4.h - ipmip4.h */
|
|
/*
|
|
******************************************************************************
|
|
* HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip4.h,v $ $Revision: 1.19 $
|
|
* $Source: /home/interpeak/CVSRoot/ipmip4/include/ipmip4.h,v $
|
|
* $Author: jhorteli $ $Date: 2010-10-15 11:27:57 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IPMIP4_H
|
|
#define IPMIP4_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
/*
|
|
DESCRIPTION
|
|
|
|
Base IPMIP4 defines. Flags, syslog and types used globally in the MIPv4
|
|
submodule.
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 CONFIGURATION
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include "ipmip4_config.h"
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#define IPMIP4_RELEASE 60701
|
|
|
|
#define IPMIP4_PORT 434
|
|
|
|
|
|
#define IPMIP4_TUNNELMODE_REVERSE (1 << 0)
|
|
#define IPMIP4_TUNNELMODE_NAT_T_REQUESTED (1 << 1)
|
|
#define IPMIP4_TUNNELMODE_NAT_T_RECEIVED (1 << 2)
|
|
#define IPMIP4_TUNNELMODE_NAT_T_UNRESOLVED (1 << 3)
|
|
#define IPMIP4_TUNNELMODE_REVOCATION_REQUESTED (1 << 4)
|
|
#define IPMIP4_TUNNELMODE_REVOCATION_RECEIVED (1 << 5)
|
|
#define IPMIP4_TUNNELMODE_REVOCATION_INFORM (1 << 6)
|
|
#define IPMIP4_TUNNELMODE_PROXY_BINDING (1 << 7)
|
|
|
|
#define IPMIP4_TUNNELMODE_NAT_T_CONFIRMED (IPMIP4_TUNNELMODE_NAT_T_REQUESTED|IPMIP4_TUNNELMODE_NAT_T_RECEIVED)
|
|
#define IPMIP4_TUNNELMODE_REVOCATION_CONFIRMED (IPMIP4_TUNNELMODE_REVOCATION_REQUESTED|IPMIP4_TUNNELMODE_REVOCATION_RECEIVED)
|
|
|
|
#define IPMIP4_JAN_1970 2208988800UL
|
|
|
|
#define IPMIP4_RETCODE_CONTINUE (0)
|
|
#define IPMIP4_RETCODE_SKIPPED (1)
|
|
#define IPMIP4_RETCODE_PENDING (2)
|
|
|
|
/* Syslog priority and facility */
|
|
#ifdef IPCOM_SYSLOG_PRIORITY
|
|
#undef IPCOM_SYSLOG_PRIORITY
|
|
#endif
|
|
#define IPCOM_SYSLOG_PRIORITY IPMIP4_SYSTEM_PRIORITY
|
|
#ifdef IPCOM_SYSLOG_FACILITY
|
|
#undef IPCOM_SYSLOG_FACILITY
|
|
#endif
|
|
#define IPCOM_SYSLOG_FACILITY IPCOM_LOG_IPMIP
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 TYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|