299 lines
9.6 KiB
C
299 lines
9.6 KiB
C
/* ipmip6_mib.h - ipmip6_mib.h */
|
|
/*
|
|
******************************************************************************
|
|
* HEADER FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip6_mib.h,v $ $Revision: 1.5 $
|
|
* $Source: /home/interpeak/CVSRoot/ipmip6/include/ipmip6_mib.h,v $
|
|
* $Author: jhorteli $ $Date: 2010-10-21 12:21:31 $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
|
|
******************************************************************************
|
|
*/
|
|
#ifndef IPMIP6_MIB_H
|
|
#define IPMIP6_MIB_H
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
/*
|
|
DESCRIPTION
|
|
|
|
MIB definitions for MIP6.
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 CONFIGURATION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
#define IPMIP6_MIB_mip6MnHomeAddressState_unknown (0)
|
|
#define IPMIP6_MIB_mip6MnHomeAddressState_home (1)
|
|
#define IPMIP6_MIB_mip6MnHomeAddressState_registered (2)
|
|
#define IPMIP6_MIB_mip6MnHomeAddressState_pending (3)
|
|
#define IPMIP6_MIB_mip6MnHomeAddressState_isolated (4)
|
|
|
|
#define IPMIP6_MIB_InetAddressType_unknown (0)
|
|
#define IPMIP6_MIB_InetAddressType_ipv4 (1)
|
|
#define IPMIP6_MIB_InetAddressType_ipv6 (2)
|
|
#define IPMIP6_MIB_InetAddressType_ipv4z (3)
|
|
#define IPMIP6_MIB_InetAddressType_ipv6z (4)
|
|
#define IPMIP6_MIB_InetAddressType_dns (5)
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 TYPES
|
|
****************************************************************************
|
|
*/
|
|
union Ipmip6_mib_InetAddress
|
|
{
|
|
struct Ip_in_addr ipv4;
|
|
struct Ip_in6_addr ipv6;
|
|
struct
|
|
{
|
|
struct Ip_in_addr ipv4;
|
|
Ip_u32 scope;
|
|
} ipv4z;
|
|
struct
|
|
{
|
|
struct Ip_in6_addr ipv6;
|
|
Ip_u32 scope;
|
|
} ipv6z;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6BindingCacheEntry
|
|
{
|
|
Ip_u32 mip6BindingHomeAddressType;
|
|
union Ipmip6_mib_InetAddress mip6BindingHomeAddress;
|
|
Ip_u32 mip6BindingCOAType;
|
|
union Ipmip6_mib_InetAddress mip6BindingCOA;
|
|
Ip_time_t mip6BindingTimeRegistered;
|
|
Ip_u32 mip6BindingTimeGranted;
|
|
Ip_u32 mip6BindingTimeRemaining;
|
|
Ip_bool mip6BindingHomeRegn;
|
|
Ip_u32 mip6BindingMaxSeq;
|
|
Ip_u32 mip6BindingUsageTS;
|
|
Ip_u32 mip6BindingUsageCount;
|
|
Ip_bool mip6BindingAdminStatus;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6BindingHistoryEntry
|
|
{
|
|
struct Ip_in6_addr mip6BindingHstHomeAddress;
|
|
Ip_u32 mip6BindingHstIndex;
|
|
struct Ip_in6_addr mip6BindingHstCOA;
|
|
Ip_u32 mip6BindingHstTimeRegistered;
|
|
Ip_u32 mip6BindingHstTimeExpired;
|
|
Ip_bool mip6BindingHstHomeRegn;
|
|
Ip_u32 mip6BindingHstUsageTS;
|
|
Ip_u32 mip6BindingHstUsageCount;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6TotalTraffic
|
|
{
|
|
Ip_u32 mip6InOctets;
|
|
Ip_u64 mip6HCInOctets;
|
|
Ip_u32 mip6InPkts;
|
|
Ip_u64 mip6HCInPkts;
|
|
Ip_u32 mip6OutOctets;
|
|
Ip_u64 mip6HCOutOctets;
|
|
Ip_u32 mip6OutPkts;
|
|
Ip_u64 mip6HCOutPkts;
|
|
Ip_u32 mip6CounterDiscontinuityTime;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6NodeTrafficEntry
|
|
{
|
|
Ip_u32 mip6NodeInOctets;
|
|
Ip_u64 mip6HCNodeInOctets;
|
|
Ip_u32 mip6NodeInPkts;
|
|
Ip_u64 mip6HCNodeInPkts;
|
|
Ip_u32 mip6NodeOutOctets;
|
|
Ip_u64 mip6HCNodeOutOctets;
|
|
Ip_u32 mip6NodeOutPkts;
|
|
Ip_u64 mip6HCNodeOutPkts;
|
|
Ip_u32 mip6NodeCtrDiscontinuityTime;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6MnHomeAddressEntry
|
|
{
|
|
struct Ip_in6_addr mip6MnHomeAddress;
|
|
Ip_u32 mip6MnHomeAddressState; /* 3 */
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6MnConf
|
|
{
|
|
Ip_u32 mip6MnDiscoveryRequests; /* 1 */
|
|
Ip_u32 mip6MnDiscoveryReplies; /* 2 */
|
|
Ip_u32 mip6MnDiscoveryTimeouts; /* 3 */
|
|
Ip_u32 mip6MnPrefixSolicitationsSent;
|
|
Ip_u32 mip6MnPrefixAdvsRecd; /* 5 */
|
|
Ip_u32 mip6MnPrefixAdvsIgnored; /* 6 */
|
|
Ip_u32 mip6MnMovedToFN; /* 7 */
|
|
Ip_u32 mip6MnMovedToHN; /* 8 */
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6MnBLTable
|
|
{
|
|
Ip_u32 mip6MnBLNodeAddressType;
|
|
union Ipmip6_mib_InetAddress mip6MnBLNodeAddress;
|
|
Ip_u32 mip6MnBLCOAType; /* HA */ /* CN */
|
|
union Ipmip6_mib_InetAddress mip6MnBLCOA; /* HA */ /* CN */
|
|
Ip_u32 mip6MnBLLifeTimeRequested; /* HA */ /* CN */
|
|
Ip_u32 mip6MnBLLifeTimeGranted; /* HA */ /* CN */
|
|
Ip_u32 mip6MnBLMaxSeq; /* HA */ /* CN */
|
|
Ip_time_t mip6MnBLTimeSent; /* HA */ /* CN */
|
|
Ip_bool mip6MnBLAccepted; /* HA */ /* CN */
|
|
Ip_time_t mip6MnBLAcceptedTime; /* HA */ /* CN */
|
|
Ip_u32 mip6MnBLRetransmissions; /* HA */ /* CN */
|
|
Ip_bool mip6MnBLDontSendBUFlag;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6MnRegnCounters
|
|
{
|
|
Ip_u32 mip6MnMobilityMessagesSent; /* 1 */
|
|
Ip_u32 mip6MnMobilityMessagesRecd; /* 2 */
|
|
Ip_u32 mip6MnBUsToHA; /* 3 */
|
|
Ip_u32 mip6MnBUAcksFromHA; /* 4 */
|
|
Ip_u32 mip6MnBUsToCN; /* 5 */
|
|
Ip_u32 mip6MnBUAcksFromCN; /* 6 */
|
|
Ip_u32 mip6MnBindingErrorsFromCN; /* 7 */
|
|
Ip_u32 mip6MnICMPErrorsRecd; /* 8 */
|
|
Ip_u32 mip6MnBRRequestsRecd; /* 9 */
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6CnGlobalStats
|
|
{
|
|
Ip_u32 mip6CnHomeTestInitsRecd;
|
|
Ip_u32 mip6CnHomeTestsSent;
|
|
Ip_u32 mip6CnCareOfTestInitsRecd;
|
|
Ip_u32 mip6CnCareOfTestsSent;
|
|
Ip_u32 mip6CnBUsRecd;
|
|
Ip_u32 mip6CnBUAcksSent;
|
|
Ip_u32 mip6CnBRsSent;
|
|
Ip_u32 mip6CnBindingErrors;
|
|
Ip_u32 mip6CnBUsAccepted;
|
|
Ip_u32 mip6CnBUsRejected;
|
|
Ip_u32 mip6CnReasonUnspecified;
|
|
Ip_u32 mip6CnInsufficientResource;
|
|
Ip_u32 mip6CnHomeRegnNotSupported;
|
|
Ip_u32 mip6CnSeqNumberOutOfWindow;
|
|
Ip_u32 mip6CnExpiredHomeNonceIndex;
|
|
Ip_u32 mip6CnExpiredCareOfNonceIndex;
|
|
Ip_u32 mip6CnExpiredNonce;
|
|
Ip_u32 mip6CnRegTypeChangeDisallowed;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6CnCounterEntry
|
|
{
|
|
Ip_u32 mip6CnBURequestsAccepted;
|
|
Ip_u32 mip6CnBURequestsRejected;
|
|
Ip_u32 mip6CnBCEntryCreationTime;
|
|
Ip_u32 mip6CnBUAcceptedTime;
|
|
Ip_u32 mip6CnBURejectionTime;
|
|
Ip_u32 mip6CnBURejectionCode;
|
|
Ip_u32 mip6CnCtrDiscontinuityTime;
|
|
};
|
|
|
|
|
|
struct Ipmip6_mib_mip6HaAdvertisement
|
|
{
|
|
Ip_u32 mip6HaAdvsRecd;
|
|
Ip_u32 mip6HaAdvsSent;
|
|
Ip_u32 mip6HaConfTable;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6HaConfEntry
|
|
{
|
|
Ip_u32 mip6HaAdvPreference;
|
|
Ip_u32 mip6HaAdvLifetime;
|
|
Ip_bool mip6HaPrefixAdv;
|
|
Ip_bool mip6HaPrefixSolicitation;
|
|
Ip_bool mip6HaMCastCtlMsgSupport;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6HaGlobalStats
|
|
{
|
|
Ip_u32 mip6HaHomeTestInitsRecd;
|
|
Ip_u32 mip6HaHomeTestsSent;
|
|
Ip_u32 mip6HaBUsRecd;
|
|
Ip_u32 mip6HaBUAcksSent;
|
|
Ip_u32 mip6HaBRAdviceSent;
|
|
Ip_u32 mip6HaBUsAccepted;
|
|
Ip_u32 mip6HaPrefDiscoverReqd;
|
|
Ip_u32 mip6HaReasonUnspecified;
|
|
Ip_u32 mip6HaAdmProhibited;
|
|
Ip_u32 mip6HaInsufficientResource;
|
|
Ip_u32 mip6HaHomeRegnNotSupported;
|
|
Ip_u32 mip6HaNotHomeSubnet;
|
|
Ip_u32 mip6HaNotHomeAgentForThisMN;
|
|
Ip_u32 mip6HaDupAddrDetectionFailed;
|
|
Ip_u32 mip6HaSeqNumberOutOfWindow;
|
|
Ip_u32 mip6HaExpiredHomeNonceIndex;
|
|
Ip_u32 mip6HaRegTypeChangeDisallowed;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6HaCounterEntry
|
|
{
|
|
Ip_u32 mip6HaBURequestsAccepted;
|
|
Ip_u32 mip6HaBURequestsDenied;
|
|
Ip_u32 mip6HaBCEntryCreationTime;
|
|
Ip_u32 mip6HaBUAcceptedTime;
|
|
Ip_u32 mip6HaBURejectionTime;
|
|
Ip_u32 mip6HaRecentBURejectionCode;
|
|
Ip_u32 mip6HaCtrDiscontinuityTime;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6HaListEntry
|
|
{
|
|
struct Ip_in6_addr mip6HaLinkLocalAddress;
|
|
Ip_u32 mip6HaPreference;
|
|
Ip_u32 mip6HaRecvLifeTime;
|
|
Ip_u32 mip6HaRecvTimeStamp;
|
|
};
|
|
|
|
struct Ipmip6_mib_mip6HaGlAddrEntry
|
|
{
|
|
Ip_u32 mip6HaGaAddrSeqNo;
|
|
struct Ip_in6_addr mip6HaGaGlobalAddress;
|
|
};
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|