original files of m241
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
/* ipmipfa.h - ipmipfa.h *//*
|
||||
******************************************************************************
|
||||
* INTERPEAK HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmipfa.h,v $ $Revision: 1.29 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipmipfa/include/ipmipfa.h,v $
|
||||
* $Author: jhorteli $ $Date: 2009-04-23 14:32:14 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Niklas Lundberg <n@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPMIPFA_H
|
||||
#define IPMIPFA_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
/*
|
||||
DESCRIPTION
|
||||
|
||||
No description currently provided
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_ipd.h>
|
||||
#include <ipcom_sock.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPMIPFA_RELEASE 60701
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
struct Ipmip4_context;
|
||||
struct Ipmip_proc;
|
||||
struct Ipmipfa_pktbuf;
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
@@ -0,0 +1,199 @@
|
||||
/* ipmipfa_attr.h - ipmipfa_attr.h */
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmipfa_attr.h,v $ $Revision: 1.9 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipmipfa/include/ipmipfa_attr.h,v $
|
||||
* $Author: jhorteli $ $Date: 2009-03-31 14:57:57 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPMIPFA_ATTR_H
|
||||
#define IPMIPFA_ATTR_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
/*
|
||||
DESCRIPTION
|
||||
|
||||
No description currently provided
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
#include <private/ipmip4_cli.h>
|
||||
|
||||
#include <ipmipfa_mib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
enum
|
||||
{
|
||||
IPMIPFA_CLI_BC_X_GET = IPMIP4_CLI_BASE,
|
||||
IPMIPFA_CLI_BC_X_LIST,
|
||||
IPMIPFA_CLI_BC_X_REVOKE,
|
||||
IPMIPFA_CLI_BC_X_DELETE,
|
||||
IPMIPFA_CLI_BC_X_L2_TRIGGER_ST,
|
||||
IPMIPFA_CLI_BC_X_L2_TRIGGER_TT,
|
||||
IPMIPFA_CLI_BC_X_L2_TRIGGER_LD,
|
||||
IPMIPFA_CLI_BC_X_L2_TRIGGER_LU,
|
||||
IPMIPFA_CLI_DAEMON_MUTE,
|
||||
IPMIPFA_CLI_DAEMON_START,
|
||||
IPMIPFA_CLI_DAEMON_STOP,
|
||||
IPMIPFA_CLI_DAEMON_REGISTRATION_COUNTERS,
|
||||
IPMIPFA_CLI_MAX
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
IPMIPFA_CLI_ATTR_NONE,
|
||||
IPMIPFA_CLI_ATTR_BC_X,
|
||||
IPMIPFA_CLI_ATTR_DAEMON_REGCOUNTER,
|
||||
IPMIPFA_CLI_ATTR_MAX
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
IPMIPFA_CLI_ATTR_BC_X_NONE,
|
||||
IPMIPFA_CLI_ATTR_BC_X_CREATION_TIME,
|
||||
IPMIPFA_CLI_ATTR_BC_X_LAST_UPDATED,
|
||||
IPMIPFA_CLI_ATTR_BC_X_HANDLE,
|
||||
IPMIPFA_CLI_ATTR_BC_X_HOA,
|
||||
IPMIPFA_CLI_ATTR_BC_X_HA,
|
||||
IPMIPFA_CLI_ATTR_BC_X_IFNAME,
|
||||
IPMIPFA_CLI_ATTR_BC_X_TIME_GRANTED,
|
||||
IPMIPFA_CLI_ATTR_BC_X_TIME_REMAINING,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REG_TYPE,
|
||||
IPMIPFA_CLI_ATTR_BC_X_TUNNEL_ENDPOINT,
|
||||
IPMIPFA_CLI_ATTR_BC_X_TUNNEL_TYPE,
|
||||
IPMIPFA_CLI_ATTR_BC_X_TUNNEL_FLAGS,
|
||||
IPMIPFA_CLI_ATTR_BC_X_NAI,
|
||||
IPMIPFA_CLI_ATTR_BC_X_LLADDR,
|
||||
IPMIPFA_CLI_ATTR_BC_X_SPI_MF,
|
||||
IPMIPFA_CLI_ATTR_BC_X_SPI_FH,
|
||||
IPMIPFA_CLI_ATTR_BC_X_SPI_AAA,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGIDHIGH,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGIDLOW,
|
||||
IPMIPFA_CLI_ATTR_BC_X_VISITOR_IP,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REG_FLAGS,
|
||||
IPMIPFA_CLI_ATTR_BC_X_STATS_RCV_OCTETS64,
|
||||
IPMIPFA_CLI_ATTR_BC_X_STATS_RCV_PKTS64,
|
||||
IPMIPFA_CLI_ATTR_BC_X_STATS_SND_OCTETS64,
|
||||
IPMIPFA_CLI_ATTR_BC_X_STATS_SND_PKTS64,
|
||||
IPMIPFA_CLI_ATTR_BC_X_LLA_NAME,
|
||||
IPMIPFA_CLI_ATTR_BC_X_MAX
|
||||
};
|
||||
|
||||
/* NODE registration types */
|
||||
enum
|
||||
{
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_NORMAL = 0,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_PENDING,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_PRE_L2_TT,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_PRE_L2_ST,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_PRE_L2_MT,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_POST_L2_TT,
|
||||
IPMIPFA_CLI_ATTR_BC_X_REGTYPE_POST_L2_ST
|
||||
};
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
extern const char *ipmipfa_attr_bc_x_regtype[];
|
||||
extern const char *ipmipfa_attr_bc_x_regshort[];
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* ipmipfa_attr_mib_faVisitorEntry - ipmipfa_attr_mib_faVisitorEntry
|
||||
*
|
||||
* Returns a NULL terminated array of visitor entries. The data
|
||||
* is dynamically allocated and must be freed by the caller.
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* None.
|
||||
*
|
||||
* RETURNS: Returns a NULL terminated array of visitor entries.
|
||||
*
|
||||
* ERRNO:
|
||||
*
|
||||
* \NOMANUAL
|
||||
*/
|
||||
IP_GLOBAL struct Ipmipfa_mib_faVisitorEntry ** ipmipfa_attr_mib_faVisitorEntry
|
||||
(
|
||||
void
|
||||
);
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* ipmipfa_attr_mib_RegistrationCounters - ipmipfa_attr_mib_RegistrationCounters
|
||||
*
|
||||
* Returns a dynamically allocated structure containing the registration
|
||||
* counters for the foreign agent. The memory is dynamically allocated
|
||||
*
|
||||
* and must be freed by the caller.
|
||||
*
|
||||
* Parameters:
|
||||
*
|
||||
* None.
|
||||
*
|
||||
* RETURNS: Returns the registration counter data.
|
||||
*
|
||||
* ERRNO:
|
||||
*
|
||||
* \NOMANUAL
|
||||
*/
|
||||
IP_GLOBAL struct Ipmipfa_mib_RegistrationCounters * ipmipfa_attr_mib_RegistrationCounters
|
||||
(
|
||||
void
|
||||
);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,116 @@
|
||||
/* ipmipfa_mib.h - ipmipfa_mib.h */
|
||||
/*
|
||||
******************************************************************************
|
||||
* HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmipfa_mib.h,v $ $Revision: 1.3 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipmipfa/include/ipmipfa_mib.h,v $
|
||||
* $Author: joel $ $Date: 2007-08-28 14:54:49 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPMIPFA_MIB_H
|
||||
#define IPMIPFA_MIB_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
/*
|
||||
DESCRIPTION
|
||||
|
||||
No description currently provided
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
struct Ipmipfa_mib_faCOAEntry
|
||||
{
|
||||
struct Ip_in_addr faSupportedCOA;
|
||||
Ip_s32 faCOAStatus;
|
||||
};
|
||||
|
||||
struct Ipmipfa_mib_faAdvertisement
|
||||
{
|
||||
Ip_bool faIsBusy;
|
||||
Ip_bool faRegistrationRequired;
|
||||
};
|
||||
|
||||
struct Ipmipfa_mib_faVisitorEntry
|
||||
{
|
||||
struct Ip_in_addr faVisitorIPAddress;
|
||||
struct Ip_in_addr faVisitorHomeAddress;
|
||||
struct Ip_in_addr faVisitorHomeAgentAddress;
|
||||
Ip_s32 faVisitorTimeGranted;
|
||||
Ip_u32 faVisitorTimeRemaining;
|
||||
Ip_u32 faVisitorRegFlags;
|
||||
Ip_s32 faVisitorRegIDLow;
|
||||
Ip_s32 faVisitorRegIDHigh;
|
||||
Ip_bool faVisitorRegIsAccepted;
|
||||
};
|
||||
|
||||
struct Ipmipfa_mib_RegistrationCounters
|
||||
{
|
||||
Ip_u32 faRegRequestsReceived;
|
||||
Ip_u32 faRegRequestsRelayed;
|
||||
Ip_u32 faReasonUnspecified;
|
||||
Ip_u32 faAdmProhibited;
|
||||
Ip_u32 faInsufficientResource;
|
||||
Ip_u32 faMNAuthenticationFailure;
|
||||
Ip_u32 faRegLifetimeTooLong;
|
||||
Ip_u32 faPoorlyFormedRequests;
|
||||
Ip_u32 faEncapsulationUnavailable;
|
||||
Ip_u32 faVJCompressionUnavailable;
|
||||
Ip_u32 faHAUnreachable;
|
||||
Ip_u32 faRegRepliesRecieved;
|
||||
Ip_u32 faRegRepliesRelayed;
|
||||
Ip_u32 faHAAuthenticationFailure;
|
||||
Ip_u32 faPoorlyFormedReplies;
|
||||
};
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user