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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ospf_mib_stub.c

?? vxworks下ospf協(xié)議棧
?? C
?? 第 1 頁 / 共 5 頁
字號:
* ospfEnvoy_setNbr - generic set function for ospfNbrTable** This routine is a generic set function for ospfNbrTable. It invokes by testproc and* setproc to test and set objects in varbinds.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfEnvoy_setNbr( 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 != ospfNbrEntry_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.     */    rc = ospf_envoy_buildSetReq( tcount, tlist, pktp, vbp, pEnvoyReq, &request, reqType,                                 ospfMapiNbr_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to OSPF MIB API for processing */    rc = ospfMapiSetNbr( &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.                 */                ospfMapiSetNbr( &request, MAPI_UNDO );                setproc_error( pktp, group_vbp, mApi2EnvoyErrorGet( request.error));            }        }        /* tell MIB API we have completed the transaction */        ospfMapiSetNbr( &request, MAPI_COMPLETE );        return;    }    if ( reqType == MAPI_TEST )    {        /* stash the looked up information here for the setproc. Although Envoy         * provide vb_priv in each varbind, only stash it to the first varbind.         * MIB API only allow one cookie per request, and we only need one anyhow         */        vbp->vb_priv = (void *)request.pReqCookie;    }    /* tell MIB API we have completed the transaction */    if ( reqType == MAPI_COMMIT )        ospfMapiSetNbr( &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_getVirtNbr - generic get routine for ospfVirtNbrTable** This is the generic get routine for ospfVirtNbrTable. 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_getVirtNbr( 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,                                 ospfMapiVirtNbr_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to MIB API */    rc = ospfMapiGetVirtNbr( &request, reqType );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        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,                               ospfMapiVirtNbr_OID_OFFSET );    ospf_envoy_clearBuffer( pEnvoyReq );    return;}/***************************************************************************************** ospfEnvoy_getExtLsdb - generic get routine for ospfExtLsdbTable** This is the generic get routine for ospfExtLsdbTable. 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_getExtLsdb( 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;    /* the ospfEnvoy_build_getRequest() expects the buffer for the octet string to     * be allocated by the caller. Loop through the varbinds and determine if     * there is an object whose type is octet string.     */    rc = OK;    for (group_vbp = vbp; group_vbp != NULL; group_vbp = group_vbp->vb_link )    {        if ( (group_vbp->vb_ml.ml_leaf->expected_tag == VT_STRING) ||             (group_vbp->vb_ml.ml_leaf->expected_tag == VT_OPAQUE) )        {            /* for ospfExtLsdbTable, ospfExtLsdbAdvertisement is the only octet string             * object             */            if ( group_vbp->vb_ml.ml_last_match != LEAF_ospfExtLsdbAdvertisement )                continue;            pEnvoyReq->octetBufLen = SIZE_ospfExtLsdbAdvertisement;            pEnvoyReq->pOctetBuf = SNMP_memory_alloc( pEnvoyReq->octetBufLen );            if ( pEnvoyReq->pOctetBuf == NULL )            {                ospfEnvoyPrintf(("ospfEnvoy_getLsdb:memory alloc(%ld) failed\n",                                 pEnvoyReq->octetBufLen));                rc = ERROR;                break;            }            /* mark this buffer as dynamic */            pEnvoyReq->dynamic = TRUE;            break;  /* there can be only one octet string object in a row */        }    }    if ( rc == ERROR )    {        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* build the MIB API request message */    memset( (char *)&request, 0, sizeof(mApiRequest_t) );    rc = ospf_envoy_buildGetReq( tcount, tlist, vbp, pEnvoyReq, &request,                                 ospfMapiExtLsdb_OID_OFFSET );    if ( rc == ERROR )    {        /* free the allocated memory only if we have just allocated it in this          * transaction (i.e. pEnvoyReq->dynamic is set). It is necessary to         * determine if the buffer is allocated within the context of current          * transaction because the buffer pointed to by pEnvoyReq->pOctetBuf         * may have been allocated during a previous transaction and that buffer         * should only be freed by envoy snmp after the packet has been encoded          * (sometimes after getproc_got_string() is called). When the current         * transaction takes place, it is possible that the buffer pointed to by          * pEnvoyReq->pOctetBuf may not be null (i.e. envoy snmp has yet freed          * it). Therefore, we must make sure that we only free the memory that is         * allocated in this transaction, and that can be determined by checking         * the pEnvoyReq->dynamic boolean flag. This flag is cleared at the end         * of each transaction (by ospf_envoy_clearBuffer()) and it is only set         * if a buffer is allocated within the context of the current transaction.         */        if ( (pEnvoyReq->pOctetBuf != NULL) && (pEnvoyReq->dynamic == TRUE) )        {            SNMP_memory_free( pEnvoyReq->pOctetBuf );            pEnvoyReq->pOctetBuf = NULL;        }        ospf_envoy_clearBuffer( pEnvoyReq );        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to MIB API */    rc = ospfMapiGetExtLsdb( &request, reqType );    if ( rc == ERROR )    {        if ( (pEnvoyReq->pOctetBuf != NULL) && (pEnvoyReq->dynamic == TRUE) )        {            SNMP_memory_free( pEnvoyReq->pOctetBuf );            pEnvoyReq->pOctetBuf = NULL;        }        ospf_envoy_clearBuffer( pEnvoyReq );        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,                               ospfMapiExtLsdb_OID_OFFSET );    return;}/***************************************************************************************** ospfEnvoy_getAreaAggregate - generic get routine for ospfAreaAggregateTable** This is the generic get routine for ospfAreaAggregateTable. 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_getAreaAggregate( 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,                                 ospfMapiAreaAggregate_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to MIB API */    rc = ospfMapiGetAreaAggregate( &request, reqType );    if ( rc == ERROR )    {        ospf_envoy_clearBuffer( pEnvoyReq );        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,                               ospfMapiAreaAggregate_OID_OFFSET );    return;}/**************************************************************************************** ospfEnvoy_setAreaAggregate - generic set function for ospfAreaAggregateTable** This routine is a generic set function for ospfAreaAggregateTable. It invokes by* testproc and setproc to test and set objects in varbinds.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfEnvoy_setAreaAggregate( 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 != ospfAreaAggregateEntry_INSTANCE_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.     */    rc = ospf_envoy_buildSetReq( tcount, tlist, pktp, vbp, pEnvoyReq, &request, reqType,                                 ospfMapiAreaAggregate_OID_OFFSET );    if ( rc == ERROR )    {        ospf_envoy_setGenError( pktp, vbp, reqType );        return;    }    /* send the request to OSPF MIB API for processing */    rc = ospfMapiSetAreaAggregate( &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                

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品欧美久久久久一区二区| 日本一不卡视频| 三级欧美在线一区| 激情六月婷婷久久| www.欧美亚洲| 欧美精品v日韩精品v韩国精品v| 精品免费视频一区二区| 国产日本欧美一区二区| 亚洲精品视频在线看| 免费在线观看日韩欧美| a亚洲天堂av| 91精品欧美福利在线观看| 国产亚洲欧美色| 午夜私人影院久久久久| 国产精品77777竹菊影视小说| 91蜜桃视频在线| 日韩欧美123| 亚洲人快播电影网| 奇米在线7777在线精品| 97成人超碰视| 亚洲精品一区二区三区影院 | 乱一区二区av| 91女人视频在线观看| 日韩一区二区在线看| 亚洲欧美一区二区三区极速播放| 免费人成黄页网站在线一区二区| jizz一区二区| 久久久一区二区| 日韩电影网1区2区| 91视频免费观看| 精品福利一区二区三区| 亚洲一区二区成人在线观看| 国产乱理伦片在线观看夜一区| 欧美日韩国产一区| 成人欧美一区二区三区白人 | 精品少妇一区二区三区| 一区二区三区日韩| 国产精品亚洲午夜一区二区三区| 欧美日本国产一区| 亚洲女同ⅹxx女同tv| 国产酒店精品激情| 日韩免费观看高清完整版| 亚洲一二三区视频在线观看| 99久久99久久精品国产片果冻 | 国产成人8x视频一区二区| 日韩一级精品视频在线观看| 亚洲自拍偷拍网站| 91一区一区三区| 欧美韩国日本不卡| 国产综合色视频| 欧美一级高清片| 午夜精品福利一区二区三区av| 91在线视频观看| 国产日韩av一区| 国产精品夜夜嗨| 久久久久久**毛片大全| 麻豆久久久久久| 日韩色在线观看| 日韩在线卡一卡二| 欧美日韩国产成人在线免费| 一区二区三区精品| 91丨九色丨蝌蚪丨老版| 中文字幕一区二区在线观看| 成人美女视频在线观看18| 久久精品亚洲国产奇米99| 久久99精品久久久久久国产越南| 欧美一区二区三区在| 日日骚欧美日韩| 欧美一级欧美三级| 免费成人在线视频观看| 欧美一级黄色录像| 日本aⅴ精品一区二区三区| 7777精品伊人久久久大香线蕉最新版| 一区二区三区四区在线免费观看| 91黄色免费版| 亚洲国产欧美另类丝袜| 欧美日韩一区二区在线视频| 亚洲午夜视频在线| 欧美日韩精品欧美日韩精品| 午夜精品在线视频一区| 91精品综合久久久久久| 蜜桃一区二区三区在线| 欧美xxxx老人做受| 国精产品一区一区三区mba视频| 久久九九国产精品| 成人福利视频在线看| 中文字幕在线一区免费| 色婷婷精品大视频在线蜜桃视频| 亚洲精品中文字幕乱码三区 | 一区二区三区欧美久久| 欧美丝袜丝交足nylons| 日韩激情一区二区| 精品久久免费看| 国产不卡在线播放| 亚洲素人一区二区| 在线中文字幕一区| 奇米777欧美一区二区| 亚洲精品一区二区三区福利| 国产suv精品一区二区6| 中文字幕在线观看一区二区| 在线观看www91| 免费成人在线影院| 国产精品欧美久久久久无广告 | 一区二区视频在线| 欧美酷刑日本凌虐凌虐| 国内不卡的二区三区中文字幕| 国产精品国模大尺度视频| 欧美影视一区二区三区| 免费高清视频精品| 国产精品久久久久毛片软件| 欧美日韩一区三区四区| 国产一区二区三区电影在线观看| 亚洲男人的天堂网| 日韩视频一区在线观看| www.亚洲在线| 免费在线欧美视频| 国产精品对白交换视频| 欧美高清你懂得| 成人一级视频在线观看| 亚洲一区二区三区四区的 | 成人av在线播放网站| 亚洲国产精品一区二区www在线| 日韩精品一区二| 91视频观看视频| 激情文学综合网| 尤物视频一区二区| www亚洲一区| 在线观看免费成人| 东方aⅴ免费观看久久av| 午夜精品久久久久久久| 国产精品嫩草99a| 欧美一级黄色录像| 色成人在线视频| 国产成人精品免费一区二区| 日韩精品欧美成人高清一区二区| 国产精品网站在线观看| 日韩一区二区三区免费看| 97se亚洲国产综合自在线| 蜜臀av在线播放一区二区三区| 尤物视频一区二区| 国产日韩精品一区二区三区在线| 欧美日本一区二区在线观看| 99久久婷婷国产精品综合| 免费欧美日韩国产三级电影| 日韩精品一区在线| av中文字幕亚洲| 奇米色一区二区| 日韩午夜激情电影| 在线看日韩精品电影| 国产suv一区二区三区88区| 蜜臀精品一区二区三区在线观看| 一区二区三区四区在线| 国产精品久久久久一区二区三区 | 麻豆国产精品官网| 亚洲va欧美va人人爽午夜 | 欧美日韩午夜在线视频| 国产91色综合久久免费分享| 午夜激情综合网| 一区二区三区成人| 国产精品国产成人国产三级| 国产三级一区二区| 欧美成人欧美edvon| 3d动漫精品啪啪1区2区免费 | 日韩黄色免费电影| 亚洲永久精品国产| 亚洲免费观看高清| 国产精品久久久久久久岛一牛影视| 久久伊99综合婷婷久久伊| 欧美福利一区二区| 欧美四级电影网| 欧美自拍偷拍一区| 色老汉一区二区三区| 色久综合一二码| 欧美在线一二三四区| 色偷偷成人一区二区三区91| av激情亚洲男人天堂| av在线不卡网| 97se亚洲国产综合在线| 91欧美一区二区| 色94色欧美sute亚洲线路二| 色欧美88888久久久久久影院| 波多野结衣在线aⅴ中文字幕不卡 波多野结衣在线一区 | 国产自产高清不卡| 麻豆91精品91久久久的内涵| 免费在线观看不卡| 久久99精品网久久| 国产麻豆视频精品| 成人激情开心网| 本田岬高潮一区二区三区| 91亚洲男人天堂| 9久草视频在线视频精品| 色婷婷综合视频在线观看| 欧美专区日韩专区| 欧美精三区欧美精三区| 欧美一区二区三区四区在线观看 | 国产精品一区二区免费不卡| 国产精品99久| 99久久国产综合色|国产精品| 色婷婷av一区| 欧美群妇大交群中文字幕|