148 lines
5.1 KiB
C
148 lines
5.1 KiB
C
/* ipmip4_mib.h - ipmip4_mib.h */
|
|
/*
|
|
******************************************************************************
|
|
* HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip4_mib.h,v $ $Revision: 1.5 $
|
|
* $Source: /home/interpeak/CVSRoot/ipmip4/include/ipmip4_mib.h,v $
|
|
* $Author: joel $ $Date: 2007-08-28 14:54:29 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IPMIP4_MIB_H
|
|
#define IPMIP4_MIB_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
* Base MIB implementation
|
|
*/
|
|
/*
|
|
DESCRIPTION
|
|
|
|
Base MIB implementation
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 CONFIGURATION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
#define IPMIP4_MIB_mipEntities_mobileNode (1)
|
|
#define IPMIP4_MIB_mipEntities_foreignAgent (1<<1)
|
|
#define IPMIP4_MIB_mipEntities_homeAgent (1<<2)
|
|
#define IPMIP4_MIB_mipEnable_enabled (1)
|
|
#define IPMIP4_MIB_mipEnable_disabled (2)
|
|
#define IPMIP4_MIB_mipEncapsulationSupported_ipInIp (1)
|
|
#define IPMIP4_MIB_mipEncapsulationSupported_gre (1<<1)
|
|
#define IPMIP4_MIB_mipEncapsulationSupported_minEnc (1<<2)
|
|
#define IPMIP4_MIB_mipEncapsulationSupported_other (1<<3)
|
|
#define IPMIP4_MIB_mipSecAlgorithmType_other (1)
|
|
#define IPMIP4_MIB_mipSecAlgorithmType_md5 (2)
|
|
#define IPMIP4_MIB_mipSecAlgorithmMode_other (1)
|
|
#define IPMIP4_MIB_mipSecAlgorithmMode_prefixSuffix (2)
|
|
#define IPMIP4_MIB_mipSecReplayMethod_other (1)
|
|
#define IPMIP4_MIB_mipSecReplayMethod_timestamps (2)
|
|
#define IPMIP4_MIB_mipSecReplayMethod_nonces (3)
|
|
#define IPMIP4_MIB_mipSecRecentViolationReason_noMobilitySecurityAssociation (1)
|
|
#define IPMIP4_MIB_mipSecRecentViolationReason_badAuthenticator (2)
|
|
#define IPMIP4_MIB_mipSecRecentViolationReason_badIdentifier (3)
|
|
#define IPMIP4_MIB_mipSecRecentViolationReason_badSPI (4)
|
|
#define IPMIP4_MIB_mipSecRecentViolationReason_missingSecurityExtension (5)
|
|
#define IPMIP4_MIB_mipSecRecentViolationReason_other (6)
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 TYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
struct Ipmip4_mib_mipSystem
|
|
{
|
|
Ip_u32 mipEntities; /* BITS */
|
|
Ip_s32 mipEnable;
|
|
Ip_u32 mipEncapsulationSupported; /* BITS */
|
|
};
|
|
|
|
struct Ipmip4_mib_mipSecAssocEntry
|
|
{
|
|
struct Ip_in_addr mipSecPeerAddress;
|
|
Ip_u32 mipSecSPI;
|
|
Ip_s32 mipSecAlgorithmType;
|
|
Ip_s32 mipSecAlgorithmMode;
|
|
Ip_u8 *mipSecKey;
|
|
Ip_s32 mipSecReplayMethod;
|
|
};
|
|
|
|
extern Ip_u32 mipSecTotalViolations;
|
|
|
|
struct Ipmip4_mib_mipSecViolationEntry
|
|
{
|
|
struct Ip_in_addr mipSecViolatorAddress;
|
|
Ip_u32 mipSecViolationCounter;
|
|
Ip_s32 mipSecRecentViolationSPI;
|
|
Ip_u32 mipSecRecentViolationTime;
|
|
Ip_s32 mipSecRecentViolationIDLow;
|
|
Ip_s32 mipSecRecentViolationIDHigh;
|
|
Ip_s32 mipSecRecentViolationReason;
|
|
};
|
|
|
|
struct Ipmip4_mib_maAdvConfigEntry
|
|
{
|
|
struct Ip_in_addr maInterfaceAddress;
|
|
Ip_s32 maAdvMaxRegLifetime;
|
|
Ip_bool maAdvPrefixLengthInclusion;
|
|
struct Ip_in_addr maAdvAddress;
|
|
Ip_s32 maAdvMaxInterval;
|
|
Ip_s32 maAdvMinInterval;
|
|
Ip_s32 maAdvMaxAdvLifetime;
|
|
Ip_bool maAdvResponseSolicitationOnly;
|
|
Ip_s32 maAdvStatus;
|
|
};
|
|
|
|
struct Ipmip4_mib_maAdvertisement
|
|
{
|
|
Ip_u32 maAdvertisementsSent;
|
|
Ip_u32 maAdvsSentForSolicitation;
|
|
Ip_u32 maSolicitationsReceived;
|
|
};
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|