original files of m241

This commit is contained in:
neelimap
2026-07-30 11:19:44 +05:30
parent 170c2b3f3a
commit afc7070c1f
12254 changed files with 7655111 additions and 0 deletions
@@ -0,0 +1,28 @@
/* 00comp_net_mib2_all.cdf - Component configuration file */
/* Copyright 1984 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01g,13sep10,h_x CQ: WIND00141200
01f,12apr02,zhr migrated to ipnet
01g,11oct02,ham added INIT_RTN (SPR 83041).
01f,01oct02,ham ported from AE.
01e,07may01,ham fixed initialization misorder (SPR #66853).
01d,04jun00,pad Addition of PREF_DOMAIN attribute
01c,17mar00,ham revised.
01b,14jan00,ham added missing stuffs.
01a,05may99,cym re-organized.
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_ALL {
NAME All MIB2 IPv4 Management Components
SYNOPSIS Includes all MIB2 IPv4 management components.
HDR_FILES m2Lib.h
INIT_RTN m2LibInit();
MODULES m2Lib.o
}
#endif
@@ -0,0 +1,25 @@
/* 00comp_net_mib2_icmp.cdf - Component configuration file */
/* Copyright 2001 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01e,13sep10,h_x CQ: WIND00141200
01e,12apr02,zhr Migrated to ipnet
01d,13may03,ppp removed inclusion of adv_net.h
01c,01oct02,ham updated NAME
01b,14jul02,ann ported to t22
01a,18Jun01,ism created based on Synth CDF
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_ICMP
{
NAME MIB2 ICMP Management APIs
SYNOPSIS MIB2 Variables for ICMP
INIT_RTN m2IcmpInit ();
MODULES m2IcmpLib.o
}
#endif
@@ -0,0 +1,58 @@
/* 00comp_mib2_if.cdf - Component configuration file */
/* Copyright 1984 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01n,13sep10,h_x CQ: WIND00141200
01m,12apr02,zhr Migrated to ipnet
01l,19sep04,spm updated virtual stack startup: restored use of published
init routine and removed packing/unpacking parameters
01k,12sep03,vvv updated configlette path
01j,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01i,13may03,ppp removed inclusion of adv_net.h
01h,01may03,spm added parameter from Tornado 2.2 CP1 merge
01g,01oct02,ham updated NAME
01f,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01e,07may01,ham fixed initialization misorder (SPR #66853).
01d,04jun00,pad Addition of PREF_DOMAIN attribute
01c,17apr00,ham revised.
01b,14jan00,ham added missing stuffs.
01a,05may99,cym re-organized.
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_IF {
NAME MIB2 IF Counter Instrumentation
SYNOPSIS MIB2 Variables for Interface Layer
CONFIGLETTES usrNetM2ifLib.c
INIT_RTN usrNetM2IfStart ();
MODULES m2IfLib.o
CFG_PARAMS MIB2IF_TRAP_RTN \
MIB2IF_TRAP_ARG \
MIB2IF_LONG_COUNTERS
}
Parameter MIB2IF_TRAP_RTN {
NAME Pointer to user trap generator
SYNOPSIS Pointer to a user-supplied SNMP trap generator
TYPE FUNCPTR
DEFAULT NULL
}
Parameter MIB2IF_TRAP_ARG {
NAME Pointer to user trap generator argument
SYNOPSIS Pointer to a user-supplied SNMP trap generator argument
TYPE int
DEFAULT NULL
}
Parameter MIB2IF_LONG_COUNTERS {
NAME Configuration setting for RFC 2233 statistics
SYNOPSIS Enable or disable 64-bit counters from RFC 2233
TYPE BOOL
DEFAULT FALSE
}
#endif
@@ -0,0 +1,27 @@
/* 00comp_mib2_ifmgt.cdf - Component configuration file */
/* Copyright 1984 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01e,12jan11,h_x Fix WIND00249267
01d,13sep10,h_x CQ: WIND00141200
01c,12apr02,zhr Migrated to ipnet
01b,13may03,ppp removed inclusion of adv_net.h
01a,25sep02,ham wrote.
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_IFMGT {
NAME MIB2 IF Management APIs
SYNOPSIS MIB2 IF Management APIs
INIT_RTN m2IfMgtLibInit ();
MODULES m2IfMgtLib.o
#if defined(_WRS_CONFIG_COMPONENT_SNMP)
REQUIRES INCLUDE_WINDMANAGE_SNMP_CORE
#endif
}
#endif
@@ -0,0 +1,38 @@
/* 00comp_net_mib2_ip.cdf - Component configuration file */
/* Copyright 2001 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01i,13sep10,h_x CQ: WIND00141200
01h,12apr02,zhr Migrated to ipnet
01g,19sep04,spm updated virtual stack startup: restored use of published
init routine and removed packing/unpacking parameters
01f,12sep03,vvv updated configlette path
01e,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01d,13may03,ppp removed inclusion of adv_net.h
01c,01oct02,ham updated NAME
01b,14jul02,ann ported to t22
01a,18jun02,ism created based on Synth CDF
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_IP
{
NAME MIB2 IP Management APIs
SYNOPSIS MIB2 Variables for IP
CONFIGLETTES usrNetM2ipLib.c
INIT_RTN usrNetM2IpStart ();
CFG_PARAMS MIB2IP_MAX_ROUTE_TBL_SIZE
MODULES m2IpLib.o
}
Parameter MIB2IP_MAX_ROUTE_TBL_SIZE {
NAME Max size of routing table [obsolete]
SYNOPSIS Default size of the MIB-II route table cache
TYPE int
DEFAULT 0
}
#endif
@@ -0,0 +1,71 @@
/* 00comp_net_mib2_sys.cdf - Component configuration file */
/* Copyright 2001 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01j,13sep10,h_x CQ: WIND00141200
01i,12apr02,zhr Migrated to ipnet
01h,19sep04,spm updated virtual stack startup: restored use of published
init routine and removed packing/unpacking parameters
01g,28apr04,vvv modified object id parameters (SPR #94509)
01f,12sep03,vvv updated configlette path
01e,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01d,07jul03,vvv fixed typo in component NAME field
01c,13may03,ppp removed inclusion of adv_net.h
01b,01oct02,ham updated NAME
01a,18jun02,ism created based on Synth CDF
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_SYSTEM
{
NAME MIB2 SYSTEM Management APIs
SYNOPSIS MIB2 variables for the system group
CONFIGLETTES usrNetM2sysLib.c
INIT_RTN usrNetM2SysStart ();
CFG_PARAMS MIB2SYS_DESCR \
MIB2SYS_CONTACT \
MIB2SYS_LOCATION \
MIB2SYS_OID_LEN \
MIB2SYS_OID
MODULES m2SysLib.o
}
Parameter MIB2SYS_DESCR {
NAME Pointer to MIB-2 sysDescr
SYNOPSIS Pointer to MIB-2 sysDescr
TYPE string
DEFAULT "vxWorks-6.6 Target"
}
Parameter MIB2SYS_CONTACT {
NAME Pointer to MIB-2 sysContact
SYNOPSIS Pointer to MIB-2 sysContact
TYPE string
DEFAULT "Wind River System"
}
Parameter MIB2SYS_LOCATION {
NAME Pointer to MIB-2 sysLocation
SYNOPSIS Pointer to MIB-2 sysLocation
TYPE string
DEFAULT "350 Terry Fox Rd. 200 Ottawa"
}
Parameter MIB2SYS_OID_LEN {
NAME Length of MIB-2 ObjectId
SYNOPSIS Number of elements in MIB-2 ObjectId
TYPE int
DEFAULT 7
}
Parameter MIB2SYS_OID {
NAME MIB-2 ObjectId
SYNOPSIS MIB-2 ObjectId
TYPE int
DEFAULT { 1,3,6,1,2,1,1 }
}
#endif
@@ -0,0 +1,24 @@
/* 00comp_net_mib2_tcp.cdf - Component configuration file */
/* Copyright 2001 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01e,13sep10,h_x CQ: WIND00141200
01d,12apr02,zhr Migrated to ipnet
01c,13may03,ppp removed inclusion of adv_net.h
01b,01oct02,ham updated NAME
01a,18jun02,ism created based on Synth CDF
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_TCP
{
NAME MIB2 TCP Management APIs
SYNOPSIS MIB2 Variables for TCP
INIT_RTN m2TcpInit ();
MODULES m2TcpLib.o
}
#endif
@@ -0,0 +1,25 @@
/* 00comp_net_mib2_udp.cdf - Component configuration file */
/* Copyright 2001 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01e,13sep10,h_x CQ: WIND00141200
01d,12apr02,zhr Migrated to ipnet
01c,13may03,ppp removed inclusion of adv_net.h
01b,01oct02,ham updated NAME
01a,18jun02,ism created based on Synth CDF
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Component INCLUDE_MIB2_UDP
{
NAME MIB2 UDP Management APIs
SYNOPSIS MIB2 Variables for UDP
INIT_RTN m2UdpInit ();
MODULES m2UdpLib.o
}
#endif
@@ -0,0 +1,41 @@
/* 00folder_net_mib2.cdf - Folder configuration file */
/* Copyright 1984 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01j,13sep10,h_x CQ: WIND00141200
01i,01apr08,zhr Migrated to ipnet
01h,01jul04,rae add INCLUDE_IFINDEX (SPR #98870)
01g,18oct02,ann added the SNMP component into FOLDER_NET_MIB2
01f,01oct02,ham added SYSTEM, ALL and IPV6ALL.
01e,25sep02,ham added IFMGT
01d,18Jun02,ism Added IPv6 components
01c,26nov01,ham revised.
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
Folder FOLDER_NET_MIB2 {
NAME Network components for MIB2
_CHILDREN FOLDER_NET_L5_APPLICATIONS
CHILDREN INCLUDE_MIB2_IF \
INCLUDE_MIB2_IFMGT \
INCLUDE_MIB2_ALL \
INCLUDE_MIB2_IPV6ALL \
INCLUDE_MIB2_IP \
INCLUDE_MIB2_UDP \
INCLUDE_MIB2_TCP \
INCLUDE_MIB2_ICMP \
INCLUDE_MIB2_SYSTEM \
INCLUDE_MIB2_MLD \
INCLUDE_IFINDEX \
DEFAULTS INCLUDE_MIB2_IF \
INCLUDE_MIB2_IP \
INCLUDE_MIB2_UDP \
INCLUDE_MIB2_TCP \
INCLUDE_MIB2_ICMP \
INCLUDE_IFINDEX
}
#endif
@@ -0,0 +1,33 @@
/* 00init_usrnetmib2.cdf - InitGroup configuration file */
/* Copyright 2001 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01g,13sep10,h_x CQ: WIND00141200
01f,12apr08,zhr Migratied to ipnet
01e,09jul04,rae add INCLUDE_IFINDEX (SPR #98870)
01d,11oct02,ham added MIB2_ALL/MIB2_IPV6ALL (SPR 83041).
01c,01oct02,ham added SYSTEM.
01b,25sep02,ham added IFMGT.
01a,26nov01,ham wrote.
*/
#ifdef _WRS_CONFIG_COMPONENT_VXCOMPAT
InitGroup usrNetMib2Init {
NAME Initialize MIB2
SYNOPSIS Initialize MIB2
INIT_RTN usrNetMib2Init ();
INIT_ORDER INCLUDE_IFINDEX \
INCLUDE_MIB2_ALL \
INCLUDE_MIB2_IF \
INCLUDE_MIB2_IFMGT \
INCLUDE_MIB2_SYSTEM \
INCLUDE_MIB2_IP \
INCLUDE_MIB2_UDP \
INCLUDE_MIB2_TCP \
INCLUDE_MIB2_ICMP
}
#endif
@@ -0,0 +1,12 @@
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: common.vxconfig,v $ $Revision: 1.6 $
# $Source: /home/interpeak/CVSRoot/vxcompat/config/common.vxconfig,v $
# $Author: myakan $
# $State: Exp $ $Locker: $
#
# INTERPEAK_COPYRIGHT_STRING
#hidden option that enables VXCOMPAT
config SUPPORTS_VXCOMPAT
bool
default y
@@ -0,0 +1,79 @@
/* usrNetM2IfLib.c - Initialization routine for the MIB2_IF library */
/* Copyright 1992 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01j,13oct08,dlk Fix typo causing build error.
01i,09Oct08,zhr Fixed WIND00130141 compiler warning
01h,12may08,zhr Updated for GPP
01h,12apr02,zhr Migrated to ipnet
01g,30sep04,dlk Fix warning.
01f,19sep04,spm updated virtual stack startup: restored use of published
init routine and removed packing/unpacking parameters
01e,06nov03,rlm Ran batch header update for header re-org.
01d,26nov02,ism changed instance initialisation function
01c,04sep02,kal fixed bzero
01b,29aug02,ant added m2IfDestructor()
01a,28aug02,ant written
*/
/*
DESCRIPTION
This configlette contains the initialization routine for the
INCLUDE_MIB2_IF component.
NOMANUAL
*/
#include <m2Lib.h>
/* externs */
#ifdef VIRTUAL_STACK
VS_REG_ID m2IfRegistrationNum;
extern STATUS m2IfDestructor (VSNUM vsnum);
#endif /* VIRTUAL_STACK */
IMPORT int m2If64BitCounters;
#ifdef INCLUDE_MIB2_IFMGT
LOCAL STATUS usrNetM2IfInit (void)
{
return m2IfInit (MIB2IF_TRAP_RTN, MIB2IF_TRAP_ARG);
}
#endif
LOCAL STATUS usrNetM2IfStart (void)
{
#ifdef INCLUDE_MIB2_IFMGT
#ifdef VIRTUAL_STACK
VS_STATUS vsstat;
#endif
m2If64BitCounters = MIB2IF_LONG_COUNTERS;
#ifdef VIRTUAL_STACK
/*
* Register with vsmanager to allow the MIB2 Interface Layer
* to start in every virtual stack at the appropriate time.
*/
vsstat = vsComponentRegister (&m2IfRegistrationNum, "MIB2_IF",
VS_SC_ENABLED, VS_SC_NON_OPTIONAL,
usrNetM2IfInit, 0, NULL, m2IfDestructor);
return (vsstat == VS_OK ? OK : ERROR);
#else
/*
* When only one network stack exists, just
* start the MIB2 Interface Layer immediately.
*/
return usrNetM2IfInit (); /* MIB2 Variables for Interface Layer */
#endif
#else
return (OK);
#endif /* INCLUDE_MIB2_IFMGT */
}
@@ -0,0 +1,62 @@
/* usrNetM2IpLib.c - Initialization routine for the MIB2_IP library */
/* Copyright 1992 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01h,12apr02,zhr Migrated to ipnet
01g,20oct04,vvv fixed warning (SPR #102122)
01f,19sep04,spm updated virtual stack startup: restored use of published
init routine and removed packing/unpacking parameters
01e,06nov03,rlm Ran batch header update for header re-org.
01d,26nov02,ism changed instance initialisation function
01c,04sep02,kal use bzero()
01b,29aug02,ant added m2IpDestructor()
01a,28aug02,ant written
*/
/*
DESCRIPTION
This configlette contains the initialization routine for the
INCLUDE_MIB2_IP component.
NOMANUAL
*/
#include <m2Lib.h>
/* externs */
#ifdef VIRTUAL_STACK
VS_REG_ID m2IpRegistrationNum;
#endif /* VIRTUAL_STACK */
LOCAL STATUS usrNetM2IpInit (void);
LOCAL STATUS usrNetM2IpStart (void)
{
#ifdef VIRTUAL_STACK
/*
* Register with vsmanager to allow the MIB2 IP Layer
* to start in every virtual stack at the appropriate time.
*/
return (vsComponentRegister (&m2IpRegistrationNum, "MIB2_IP",
VS_SC_ENABLED, VS_SC_NON_OPTIONAL,
usrNetM2IpInit, 0, NULL, NULL));
#else
/*
* When only one network stack exists, just
* start the MIB2 IP Layer immediately.
*/
return (usrNetM2IpInit ());
#endif /* VIRTUAL_STACK */
}
LOCAL STATUS usrNetM2IpInit (void)
{
return m2IpInit (MIB2IP_MAX_ROUTE_TBL_SIZE);
}
@@ -0,0 +1,69 @@
/* usrNetM2SysLib.c - Initialization routine for the MIB2_SYSTEM library */
/* Copyright 1992 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01j,12apr02,zhr Migrated to ipnet
01i,29sep04,vvv fixed typo, compiler warnings (SPR #102073)
01h,19sep04,spm updated virtual stack startup: restored use of published
init routine and removed packing/unpacking parameters
01g,22jun04,niq Fix bug in passing a stack variable by reference
01f,28apr04,vvv fixed object id configuration (SPR #94509)
01e,06nov03,rlm Ran batch header update for header re-org.
01d,26nov02,ism changed instance initialisation function
01c,04sep02,kal use bzero()
01b,29aug02,ant added m2SysDestructor()
01a,28aug02,ant written
*/
/*
DESCRIPTION
This configlette contains the initialization routine for the
INCLUDE_MIB2_SYSTEM component.
NOMANUAL
*/
#include <m2Lib.h>
/* externs */
#ifdef VIRTUAL_STACK
VS_REG_ID m2SysRegistrationNum;
extern STATUS m2SysDestructor (VSNUM vsnum);
#endif /* VIRTUAL_STACK */
LOCAL STATUS usrNetM2SysInit (void);
LOCAL STATUS usrNetM2SysStart (void)
{
#ifdef VIRTUAL_STACK
/*
* Register with vsmanager to allow the MIB2 System group
* to start in every virtual stack at the appropriate time.
*/
vsComponentRegister (&m2SysRegistrationNum, "MIB2_SYS",
VS_SC_ENABLED, VS_SC_NON_OPTIONAL,
usrNetM2SysInit, 0, NULL, m2SysDestructor);
#else
/*
* When only one network stack exists, just
* start the MIB2 System group immediately.
*/
usrNetM2SysInit ();
#endif /* VIRTUAL_STACK */
return (OK);
}
LOCAL STATUS usrNetM2SysInit (void)
{
static M2_OBJECTID sysObjId = { MIB2SYS_OID_LEN, MIB2SYS_OID };
return (m2SysInit (MIB2SYS_DESCR, MIB2SYS_CONTACT, MIB2SYS_LOCATION,
&sysObjId));
}
@@ -0,0 +1,72 @@
/*
******************************************************************************
* VXCOMPAT_CONFIG.H
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: vxcompat_config.h,v $ $Revision: 1.1 $
* $Source: /home/interpeak/CVSRoot/vxcompat/config/vxcompat_config.h,v $
* $Author: braghava $ $Date: 2008-05-26 09:17:15 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Balaji Raghavan <braghava@windriver.com>
******************************************************************************
*/
#ifndef VXCOMPAT_CONFIG_H
#define VXCOMPAT_CONFIG_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*
* Configuration for VXCOMPAT. Parameters that are macros can only be changed
* before compiling, variables can be changed before compiling and linking.
*/
/*
****************************************************************************
* 2 INCLUDE FILES
****************************************************************************
*/
#include <ipcom_config.h>
#include <ipcom_type.h>
#include <ipcom_cstyle.h>
#include <ipcom_sysvar.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 3 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 4 CONFIGURATION
****************************************************************************
*/
#ifdef __cplusplus
}
#endif
#endif /* VXCOMPAT_CONFIG_H */
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/