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

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

?? ospf_mib_api.c

?? vxworks下ospf協議棧
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* ospf_mib_api.c - OSPF version 2.0 MIB Management Interface *//* Copyright 1998-2003 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------03q,04jun03,asr Changed back to use system memory instead of OSPF memory partition03p,02jun03,ram Changed native memory usage to OSPF memory partition03o,23may03,asr Changes to make OSPF virtual stack compatible03n,28feb03,kc  Fixed SPR#86505 - modified per new mibApi.h header file updates.                 Renamed MAPI_COMMIT_NVM and MAPI_GET_NVM mApiReqType_t request type                to MAPI_COMMIT_FORCE and MAPI_GET_FORCE respectively.03m,28feb03,kc  Fixed SPR#86502 - Added INCLUDE_OSPF_MIB_UTILITIES component init to                ospfMapiInit(). Also renamed INCLUDE_OSPF_SHOW_ROUTINES component to                 INCLUDE_OSPF_MIB_SHOW_ROUTINES.03l,03feb03,kc  Fixed SPR#85865 - modified ospfMapiSetGenGroup() to return error                immediately if mApi2Ospf_configGenGroup() failed.03k,01feb03,kc  Added refgen documentation - describes the usage and provides                examples for how to use the ospfMapiSetHelper() routine.03j,31jan03,kc  Fixed SPR#86007 - added ospfMapiSetHelper() routine.03i,17jan03,kc  Fixed SPR#85806 - modified the for-loop for processing the object(s)                from the request list in ospf_mApi_processSetReq() to set the value                of the currObjInProcess correctly.03i,12dec02,mwv Fix compiler warning03h,19nov02,mwv Merge TMS code SPR 8428403g,12nov02,kc  Added ospfMapiIsInited() routine. Also redefine OSPF_MAPI_INIT_CHECK                 macro so that it looks like a function call.03f,08oct02,agi Fixed compiler warnings03e,20sep02,kc  Fixed SPR#77551 - changed returned status for ospfMapiDestroy() and                modified the routine to disallow the mib api to be destroyed if the                 OSPF protocol is up running.03d,20sep02,kc  Modified ospf_mApi_processGetReq() to sanity check the instanceLen                for the given index values for the MAPI_GET and MAPI_GET requests.03c,09aug02,kc  Fixed wrnOspf_mApi_ifIndexSet() to correctly set the next index value                 for wrnOspfIfTable. Modified ospf_mApi_processSetReq() to validate                the function pointer before using it.                 03b,17jun02,kc  Modified ospf_mApi_processSetReq() to remember the running count for                the current object in the varbind list that is currently processed.03a,21may02,kc  Fixed NULL pointer access problem in ospf_mApi_processSetReq(),                ospf_mApi_processGetReq(), ospf_rs2mApi_errorGet(),                ospfMapixxxGenGroup() and ospfMapixxxWrnGenGroup().02z,15apr02,kc  Renamed MAPI_NVM_SET to MAPI_COMMIT_NVM and pCookie pointer to                pReqCookie pointer per mibApi.h update. Added support for the                MAPI_GET_NVM mApiRequest_t.02y,10apr02,kc  Added net/if.h include. Removed ospf2Mapi_destroy() from                ospfMapiDestroy().02x,10apr02,kc  Remerged changes for unnumbered interface support.02w,26mar02,kc  Added ospfMapiDebug and ospfMapiErrorDebug global variables to allow                the debug messages to be turn on/off at runtime via command line.02v,24mar02,kc  Moved ospf2Mapi_init() call from ospfMapiInit() to                ospf2Mapi_proto_register(). The "tOspf2Mapi" task shouldn't be                spawned if the ospf protocol is not running.02u,23mar02,kc  MIB API no longer automatically create the OSPF backbone area when                it is first initialized.02t,22feb02,kc  Renamed all public MIB API functions using WRS naming convention.02s,13feb02,kc  Modified ospf_mApi_processSetReq() to remember the mib api request                type it is currently processed.02r,07feb02,kc  Modified ospf_mApi_processSetReq(), ospf_mApi_setGenGroup() and                wrnOspf_mApi_setGenGroup() to track the nvm set failure.02q,02feb02,kc  Modified ospf_mApi_processSetReq(), ospf_mApi_setGenGroup() and                wrnOspf_mApi_setGenGroup() to invoke nvram callback routine only                if the request is not intiated by nvram.02p,02feb02,kc  Fixed ospf_mApi_setReqCnt() to ignore counters checking if the                request is MAPI_NVM_SET.02o,19dec01,kc  Modified ospf_mApi_processSetReq() to check if ospf protocol is                running before invoking the ospf_mApi_dynConfigRtn() for tabular                objects configuration.02n,19dec01,kc  Added ospfRfcProto, ospfOpaqueEnable and ospfDbOverflow protocol                specific initialization check to ospf_mApi_init().02m.15dec01,kc  Reworked ospf_rs2mApi_errorGet() routine.02l,14dec01,kc  Localized ospf_mApi_avlTreeErase(). Also fixed callout to                ospf_mApi_initGeneralGroup() and wrnOspf_mApi_initGeneralGroup()                in ospf_mApi_init().02k,12dec01,kc  Fixed ospf_mApi_setReqCnt() out-of-sync problem.02j,11dec01,kc  Somewhat simplified ospf_mApi_processSetReq().02i,10dec01,kc  Added instanceLen argument to ospf_mApi_processSetReq() and                ospf_mApi_processSetReq(). Now also validate the request message.02h,29nov01,kc  Added instanceLen assignment to ospf_mApi_areaAggregateIndexSet().02g,29nov01,kc  Fixed ospf_mApi_getGenGroup() and wrnOspf_mApi_getGenGroup() to                correctly process the varbinds.02f,13nov01,kc  Fixed ospf_mApi_processGetReq() to correctly process the varbinds.02e,12nov01,kc  Fixed out-of-sync problem in ospf_mApi_setReqCnt() - handle the                MAPI_TEST request failures.02d,08nov01,kc  Modified ospf_mApi_init() so that it will not initialized the MIB API                if ospfMapiInitDone private flag is already set.02c,25oct01,kc  Fixed ospf_mApi_getAreaAggregate() routine, called                ospf_mApi_processGetReq() with the correct avl node pointer.02b,24oct01,kc  Added explict typecast in ospf_mApi_ipAddr2OoctetString().02a,21oct01,kc  Added ospf_mApi_avlTreeErase(). Modified ospf_mApi_destroy() to                use this new routine.01z,21oct01,kc  Invoke the application provided nvram save and delete method routines                in ospf_mApi_processSetReq() if necessary.01y,21oct01,kc  Initialize ospf protocol information in ospf_mApi_init().01x,20oct01,kc  Added Area Aggregation supported routines.01w,18oct01,kc  Redefined ospf_mApi_init() function arguments.01v,16oct01,kc  Removed __WRN_OSPF_MIB__ preproc.01u,16oct01,kc  Added wrnOspf_mApi_getXXX() routines.01t,15oct01,kc  Modified ospf_mApi_databaseFree() to free memory used by nodes on                the ospfFreePoolList.01s,15oct01,kc  Use the max allocation size for external lsdb as argument to                ospf2Mapi_init().01r,13oct01,kc  Added __WRN_OSPF_MIB__ preproc.01q,12oct01,kc  Added ospf_mApi_showInit() import statement.01p,10oct01,kc  Added ospf_mApi_setNbr() support.01o,10oct01,kc  Also destroy ospfNbrTable row status handler in ospf_mApi_destroy().01n,08oct01,kc  Added wrn-ospf mib specific init and destory support.01m,07oct01,kc  Need to include ospf_mApi_helper.h before ospf_mib_api.h.01l,07oct01,kc  Called ospf2Mapi_destroy() in ospf_mApi_destroy().01k,18sep01,kc  Added lots of arguments to ospf_mApi_init() so that the limit for                the MIB tables can be configurable via Tornado Project Facility.01j,15sep01,kc  Added support for user callback routine for saving and retrieving                configuration to and from the nvram.01i,12sep01,kc  Installed ospf_mApi_showInit() in ospf_mApi_init().01h,11sep01,kc  Moved all show routines to ospf_mApi_show.c01g,04sep01,kc  Added show routines for all tables.01f,24aug01,kc  Implemented a generic ospf_mApi_processSetReq() to handle MIB API                TEST and SET requests.01e,21aug01,kc  Implemented ospf_mApi_processGetReq() generic GET routine, thus                simplied all previously implemented GET and GET NEXT routines.01d,20aug01,kc  Implemented MIB API compliant GET NEXT routines for all tables01c,16aug01,kc  Implemented MIB API compliant GET routines for all tables.01b,15aug01,kc  Layout the mApiOspfClass_t data structure01a,14aug01,kc  Initial file creation.*//*DESCRIPTIONThis module serves as an intermediate layer to facilitate interoperabilitybetween WindNet OSPFv2 and the OSPF MIB. It implements the RFC1850 compliantmanagement interfaces that can be used to configure and monitor the OSPF protocol.The intention of this module is to provide an SNMP MIB abstraction layer that providesinstrumented MIB object/table row access for GET, GET-NEXT and SET operations. Itencapsulates all the MIB access operations and implementation details from theapplication, thus, provides a neutral interface that can be used by any managementtechnology such as Envoy SNMP and TMS IDB+ or any third-party management technologies.This module assumes that the calling routine (e.g. Envoy SNMP or TMS IDB+) willserialize the SET requests to prevent requests from multiple management applications(e.g. SNMP MIB Browser, SnmpTalk) from interrupting a collection of grouped SETrequests (e.g., all requests in a single SNMP PDU) from a specific managementapplication.The management interfaces implemented in this module shall not be invoked directlyfrom the Wind Shell. It must be called by the relevant method routines of an SNMPagent.  To simplify processing and to allow fast, direct acccess of the MIB objects,this module maintain an OSPF Management Database that consists of shadow copies of allthe OSPF configurations that are relevant to the OSPF MIBs.It is not necessary to start WindNet OSPF in order to configure the OSPF protocol usingthis module. As long as the management facility is initialized, the OSPF MIBs can beconfigured using an SNMP agent. Explanation for each of the OSPF scalar or tabularobjects may be obtained from the MIB. Since most of the configurable OSPF objects havedefault values, these configuration parameters can be left unchanged. In a basic OSPFconfiguration, one can simply configure the ospfIfTable for interfaces that need to runOSPF, configure the OSPF Router ID and then enable the OSPF protocol. To ensureuniqueness, it is suggested that the OSPF Router ID should default to one of the router'sIP interface addresses. WindNet OSPF will not be started if this is left unspecified. Theimplementation will not automatically assign one of the router's interface IP addresses asthe OSPF Router ID. This is because the OSPF Router ID must be unique to the routing domainand such uniqueness cannot be guarantee if the interface has been deleted/disabled. Inaddition, it is not always necessary to specify the OSPF Area to which each OSPF interfaceconnects since it will default to the backbone OSPF Area (Area ID 0.0.0.0) if leftunspecified.INCLUDE FILES: ospf_mib_api.hSEE ALSO: WindNet OSPF User's Guide*//* This include is here to get rid of the "empty file" compiler warning */#include <vxWorks.h>#if defined (__OSPF_MIB__)/* standard VxWorks includes */#include <stdio.h>#include <stdlib.h>#include <sysLib.h>#include <semLib.h>#include <lstLib.h>#include <avlLib.h>#include <net/if.h>/* management interface includes */#include "rowStatusLib.h"#include "mibApi.h"#include "ospf_mib_helper.h"#include "ospf_mib_helper_update.h"#include "ospf_mib_api.h"#include "ospf_mib_wrn_helper.h"#include "ospf.h"/* private data */LOCAL BOOL ospfMapiInitDone = FALSE;   /* flag to check mib api initialization *//* SPR#86502 - added prototype for INCLUDE_OSPF_MIB_UTILITIES component */#ifdef INCLUDE_OSPF_MIB_SHOW_ROUTINESIMPORT void ospfMapiShowInit( void );#endif /* INCLUDE_OSPF_MIB_SHOW_ROUTINES */#ifdef INCLUDE_OSPF_MIB_UTILITIESIMPORT STATUS ospfMapiUtilitiesInit( void );#endif /* INCLUDE_OSPF_MIB_UTILITIES *//* the following are the the debug switch that allow the mApi debug message to be turned * on/off at runtime if the corresponding debug macros are defined in ospf_mib_api.h. * Initially these debug variables are all turn off. */int ospfMapiDebug = 0;int ospfMapiErrorDebug = 0;/* MIB API request display strings */char *mApiRequest[] = {    "UNKNOWN", "GET", "GET NEXT", "TEST", "COMMIT", "UNDO", "COMPLETE",     "TEST FORCE", "COMMIT NVM", "GET NVM" };/* macro to determine if the management facility is initialized */#define OSPF_MAPI_INIT_CHECK()   if ( ospfMapiInitDone == FALSE ) \                               { \                                  mApiOspfError(("OSPF MIB API not inited!\n")); \                                  return ERROR; \                               }/***************************************************************************************** ospf_mApi2rs_reqTypeGet - convert mib api request type to rowStatus lib request type** This routine converts the mib api request type to the rowStatus lib request type.* This routine is used in conjuction with the rowStatus library.** RETURNS: rsRequest_t** NOMANUAL*/LOCAL rsRequest_t ospf_mApi2rs_reqTypeGet( mApiReqType_t reqType ){    rsRequest_t rsRequest;    switch( reqType )    {        case MAPI_GET:        case MAPI_GET_NEXT:        case MAPI_GET_FORCE:            rsRequest =  RS_GET_REQUEST;            break;        case MAPI_TEST:            rsRequest = RS_VALIDATE_REQUEST;            break;        case MAPI_COMMIT:            rsRequest = RS_COMMIT_REQUEST;            break;        case MAPI_COMMIT_FORCE:            rsRequest = RS_SET_NVM_REQUEST;            break;       case MAPI_UNDO:       case MAPI_COMPLETE:       default:            rsRequest = RS_ERROR_REQUEST;            break;    }    return rsRequest;}/***************************************************************************************** ospf_mApi_setReqCnt - set the SNMP Test/Commit/Undo state counter** This routine set the SNMP Test/Commit/Undo state counter. It is assumed that the SNMP* agent will serialize all the requests for a transaction. (i.e. all requests for a* transaction in a single SNMP PDU). The following are the three allowable SET phase* combination (assumming a single object SET)* - MAPI_TEST, MAPI_COMMIT , MAPI_COMPLETE  => SET successful* - MAPI_TEST, MAPI_COMPLETE                => TEST failure* - MAPI_TEST, MAPI_COMMIT, MAPI_UNDO       => COMMIT failure** The following is a typical transaction for multiple requests to update two rows in* a table:* - MAPI_TEST, MAPI_TEST, MAPI_COMMIT, MAPI_COMMIT, MAPI_COMPLETE, MAPI_COMPLETE* => SET successful* - MAPI_TEST, MAPI_TEST, MAPI_COMPLETE, MAPI_COMPLETE => 2nd TEST failure* - MAPI_TEST, MAPI_TEST, MAPI_COMMIT, MAPI_COMMIT, MAPI_UNDO, MAPI_UNDO* => 2nd COMMIT failure** RETURNS: OK or ERROR** ERRNO: none** NOMANUAL*/LOCAL STATUS ospf_mApi_setReqCnt( mApiReqType_t reqType ){    /* lock mib api mutex semaphore for exclusive access to mApiOspfClass_t */    semTake( thisMapi->semMapiMutex, WAIT_FOREVER );    switch( reqType )    {        case MAPI_TEST:            /* if agent has issued the SNMP Commit or Undo requests, transaction             * has yet completed. Disallow the SNMP Test Request.             */            if ( (thisMapi->mApiCommitReqCnt != 0) || (thisMapi->mApiUndoReqCnt != 0) )            {                thisMapi->mApiBogusReqCnt++;                semGive( thisMapi->semMapiMutex );                mApiOspfError(("ospf_mApi_setReqCnt:test request not allowed!\n"));                return ERROR;            }            thisMapi->mApiTestReqCnt++;            break;        case MAPI_COMMIT:            /* if agent has started the SNMP Undo process, can't issue a request             * for Commit until all Undo processes have been completed.             */            if ( thisMapi->mApiUndoReqCnt != 0 )            {                thisMapi->mApiBogusReqCnt++;                semGive( thisMapi->semMapiMutex );                mApiOspfError(("ospf_mApi_setReqCnt:commit request not allowed!\n"));                return ERROR;            }            /* number of SNMP Commit must never greater than the Test request count */            if ( thisMapi->mApiCommitReqCnt > thisMapi->mApiTestReqCnt )            {                thisMapi->mApiBogusReqCnt++;                semGive( thisMapi->semMapiMutex );                mApiOspfError(("ospf_mApi_setReqCnt:too many commit request!\n"));                return ERROR;            }            thisMapi->mApiCommitReqCnt++;            break;        case MAPI_UNDO:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区四区在线免费观看| 7878成人国产在线观看| 国产日韩欧美麻豆| www.亚洲色图| 亚洲精品ww久久久久久p站| 欧美日韩一区二区三区免费看| 亚洲国产毛片aaaaa无费看 | 成人欧美一区二区三区1314| 制服丝袜亚洲色图| 另类综合日韩欧美亚洲| 久久久蜜桃精品| 91在线视频18| 日本欧美一区二区在线观看| 久久久久亚洲蜜桃| 91久久香蕉国产日韩欧美9色| 视频一区二区三区在线| 国产婷婷色一区二区三区| 色综合一区二区三区| 日韩av不卡一区二区| 久久九九久久九九| 在线视频观看一区| 国产一区二区调教| 亚洲综合一二三区| 久久综合久色欧美综合狠狠| 91热门视频在线观看| 蜜桃一区二区三区在线| 成人免费视频在线观看| 日韩女优毛片在线| 91麻豆福利精品推荐| 黄一区二区三区| 亚洲欧美一区二区三区孕妇| 欧美白人最猛性xxxxx69交| 99国产欧美久久久精品| 精品一区二区三区在线观看 | 国产精品伦理一区二区| 欧美欧美欧美欧美首页| 成人性生交大片免费看在线播放| 午夜视频在线观看一区| 欧美极品美女视频| 日韩手机在线导航| 色婷婷亚洲综合| 国产激情视频一区二区在线观看| 视频一区二区三区入口| 亚洲激情欧美激情| 国产精品超碰97尤物18| 2023国产精华国产精品| 日韩午夜在线影院| 国产日韩欧美a| 日韩欧美精品三级| 3atv在线一区二区三区| 一本色道久久综合亚洲91| 国产成人免费9x9x人网站视频| 日韩电影免费在线看| 亚洲午夜免费福利视频| 亚洲日韩欧美一区二区在线| 欧美韩国一区二区| 亚洲精品一区在线观看| 欧美一三区三区四区免费在线看| 色域天天综合网| 99久久久无码国产精品| 成人毛片在线观看| 成人h动漫精品| 国产精品一区二区黑丝| 国产在线播放一区三区四| 美女任你摸久久| 男女男精品视频| 日产国产欧美视频一区精品| 午夜精品爽啪视频| 五月婷婷激情综合网| 日韩经典中文字幕一区| 午夜精品福利一区二区蜜股av| 亚洲一区二区在线观看视频 | 国产91丝袜在线18| 国产精品911| 国产成人精品午夜视频免费| 国产高清久久久| 国产精品1024久久| 国产乱人伦精品一区二区在线观看| 青椒成人免费视频| 久久成人免费网| 91麻豆精品国产91久久久更新时间 | 亚洲精品在线观看网站| 欧美xxxxxxxxx| 久久精品视频在线免费观看| 久久久欧美精品sm网站| 中文字幕精品—区二区四季| 日韩一区有码在线| 一区二区三区四区高清精品免费观看 | 国产在线精品一区二区不卡了| 国产乱色国产精品免费视频| 成人少妇影院yyyy| 色综合久久天天| 欧美日韩国产免费| 日韩免费电影网站| 久久久精品国产免费观看同学| 日本一区二区免费在线 | 国产网红主播福利一区二区| 国产精品久久久久久亚洲毛片 | 国产精品中文字幕日韩精品| 国产成人小视频| av在线播放一区二区三区| 色婷婷av一区| 欧美电视剧在线观看完整版| 国产精品色眯眯| 亚洲成在线观看| 国产精品99久久久久久宅男| 91亚洲男人天堂| 日韩亚洲电影在线| 亚洲欧美在线视频| 日本欧美韩国一区三区| 粉嫩aⅴ一区二区三区四区| 在线亚洲一区观看| 久久亚洲二区三区| 亚洲一线二线三线视频| 韩国av一区二区三区在线观看| 91浏览器入口在线观看| 日韩一区二区三区四区| 国产精品二区一区二区aⅴ污介绍| 亚洲国产三级在线| 国产成人免费视频一区| 欧美高清视频在线高清观看mv色露露十八| 亚洲精品在线观看视频| 亚洲午夜激情网站| 成人蜜臀av电影| 精品少妇一区二区三区日产乱码| 亚洲美女视频在线观看| 国产精品911| 日韩亚洲欧美综合| 亚洲综合在线观看视频| 国产精品一区二区果冻传媒| 91精品国产91久久综合桃花| 亚洲精选在线视频| 国产麻豆成人精品| 欧美一区二区福利在线| 亚洲精品成人天堂一二三| 成人少妇影院yyyy| 久久久天堂av| 看片网站欧美日韩| 欧美日韩精品欧美日韩精品一| 中文字幕av资源一区| 国产一区二区在线免费观看| 51精品视频一区二区三区| 亚洲美腿欧美偷拍| www.亚洲人| 国产精品美女视频| 国产在线精品一区二区三区不卡| 欧美一级午夜免费电影| 首页亚洲欧美制服丝腿| 欧美手机在线视频| 一区二区三区日韩欧美| 99re6这里只有精品视频在线观看| 久久久久久一二三区| 久久成人综合网| 日韩三级.com| 久久国产乱子精品免费女| 6080国产精品一区二区| 五月激情综合色| 欧美一区二区三区视频在线| 亚洲电影第三页| 欧美日韩综合在线免费观看| 亚洲一区二区偷拍精品| 欧美自拍偷拍一区| 亚洲影视在线观看| 欧美日韩国产成人在线91 | 日本午夜精品视频在线观看 | 成人激情视频网站| 久久久久久免费| 国产精品77777| 久久精品无码一区二区三区| 成人午夜伦理影院| 亚洲视频在线一区| 在线精品视频一区二区| 亚洲国产精品久久一线不卡| 欧美日韩www| 蜜臀va亚洲va欧美va天堂| 日韩欧美国产不卡| 国产精品一区在线| 亚洲欧洲日韩在线| 欧美午夜精品一区二区蜜桃| 香蕉成人伊视频在线观看| 91精品国产91久久综合桃花| 国内精品视频一区二区三区八戒 | 色av综合在线| 日日摸夜夜添夜夜添亚洲女人| 91精品国产品国语在线不卡| 精品无码三级在线观看视频| 久久久久久日产精品| 99r国产精品| 亚洲成人免费影院| 欧美mv日韩mv国产| 99r国产精品| 日韩成人午夜精品| 中文无字幕一区二区三区| 色哟哟一区二区| 欧美aaaaa成人免费观看视频| 久久青草欧美一区二区三区| 91丨九色丨蝌蚪富婆spa| 人人狠狠综合久久亚洲| 国产视频一区不卡| 欧美人狂配大交3d怪物一区|