亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ospf_mib_stub.c

?? vxworks下ospf協議棧
?? C
?? 第 1 頁 / 共 5 頁
字號:
/****************************************************************************** ****************************************************************************** **** This file was automatically generated by Epilogue Technology's **** Emissary SNMP MIB Compiler, version 9.1. **** This file was generated using the -stub switch. **** **** This file contains stub function declarations to aid in building **** the agent MIB interface.  It creates all the MIB get, set, test, and **** next method routines that you will need to supply.  However, **** since it doesn't know your system, several things are left to you. **** Look for comments with `!!!' in them for places you're likely to want **** to change for your system.  Also, while the layout of the method **** routines is a commonly useful one, it will not fit all data structures **** and systems.  Look at this output as a guide to how to write your **** method routines; a guide that will, in most cases, significantly reduce **** the amount of typing you need to do. **** **** The code here assumes you've created a file called `mibleaf.h' with **** the -leaf option to the mibcompiler. **** **** YOU WILL PROBABLY MODIFY THIS FILE BUT BEWARE ACCIDENTALLY **** OVERWRITING IT BY REGENERATING IT WITH THE MIB COMPILER. **** **** Last build date: Thu Aug 16 16:04:19 2001 **** from files: ****  rfc1213.mib, rfc1850.mi2, rfc1850.ctl ****************************************************************************** ****************************************************************************** */#include <vxWorks.h> /* keeps the compiler happy when !(__OSPF_MIB__) */#if defined (__OSPF_MIB__)/* Envoy SNMP includes */#include <asn1conf.h>#include <asn1.h>#include <buffer.h>#include <mib.h>#include <localio.h>#include <snmpdefs.h>#include <snmp.h>#include <auxfuncs.h>/* vxWorks standard includes */#include <stdio.h>#include <stdlib.h>#include "semLib.h"#include "lstLib.h"/* ospf management interface includes */#include "ospf_mib_leaf.h"#include "mibApi.h"#include "ospf_mib_envoy_api.h"#undef ENVOY_DEBUG#ifdef ENVOY_DEBUG#include "sysLib.h"#include "taskLib.h"#endif /* ENVOY_DEBUG *//* this is the maximum number of objects in the OSPF-MIB */#define MAX_OSPF_MIB_OBJECTS  20#define ospfAreaEntry_INST_LEN                4#define ospfStubAreaEntry_INST_LEN            5#define ospfLsdbEntry_INST_LEN                13#define ospfHostEntry_INST_LEN                5#define ospfIfEntry_INST_LEN                  5#define ospfIfMetricEntry_INST_LEN            6#define ospfVirtIfEntry_INST_LEN              8#define ospfNbrEntry_INST_LEN                 5#define ospfVirtNbrEntry_INST_LEN             8#define ospfExtLsdbEntry_INSTANCE_LEN         9#define ospfAreaAggregateEntry_INSTANCE_LEN   13/* the following defines the offset into the Management Interface object identifer * locally defined by MIB API for OSPF MIB. Envoy SNMP defines the object identifier * on a per table basis in which the object identifier starts at 1 for each table * (see LEAF_ospfxxx defines in ospf_mib_rfc1850_leaf.h). MIB API, on the hand, defines * the object identifier on a per MIB basis (see mApiOspf_t enumeration values in * ospf_mib_rfc1850_mapihelper.h). Therefore, the following defines are necessary  in order * to overcome the descrepency between the two schemes. These OID offset will be added * to the value of the appropriate LEAF_ospfxxx when constructing the MIB API request * messages. */const int ospfMapiGenGrop_OID_OFFSET = 0;const int ospfMapiArea_OID_OFFSET = 14;const int ospfMapiStub_OID_OFFSET = 24;const int ospfMapiLsdb_OID_OFFSET = 29;const int ospfMapiHost_OID_OFFSET = 42;const int ospfMapiIf_OID_OFFSET = 47;const int ospfMapiIfMetric_OID_OFFSET = 67;const int ospfMapiVirtIf_OID_OFFSET = 72;const int ospfMapiNbr_OID_OFFSET = 83;const int ospfMapiVirtNbr_OID_OFFSET = 94;const int ospfMapiExtLsdb_OID_OFFSET = 102;const int ospfMapiAreaAggregate_OID_OFFSET = 109;/* external MIB API prototypes */IMPORT STATUS ospfMapiGetGenGroup(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetGenGroup(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiGetArea(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetArea(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiGetStub(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetStub(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiGetHost( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiSetHost( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiGetLsdb(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiGetIf(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetIf( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiGetIfMetric( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiSetIfMetric( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiGetVirtIf(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetVirtIf( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiGetNbr(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetNbr( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiGetVirtNbr( mApiRequest_t *pRequest, mApiReqType_t reqType );IMPORT STATUS ospfMapiGetExtLsdb(mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiGetAreaAggregate( mApiRequest_t *pRequest, mApiReqType_t reqType);IMPORT STATUS ospfMapiSetAreaAggregate( mApiRequest_t *pRequest, mApiReqType_t reqType);/* external global variables */IMPORT MIBNODE_T n_ospf;/* private data */LOCAL envoyRequest_t *pEnvoyReq;LOCAL int ospfEnvoyInitDone = FALSE;/**************************************************************************************** ospfEnvoy_init_check - check if ospf stub is initialized** This routine checks if the ospf stub has been initialized.** RETURNS: OK or ERROR** NOMANUAL*/LOCAL STATUS ospfEnvoy_init_check( SNMP_PKT_T *pktp, VB_T *vbp, mApiReqType_t reqType  ){    if ( ospfEnvoyInitDone == FALSE )    {        ospf_envoy_setGenError( pktp, vbp, reqType );        ospfEnvoyPrintf(("OSPF-Envoy interface not inited!\n"));        return ERROR;    }    return OK;}/***************************************************************************************** ospfEnvoy_getGeneralGroup - generic get routine for ospfGeneralGroup scalar objects** This is the generic get routine for ospfGeneralGroup scalar objects. It query the mib* api for the requested objects.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfEnvoy_getGeneralGroup( int tcount, OIDC_T *tlist, SNMP_PKT_T *pktp,                                      VB_T *vbp, mApiReqType_t reqType ){    mApiRequest_t  request;    STATUS         rc;    if ( ospfEnvoy_init_check( pktp, vbp, reqType ) == ERROR )        return;    /* build the MIB API request message */    memset( (char *)&request, 0, sizeof(mApiRequest_t) );    rc = ospf_envoy_buildGetReq( tcount, tlist, vbp, pEnvoyReq, &request,                                 ospfMapiGenGrop_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to MIB API */    rc = ospfMapiGetGenGroup( &request, reqType );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        for ( ; vbp ; vbp = vbp->vb_link )        {            if ( reqType == MAPI_GET_NEXT )                nextproc_no_next(pktp, vbp);            else                getproc_nosuchins(pktp, vbp);        }        return;    }    /* retrieve all the values from the request structure */    ospf_envoy_processScalarGetResp( vbp, pktp, pEnvoyReq, &request, reqType,                                    ospfMapiGenGrop_OID_OFFSET );    return;}/**************************************************************************************** ospfEnvoy_setGeneralGroup - generic set function for ospfGeneralGroup scalar objects** This routine is a generic set function for ospfGeneralGroup scalar objects. It* invokes by testproc and setproc to test and set objects in varbinds.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfEnvoy_setGeneralGroup( int tcount, OIDC_T *tlist, SNMP_PKT_T *pktp,                                      VB_T *vbp, mApiReqType_t reqType ){    mApiRequest_t  request;    VB_T           *group_vbp;    STATUS         rc;    if ( ospfEnvoy_init_check( pktp, vbp, reqType ) == ERROR )        return;    /* use the data provided by the varbinds directly. This eliminates the need     * to copy the data from varbinds to locally allocated buffer.     */    rc = ospf_envoy_buildSetReq( tcount, tlist, pktp, vbp, pEnvoyReq, &request, reqType,                                 (int)ospfMapiGenGrop_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to OSPF MIB API for processing */    rc = ospfMapiSetGenGroup( &request, reqType );    if ( rc == ERROR )    {        for (group_vbp = vbp; group_vbp != NULL; group_vbp = group_vbp->vb_link )        {            group_vbp->vb_priv = NULL;            if ( reqType == MAPI_TEST )                testproc_error( pktp, group_vbp, mApi2EnvoyErrorGet( request.error));            else            {                /* tell envoy to start the undo operation. Envoy should call the                 * undo routine immediately once the setproc_error indicates                 * the set process has failed.                 */                group_vbp->undoproc = ospfEnvoy_undo; /* our undo routine */                /* issue a fake undo request to mib api so that it can reset its                 * internal transaction counters.                 */                ospfMapiSetGenGroup( &request, MAPI_UNDO );                setproc_error( pktp, group_vbp, mApi2EnvoyErrorGet( request.error));            }        }        /* tell MIB API we have completed the transaction */        ospfMapiSetGenGroup( &request, MAPI_COMPLETE );        return;    }    /* tell MIB API we have completed the transaction */    if ( reqType == MAPI_COMMIT )        ospfMapiSetGenGroup( &request, MAPI_COMPLETE );    /* make the varbind as done and check for any exception in varbinds */    ospf_envoy_markVarbind( vbp, pktp, &request, reqType );    ospf_envoy_clearBuffer( pEnvoyReq );    return;}/***************************************************************************************** ospfEnvoy_getArea - generic get routine for ospfAreaTable** This is the generic get routine for ospfAreaTable. It query the mib api for the table* row in which the requested object instances can be found. The behavior of the mib api* is based on request type, either GET or GET_NEXT. If it is a GET_NEXT request, the* smallest instance that is larger than the given tcount/tlist will be returned.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfEnvoy_getArea( int tcount, OIDC_T *tlist, SNMP_PKT_T *pktp, VB_T *vbp,                              mApiReqType_t reqType ){    mApiRequest_t  request;    STATUS         rc;    if ( ospfEnvoy_init_check( pktp, vbp, reqType ) == ERROR )        return;    /* build the MIB API request message */    memset( (char *)&request, 0, sizeof(mApiRequest_t) );    rc = ospf_envoy_buildGetReq( tcount, tlist, vbp, pEnvoyReq, &request,                                 ospfMapiArea_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to MIB API */    rc = ospfMapiGetArea( &request, reqType );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        /* use the varbind pointer provided by envoy snmp directly. When we are done         * setting the flag in the varbind, the pointer will be pointed to null. Envoy         * SNMP will then know that all the varbinds have been processed.         */        ospf_envoy_processGetRespError( pktp, vbp, reqType, request.error );        return;    }    /* retrieve all the values from the request structure */    ospf_envoy_processGetResp( vbp, pktp, pEnvoyReq, &request, reqType,                               ospfMapiArea_OID_OFFSET );    return;}/**************************************************************************************** ospfEnvoy_setArea - generic set function for ospfAreaTable** This routine is a generic set function for ospfAreaTable. It invokes by testproc and* setproc to test and set objects in varbinds.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfEnvoy_setArea( int tcount, OIDC_T *tlist, SNMP_PKT_T *pktp, VB_T *vbp,                        mApiReqType_t reqType ){    mApiRequest_t request;    VB_T          *group_vbp;    STATUS        rc;    if ( tcount != ospfAreaEntry_INST_LEN )    {        ospf_envoy_setNoSuchNameError( pktp, vbp, reqType );        return;    }    if ( ospfEnvoy_init_check( pktp, vbp, reqType ) == ERROR )        return;    /* use the data provided by the varbinds directly. This eliminates the need     * to copy the data from varbinds to locally allocated buffer.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩黄色影视| 国产呦精品一区二区三区网站| jlzzjlzz欧美大全| 中文字幕精品综合| av电影在线观看一区| 一区二区三区鲁丝不卡| 精品视频资源站| 久久成人av少妇免费| 久久久99精品免费观看| 播五月开心婷婷综合| 玉米视频成人免费看| 欧美电影影音先锋| 国产一区二区免费视频| 中文字幕中文字幕中文字幕亚洲无线| av高清久久久| 蜜臀精品一区二区三区在线观看| 日韩美女主播在线视频一区二区三区 | 日本色综合中文字幕| 日韩精品资源二区在线| 成人avav影音| 天天免费综合色| 中文字幕不卡在线观看| 在线看国产一区二区| 久久精品国产免费看久久精品| 欧美激情一区三区| 欧美日韩在线不卡| 国产精品综合一区二区三区| 亚洲精品视频一区| 精品美女在线播放| 日本伦理一区二区| 精彩视频一区二区| 一区二区三区欧美久久| xvideos.蜜桃一区二区| 欧美在线观看视频一区二区| 久久 天天综合| 亚洲国产精品一区二区www在线| 精品av综合导航| 欧美影视一区二区三区| 国产成人av影院| 免费观看日韩av| 亚洲欧洲制服丝袜| 久久久国产精华| 欧美精品日韩精品| 在线视频国内一区二区| 国产乱码精品1区2区3区| 午夜精品福利一区二区蜜股av| 欧美激情一区二区| 日韩精品资源二区在线| 欧美剧在线免费观看网站| av综合在线播放| 国产精品夜夜嗨| 蜜臂av日日欢夜夜爽一区| 亚洲一区精品在线| 国产精品欧美久久久久一区二区| 日韩精品一区二区三区老鸭窝| 欧美撒尿777hd撒尿| 92精品国产成人观看免费| 国产精选一区二区三区| 久久成人精品无人区| 日本午夜精品视频在线观看| 亚洲成人你懂的| 一区二区三区在线播| 中文字幕在线观看不卡视频| 日韩精品一区在线观看| 日韩欧美一卡二卡| 欧美福利视频一区| 欧美日本在线播放| 欧美日韩一区二区不卡| 欧洲激情一区二区| 欧美在线观看18| 色婷婷久久99综合精品jk白丝| 成人av资源站| av毛片久久久久**hd| 99久久久久久99| 95精品视频在线| 色婷婷av一区二区三区软件| 日本精品一级二级| 色综合久久综合中文综合网| 一本久久综合亚洲鲁鲁五月天| av在线一区二区| 在线观看免费亚洲| 欧美亚洲另类激情小说| 欧美情侣在线播放| 日韩欧美在线综合网| 精品国产一区二区三区四区四| 欧美不卡一二三| 欧美经典一区二区| 综合激情成人伊人| 亚洲成人一区二区| 男男视频亚洲欧美| 国产一区二区三区美女| www.一区二区| 欧美影视一区在线| 日韩精品中文字幕在线不卡尤物 | 一区二区三区精品视频| 夜夜精品浪潮av一区二区三区| 亚洲国产精品自拍| 免播放器亚洲一区| 国产馆精品极品| 色综合久久66| 91精品国产综合久久精品性色 | 91福利小视频| 欧美精品乱码久久久久久按摩| 日韩小视频在线观看专区| 久久久久久免费| 亚洲老妇xxxxxx| 免费一级片91| 99在线精品视频| 欧美日韩国产综合一区二区 | www.色精品| 欧美日韩国产首页| 久久久久久久久伊人| 亚洲自拍与偷拍| 国产一区二区福利| 色综合久久综合网| 欧美精品一区二区不卡| 亚洲视频狠狠干| 麻豆精品视频在线观看| 99精品欧美一区二区三区综合在线| 欧美色涩在线第一页| 26uuu亚洲| 首页国产丝袜综合| 粉嫩蜜臀av国产精品网站| 777xxx欧美| 国产精品久久久久久久裸模| 日韩高清国产一区在线| 白白色 亚洲乱淫| 精品国产自在久精品国产| 亚洲综合免费观看高清完整版 | 中文字幕精品三区| 日韩av中文字幕一区二区三区| 成人毛片在线观看| 日韩欧美一级二级三级久久久| 亚洲乱码精品一二三四区日韩在线| 国产综合久久久久久鬼色 | 日韩免费看的电影| 亚洲精品成人精品456| 国产精品1区2区3区| 51精品视频一区二区三区| 亚洲欧美日韩一区| 国产成人无遮挡在线视频| 91精品国产综合久久国产大片| 亚洲久草在线视频| 99视频在线精品| 久久久精品免费观看| 麻豆国产精品官网| 欧美一二三四区在线| 亚洲不卡一区二区三区| 色吧成人激情小说| 国产精品久久久久久户外露出| 老司机精品视频线观看86| 欧美偷拍一区二区| 亚洲精品免费在线观看| 成人网在线播放| 国产亚洲精品aa午夜观看| 麻豆91在线观看| 欧美二区乱c少妇| 天天亚洲美女在线视频| 欧美日韩精品一二三区| 肉丝袜脚交视频一区二区| 色综合久久88色综合天天6| 亚洲精品久久久蜜桃| 色综合视频一区二区三区高清| 亚洲天堂av一区| 91同城在线观看| 亚洲激情校园春色| 在线亚洲一区二区| 亚洲综合色区另类av| 欧美三区在线视频| 丝袜诱惑亚洲看片| 91精品国产91久久久久久最新毛片| 五月天激情综合网| 日韩一区二区视频| 国产一区二区三区四区在线观看| 久久蜜桃av一区二区天堂 | 琪琪一区二区三区| 日韩一级视频免费观看在线| 理论片日本一区| 久久久久久久久岛国免费| 国产91精品入口| 亚洲欧洲中文日韩久久av乱码| 在线区一区二视频| 石原莉奈在线亚洲三区| 精品欧美一区二区在线观看 | 成人欧美一区二区三区视频网页| 成人avav影音| 亚洲在线视频免费观看| 欧美高清精品3d| 国模一区二区三区白浆| 亚洲成人精品在线观看| 3atv一区二区三区| 国内精品伊人久久久久av影院| 中文字幕免费一区| 在线亚洲+欧美+日本专区| 日韩高清电影一区| 中文字幕不卡的av| 欧美视频一区二区三区四区| 日本不卡一二三区黄网| 亚洲国产精品二十页| 欧美日韩一级视频|