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

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

?? ospf_mib_api.c

?? vxworks下ospf協議棧
?? C
?? 第 1 頁 / 共 5 頁
字號:
* NOMANUAL*/LOCAL void wrnOspf_mApi_areaIndexSet( void *pRow, mApiRequest_t *pRequest ){    mApiWrnOspfArea_t *pArea;    pArea = (mApiWrnOspfArea_t *)pRow;    /* wrnOspfAreaTable is indexed by wrnOspfAreaId */    ospf_mApi_ipAddr2IpIndex( pArea->wrnOspfAreaId, &pRequest->pInstance[0] );    pRequest->instanceLen = OSPF_AREA_INSTANCE_LEN;    return;}/**************************************************************************************** wrnOspf_mApi_lsdbIndexSet - set the index value for wrnOspfLsdbTable** This routine set the next index value for the request for the wrnOspfLsdbTable** RETURNS: OK or ERROR** NOMANUAL*/LOCAL void wrnOspf_mApi_lsdbIndexSet( void *pRow, mApiRequest_t *pRequest ){    mApiWrnOspfLsdb_t *pLsdb;    pLsdb = (mApiWrnOspfLsdb_t *)pRow;    /* wrnOspfLsdbTable is indexed by wrnOspfLsdbAreaId, wrnOspfLsdbType, wrnOspfLsdbLsid     * and wrnOspfLsdbRouterId     */    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLsdbAreaId, &pRequest->pInstance[0] );    pRequest->pInstance[4] = (int)pLsdb->wrnOspfLsdbType;    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLsdbLsid, &pRequest->pInstance[5] );    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLsdbRouterId, &pRequest->pInstance[9] );    pRequest->instanceLen = OSPF_LSDB_INSTANCE_LEN;    return;}/**************************************************************************************** wrnOspf_mApi_localLsdbIndexSet - set the index value wrnOspfLocalLsdbTable** This routine set the next index value for the request for the wrnOspfLocalLsdbTable** RETURNS: OK or ERROR** NOMANUAL*/LOCAL void wrnOspf_mApi_localLsdbIndexSet( void *pRow, mApiRequest_t *pRequest ){    mApiWrnOspfLocalLsdb_t *pLsdb;    pLsdb = (mApiWrnOspfLocalLsdb_t *)pRow;    /* wrnOspfLsdbTable is indexed by wrnOspfLocalLsdbAreaId, wrnOspfLocalLsdbIpAddress,     * wrnOspfLocalLsdbType, wrnOspfLocalLsdbLsid and wrnOspfLocalLsdbRouterId     */    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLocalLsdbAreaId, &pRequest->pInstance[0] );    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLocalLsdbIpAddress, &pRequest->pInstance[4] );    pRequest->pInstance[8] = (int)pLsdb->wrnOspfLocalLsdbType;    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLocalLsdbLsid, &pRequest->pInstance[9] );    ospf_mApi_ipAddr2IpIndex( pLsdb->wrnOspfLocalLsdbRouterId, &pRequest->pInstance[13] );    pRequest->instanceLen = OSPF_LOCAL_LSDB_INSTANCE_LEN;    return;}/**************************************************************************************** wrnOspf_mApi_extLsdbIndexSet - set the next index value for wrnOspfExtLsdbTable** This routine set the next index value for the request for the wrnOspfExtLsdbTable** RETURNS: OK or ERROR** NOMANUAL*/LOCAL void wrnOspf_mApi_extLsdbIndexSet( void *pRow, mApiRequest_t *pRequest ){    mApiWrnOspfExtLsdb_t *pExtLsdb;    pExtLsdb = (mApiWrnOspfExtLsdb_t *)pRow;    /* ospfExtLsdbTable is indexed by ospfExtLsdbType, ospfExtLsdbLsid and     * ospfExtLsdbRouterId     */    pRequest->pInstance[0] = (int)pExtLsdb->wrnOspfExtLsdbType;    ospf_mApi_ipAddr2IpIndex( pExtLsdb->wrnOspfExtLsdbLsid, &pRequest->pInstance[1] );    ospf_mApi_ipAddr2IpIndex( pExtLsdb->wrnOspfExtLsdbRouterId, &pRequest->pInstance[5] );    pRequest->instanceLen = OSPF_EXT_LSDB_INSTANCE_LEN;    return;}/***************************************************************************************** ospf_mApi_processSetReq - process the SNMP SET request** This routine process the SNMP SET request. Depends on the reqType, it calls the* ospf_mApi_setHelperRtn to validates, sets, or deletes a conceptual table row. If* the reqType is MAPI_COMMIT request, it also calls the ospf_mApi_dynConfigRtn to* dynamically reconfiguration the OSPF protocol** RETURNS: OK or ERROR** NOMANUAL*/LOCAL STATUS ospf_mApi_processSetReq( mApiRequest_t *pRequest, mApiReqType_t reqType,                                      ulong_t instanceLen,                                       MAPI_HELPER_SET_RTN ospf_mApi_setHelperRtn,                                      MAPI_HELPER_CONFIG_RTN ospf_mApi_dynConfigRtn ){    rsRequest_t    rsReqType;    STATUS         rc;    int            numObjects;    /* make sure MIB API is initialized */    OSPF_MAPI_INIT_CHECK();        /* asr: set the virtual stack context */    #if defined (VIRTUAL_STACK)        virtualStackNumTaskIdSet (ospf.ospf_vsid);    #endif /* VIRTUAL_STACK */    /* make sure the request message is valid */    if ( pRequest == NULL )    {        mApiOspfError(("ospf_mApi_processSetReq:invalid pRequest pointer.\n"));        return ERROR;    }    /* make sure the arguments in request message are valid */    if ( (pRequest->pInstance == NULL) || (pRequest->instanceLen != instanceLen) ||         (pRequest->numObjects == 0) || (pRequest->pObjectList == NULL) )    {        pRequest->error = (ushort_t)MAPI_GEN_ERROR;        pRequest->errorObjIndex = 0;        return ERROR;    }    /* validate SNMP transaction, make sure we are in the right state */    if ( ospf_mApi_setReqCnt( reqType ) == ERROR )    {         pRequest->error = (ushort_t)MAPI_GEN_ERROR;        pRequest->errorObjIndex = 0;        mApiOspfError(("ospf_mApi_processSetReq:Unexpected SNMP (%s) transaction!\n",                       mApiRequest[reqType]));        return ERROR;    }    /* MAPI_COMPLETE request is for hand-shaking only, indicate the end of previous     * TEST/SET/COMMIT/UNDO transaction     * TODO: we don't implement undo now, so just retruen ok if we received undo     *       request     */    if ( (reqType == MAPI_COMPLETE) || (reqType == MAPI_UNDO) )        return OK;    /* initialize global and local variables */    rc = OK;    pRequest->error = (ushort_t)MAPI_NO_ERROR;    pRequest->errorObjIndex = 0;        /* convert mib api request type to the row status request type */    rsReqType = ospf_mApi2rs_reqTypeGet( reqType );    if ( rsReqType == RS_ERROR_REQUEST )    {        pRequest->error = (ushort_t)MAPI_GEN_ERROR;        pRequest->errorObjIndex = 0;        return ERROR;    }    /* lock mib api mutex semaphore for exclusive access to mApiOspfClass_t */    semTake( thisMapi->semMapiMutex, WAIT_FOREVER );    /* explicitly intialize dynamic configuration variables */    thisMapi->dynamicConfig = FALSE;    thisMapi->dynamicDelete = FALSE;    /* remember the current request type we are processing */    thisMapi->currMapiReqType = reqType;        for ( numObjects = 0; numObjects < pRequest->numObjects; numObjects++ )    {        /* stash the current mib api object info that we are accessing so that we         * can directly access it in the rowStatus rowAccess routine.         */        thisMapi->pMapiCurrObj = &pRequest->pObjectList[numObjects];        /* Fixed SPR#85806 - set the currObjInProcess variable to the current object         * that is in processed         */        thisMapi->currObjInProcess = numObjects;        /* make sure the set helper routine is valid */        if ( ospf_mApi_setHelperRtn == NULL )        {            mApiOspfError(("ospf_mApi_processSetReq:%s Invalid helper set routine\n",                            mApiRequest[reqType]));            return ERROR;        }        /* let helper routine does the rest */        rc = ospf_mApi_setHelperRtn( pRequest, rsReqType );        if ( rc == ERROR )        {            thisMapi->pMapiCurrObj = NULL;            if ( reqType == MAPI_TEST )                thisMapi->mApiTestReqFailedCnt++;            else if (reqType == MAPI_COMMIT_FORCE )                thisMapi->mApiNvmSetReqFailedCnt++;            else                thisMapi->mApiCommitReqFailedCnt++;            semGive( thisMapi->semMapiMutex );            mApiOspfError(("ospf_mApi_processSetReq:%s failed\n", mApiRequest[reqType]));            return ERROR;        }    }    /* if we don't have to commit the request, return immediately */    if ( reqType == MAPI_TEST )    {        thisMapi->pMapiCurrObj = NULL;  /* reset 'em */        semGive( thisMapi->semMapiMutex );        return rc;    }    /* reconfigure OSPF with the changes required. This is done here (instead of     * the ospf_mApi_xxxHelperSet() routine) so that we can handle the reconfiguration     * for all varbinds at once. Effectively, we will reconfigure the row as a     * whole so to cause minimum disruption to the OSPF protocol.     */    if ( thisMapi->dynamicConfig == TRUE )     {        if ( (pRequest->pReqCookie != NULL) && (thisMapi->ospfProtoInit == TRUE) )        {            if ( ospf_mApi_dynConfigRtn != NULL )            {                rc = ospf_mApi_dynConfigRtn( pRequest );                if ( rc == ERROR )                {                    thisMapi->mApiDynConfigReqFailedCnt++;                    thisMapi->pMapiCurrObj = NULL;                    semGive( thisMapi->semMapiMutex );                    mApiOspfError(("ospf_mApi_processSetReq:dynConfig failed\n"));                    return ERROR;                }            }        }        if ( thisMapi->dynamicDelete == TRUE )        {            /* invoke the application provided delete callback routine so that the table              * row that has just been deleted from management database can also be removed              * from the nvram. It only makes sense to invoke the nvram callback routines              * only if the request is not the MAPI_NVRAM_SET             */            if ( (reqType == MAPI_COMMIT) && (thisMapi->nvramDelRtn != NULL) )            {                STATUS  err;                                /* notice that even if the nvram delete operation failed, we don't return                 * errro to the caller. The is because from the snmp point of view, we                 * have succeeded to perform the dynamic reconfiguration.                 */                err = thisMapi->nvramDelRtn( pRequest->pInstance, pRequest->instanceLen );                if ( err == ERROR )                {                    /* nvram delete failed, bail out. We don't return error to the caller                     * even if nvram delete failed simply because from the snmp point of                     * view, the dynamic configuration is succeeded.                     */                    mApiOspfError(("ospf_mApi_processSetReq:nvramDelRtn() failed\n"));                }            }        }        else        {            /* yahoo, dynamic configuration actually works! Invoke the application              * provided save routine to save all objects in this varbind to the nvram             */            if ( (reqType == MAPI_COMMIT) && (thisMapi->nvramSaveRtn != NULL) )            {                STATUS  err;                                for ( numObjects = 0; numObjects < pRequest->numObjects; numObjects++ )                {                    /* temporary stash the current mib api object info for convenience */                    thisMapi->pMapiCurrObj = &pRequest->pObjectList[numObjects];                    thisMapi->currObjInProcess = numObjects;                    err = thisMapi->nvramSaveRtn( pRequest->pInstance,                                                   pRequest->instanceLen,                                                  thisMapi->pMapiCurrObj->oidPrefixEnum,                                                  thisMapi->pMapiCurrObj->pValueBuf,                                                  thisMapi->pMapiCurrObj->valueLen );                    if ( err == ERROR )                    {                          /* nvram save failed, bail out. Although nvram save has failed,                         * we don't return error to caller because from the snmp point of                         * view, the dynamic reconfiguration iss succeeded.                         */                        mApiOspfPrintf(("ospf_mApi_processSetReq:nvramSaveRtn() failed\n"));                        break;                    }                }            }        }    }    thisMapi->pMapiCurrObj = NULL;  /* reset 'em */    semGive( thisMapi->semMapiMutex );    return rc;}/***************************************************************************************** ospf_mApi_processGetReq - process the SNMP SET request** This routine process the SNMP GET and GET_NEXT request. The avl tree search behavior* depends on the type reqType. For GET request, the avlSearch() will be called. For* GET_NEXT request, the avlMinimumGet() will be called if the successor is the first* instance in the table (i.e. pRequest->instanceLen = 0). Otherwise, avlSuccessorGet()* is invoked to retrieve the next instance. Using the instance retrieved from the avl* search, it then calls the ospf_mApi_indexSetRtn will also be called to correctly* set the next index values for the instance.** RETURNS: OK or ERROR** NOMANUAL*/LOCAL STATUS ospf_mApi_processGetReq( mApiRequest_t *pRequest, mApiReqType_t reqType,                                      ulong_t instanceLen,                                       mApiOspfAvlClass_t *pOspfAvlTree,                                      MAPI_HELPER_GET_RTN ospf_mApi_getHelperRtn,                                      MAPI_INDEX_SET_RTN ospf_mApi_indexSetRtn ){    void              *pRow;    GENERIC_ARGUMENT  key;    mApiObject_t      *pObject;    int               numObjects;    /* make sure MIB API is initialized */    OSPF_MAPI_INIT_CHECK();    /* asr: set the virtual stack context */    #if defined (VIRTUAL_STACK)        virtualStackNumTaskIdSet (ospf.ospf_vsid);    #endif /* VIRTUAL_STACK */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品高清亚洲| 91麻豆精品国产91久久久久久久久 | 欧美激情一区二区| 国产美女精品人人做人人爽| 久久精品视频一区| 99久久国产综合色|国产精品| 亚洲色图视频网站| 在线精品亚洲一区二区不卡| 亚瑟在线精品视频| 久久你懂得1024| 波多野结衣中文字幕一区| 一区二区三区四区中文字幕| 欧美久久久一区| 六月丁香婷婷色狠狠久久| 久久久久久久性| 一本色道久久加勒比精品| 视频一区二区中文字幕| 久久青草欧美一区二区三区| 91在线视频在线| 日韩和欧美一区二区三区| 久久久99精品久久| 欧亚一区二区三区| 国产最新精品免费| 亚洲美女淫视频| 日韩视频免费观看高清完整版 | 99综合电影在线视频| 亚洲综合色视频| 久久午夜老司机| 日本韩国精品一区二区在线观看| 日韩国产欧美三级| 国产精品不卡一区二区三区| 日韩一区和二区| 91在线视频免费91| 久久99精品久久久久婷婷| 成人免费在线视频观看| 69堂精品视频| yourporn久久国产精品| 蜜桃一区二区三区在线观看| 亚洲女子a中天字幕| 久久毛片高清国产| 欧美日韩精品一区视频| 成人精品国产福利| 久久电影国产免费久久电影| 亚洲精品欧美在线| 国产日韩精品一区二区三区| 欧美一区二区三区在线电影| 99精品视频在线观看| 激情小说欧美图片| 午夜a成v人精品| 亚洲视频综合在线| 国产视频一区不卡| 欧美电影免费提供在线观看| 欧美日韩精品是欧美日韩精品| 国产精品123| 久久精品国产精品亚洲红杏| 五月激情综合婷婷| 一区二区在线电影| 国产精品国产三级国产aⅴ中文 | 精品成a人在线观看| 欧美精品 国产精品| 一本大道久久a久久精二百| 成人涩涩免费视频| 国产成人综合精品三级| 另类调教123区| 日韩在线卡一卡二| 亚洲综合久久av| 亚洲精品伦理在线| 亚洲色图视频免费播放| 综合久久久久久| 亚洲欧美另类在线| 亚洲免费资源在线播放| 亚洲欧美一区二区视频| 国产精品午夜电影| 国产精品久久久一本精品 | 欧美高清在线一区| 国产欧美日韩综合精品一区二区| 精品国产一区二区精华| 欧美成人一级视频| 亚洲精品一区二区三区99| 日韩免费一区二区| 亚洲精品在线电影| 久久久久久久久岛国免费| 国产午夜精品美女毛片视频| 久久综合精品国产一区二区三区| 精品国产乱码久久久久久图片 | 国产偷国产偷亚洲高清人白洁 | 欧美日韩久久不卡| 欧美一区二区三区视频在线| 欧美一区二区三级| 精品国产乱子伦一区| 久久精品亚洲乱码伦伦中文| 日本一区二区三区四区在线视频 | 91国内精品野花午夜精品| 色av成人天堂桃色av| 欧美卡1卡2卡| 久久精品视频一区| 最新高清无码专区| 日韩精品久久理论片| 黄色小说综合网站| 99久久精品费精品国产一区二区| 欧洲一区二区三区在线| 日韩视频国产视频| 国产精品久久久久一区二区三区共| 亚洲丝袜制服诱惑| 蜜桃久久久久久久| 菠萝蜜视频在线观看一区| 欧美日韩亚洲国产综合| 久久这里只精品最新地址| 亚洲美女在线一区| 精品一区二区三区免费观看| www.在线欧美| 日韩欧美自拍偷拍| 中文字幕在线不卡一区二区三区| 午夜精品一区二区三区电影天堂| 精品一区二区免费在线观看| 成人黄色电影在线| 91精品一区二区三区在线观看| 国产亚洲1区2区3区| 性做久久久久久| 成人av免费在线观看| 日韩精品专区在线| 亚洲色图欧洲色图| 激情综合网天天干| 欧美日韩三级一区二区| 久久精品夜色噜噜亚洲aⅴ| 亚洲成人动漫av| 成人免费va视频| 精品日本一线二线三线不卡| 亚洲一区二区在线视频| 国产91综合一区在线观看| 欧美日韩国产一级二级| 国产精品久久久久一区二区三区共| 五月天丁香久久| 欧美综合在线视频| 中国色在线观看另类| 蜜臀av一区二区三区| 欧美性一级生活| 国产精品国产三级国产专播品爱网| 久久综合综合久久综合| 欧美日韩亚洲综合一区| 亚洲桃色在线一区| 国产v综合v亚洲欧| 精品少妇一区二区三区日产乱码 | 国产拍欧美日韩视频二区| 亚洲成人av资源| 色综合久久综合| 久久久久国产免费免费| 日本麻豆一区二区三区视频| 色狠狠桃花综合| 亚洲欧洲国产日本综合| 成人午夜在线播放| 欧美精品一区二区三区蜜桃视频| 午夜免费久久看| 欧美日韩小视频| 一区二区三区在线观看动漫 | 色噜噜狠狠一区二区三区果冻| 中文字幕av一区二区三区| 国产综合成人久久大片91| 日韩一级免费一区| 全部av―极品视觉盛宴亚洲| 精品视频一区二区三区免费| 一区二区在线观看视频在线观看| 97se亚洲国产综合自在线不卡| 国产精品国产成人国产三级| 成人av在线网站| 中文字幕一区二区三区四区| bt7086福利一区国产| 国产欧美一区二区精品秋霞影院| 国产91精品一区二区麻豆网站| 久久久www成人免费无遮挡大片| 久久99精品久久久| 337p粉嫩大胆噜噜噜噜噜91av | 狠狠色狠狠色综合日日91app| 日韩欧美卡一卡二| 国产真实乱对白精彩久久| 久久人人97超碰com| 高清beeg欧美| 亚洲日本在线看| 欧美午夜理伦三级在线观看| 亚洲成人动漫在线观看| 日韩欧美国产精品一区| 激情丁香综合五月| 国产欧美一区二区精品性色| 波多野结衣欧美| 亚洲国产日日夜夜| 日韩美女一区二区三区| 成人一道本在线| 一区二区日韩av| 日韩一二三区视频| 成人午夜视频在线| 亚洲影院在线观看| 欧美岛国在线观看| 成人国产精品免费观看动漫| 亚洲在线观看免费视频| 欧美一卡二卡三卡| 欧美色网一区二区| 激情综合色综合久久综合| 国产精品青草综合久久久久99| 在线免费观看视频一区| 美女视频黄a大片欧美|