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

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

?? m2lib.c

?? vxworks的完整的源代碼
?? C
字號:
/* m2Lib.c - MIB-II API library for SNMP agents *//* Copyright 1984 - 2000 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01f,25oct00,ham  doc: cleanup for vxWorks AE 1.0.01e,25jan95,jdi  doc cleanup.01d,11nov94,rhp  minor correction to library man page.01c,10nov94,rhp  edited man pages.01b,15feb94,jag  added MIB-II library documentation.01a,05jan94,elh  written*//*DESCRIPTIONThis library provides Management Information Base (MIB-II, defined inRFC 1213) services for applications wishing to have access to MIBparameters.To use this feature, include the following component:INCLUDE_MIB2_ALLThere are no specific provisions for MIB-I: all servicesare provided at the MIB-II level.  Applications that use this libraryfor MIB-I must hide the MIB-II extensions from higher level protocols.The library accesses all the MIB-II parameters, and presents them tothe application in data structures based on the MIB-II specifications.The routines provided by the VxWorks MIB-II library are separatedinto groups that follow the MIB-II definition.  Each supported grouphas its own interface library:.iP m2SysLib 15 3systems group.iP m2IfLibinterface group.iP m2IpLibIP group (includes AT).iP m2IcmpLibICMP group .iP m2TcpLibTCP group .iP m2UdpLibUDP group .LPMIB-II retains the AT group for backward compatibility, butincludes its functionality in the IP group.  The EGP and SNMP groupsare not supported by this interface.  The variables in each group havebeen subdivided into two types: table entries and scalar variables.Each type has a pair of routines that get and set the variables.USING THIS LIBRARYThere are four types of operations on each group:  - initializing the group  - getting variables and table entries  - setting variables and table entries  - deleting the group  Only the groups that are to be used need be initialized.  There is oneexception: to use the IP group, the interface group must also beinitialized.  Applications that require MIB-II support from all groups caninitialize all groups at once by calling the m2Init().  All MIB-II groupservices can be disabled by calling m2Delete().  Applications that needaccess only to a particular set of groups need only call theinitialization routines of the desired groups.To read the scalar variables for each group, call one of the followingroutines:    m2SysGroupInfoGet()    m2IfGroupInfoGet()    m2IpGroupInfoGet()    m2IcmpGroupInfoGet()    m2TcpGroupInfoGet()    m2UdpGroupInfoGet()The input parameter to the routine is always a pointer to a structurespecific to the associated group.  The scalar group structures followthe naming convention "M2_<groupname>".  The get routines fill in theinput structure with the values of all the group variables.The scalar variables can also be set to a user supplied value. Not allgroups permit setting variables, as specified by the MIB-II definition.  The following group routines allow setting variables:    m2SysGroupInfoSet()    m2IpGroupInfoSet()The input parameters to the variable-set routines are a bit fieldthat specifies which variables to set, and a group structure.  Thestructure is the same structure type used in the get operation.Applications need set only the structure fields corresponding to thebits that are set in the bit field.The MIB-II table routines read one entry at a time.  Each MIB-II groupthat has tables has a get routine for each table.  The followingtable-get routines are available:    m2IfTblEntryGet()    m2IpAddrTblEntryGet()    m2IpAtransTblEntryGet()    m2IpRouteTblEntryGet()    m2TcpConnEntryGet()    m2UdpTblEntryGet()The input parameters are a pointer to a table entry structure, and aflag value specifying one of two types of table search.  Each tableentry is a structure, where the struct type name follows this namingconvention: "M2_<Groupname><Tablename>TBL".  The MIB-II RFC specifies anindex that identifies a table entry.  Each get request must specify anindex value.  To retrieve the first entry in a table, set all theindex fields of the table-entry structure to zero, and use the searchparameter M2_NEXT_VALUE.  To retrieve subsequent entries, pass theindex returned from the previous invocation, incremented to the nextpossible lexicographical entry.  The search field can only be set tothe constants M2_NEXT_VALUE or M2_EXACT_VALUE:.iP M2_NEXT_VALUEretrieves a table entry that is either identical tothe index value specified as input, or is the closest entry followingthat value, in lexicographic order..iP M2_EXACT_VALUEretrieves a table entry that exactly matches the indexspecified in the input structure..LPSome MIB-II table entries can be added, modified and deleted.Routines to manipulate such entries are described in the manual pagesfor individual groups.All the IP network addresses that are exchanged with the MIB-IIlibrary must be in host-byte order; use ntohl() to convert addressesbefore calling these library routines.The following example shows how to initialize the MIB-II library forall groups..CS    extern FUNCPTR myTrapGenerator;    extern void *  myTrapGeneratorArg;    M2_OBJECTID mySysObjectId = { 8, {1,3,6,1,4,1,731,1} };    if (m2Init ("VxWorks 5.1.1 MIB-II library (sysDescr)",	        "support@wrs.com (sysContact)",	        "1010 Atlantic Avenue Alameda, California 94501 (sysLocation)",		 &mySysObjectId,		 myTrapGenerator,		 myTrapGeneratorArg,		 0) == OK)	/@ MIB-II groups initialized successfully @/.CEINCLUDE FILES: m2Lib.h SEE ALSO: m2IfLib, m2IpLib, m2IcmpLib, m2UdpLib, m2TcpLib, m2SysLib *//* includes */#include <vxWorks.h>#include "m2Lib.h"/******************************************************************************** m2Init - initialize the SNMP MIB-2 library ** This routine initializes the MIB-2 library by calling the initialization* routines for each MIB-2 group.  The parameters <pMib2SysDescr>* <pMib2SysContact>, <pMib2SysLocation>, and <pMib2SysObjectId> are passed* directly to m2SysInit();  <pTrapRtn> and <pTrapArg> are passed directly to* m2IfInit(); and <maxRouteTableSize> is passed to m2IpInit().** RETURNS: OK if successful, otherwise ERROR.** SEE ALSO:* m2SysInit(), m2TcpInit(), m2UdpInit(), m2IcmpInit(), m2IfInit(), m2IpInit()*/STATUS m2Init     (    char *		pMib2SysDescr,		/* sysDescr */    char *		pMib2SysContact,	/* sysContact */    char *		pMib2SysLocation,	/* sysLocation */    M2_OBJECTID	*	pMib2SysObjectId, 	/* sysObjectID */    FUNCPTR 		pTrapRtn, 		/* link up/down -trap routine */    void * 		pTrapArg,		/* trap routine arg */    int			maxRouteTableSize 	/* max size of routing table */     )    {    /* Call the initialization routine for each group in MIB-2 */    if ((m2SysInit (pMib2SysDescr, pMib2SysContact, pMib2SysLocation,		    pMib2SysObjectId) == ERROR) ||    	(m2IfInit (pTrapRtn, pTrapArg) == ERROR) ||        (m2IpInit (maxRouteTableSize) == ERROR) ||     	(m2TcpInit () == ERROR) ||    	(m2IcmpInit () == ERROR) ||	(m2UdpInit () == ERROR))	{	m2Delete ();				return (ERROR);			/* initialization failed */	}    return (OK);    }/******************************************************************************** m2Delete - delete all the MIB-II library groups** This routine cleans up the state associated with the MIB-II library.** RETURNS: OK (always).** SEE ALSO: m2SysDelete(), m2TcpDelete(), m2UdpDelete(), m2IcmpDelete(),* m2IfDelete(), m2IpDelete()*/STATUS m2Delete (void)    {    m2SysDelete ();	    m2IfDelete ();	    m2IpDelete ();    m2TcpDelete ();    m2IcmpDelete ();    m2UdpDelete ();    return (OK);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区看久久| 日本久久一区二区三区| 手机精品视频在线观看| 一区二区三区在线视频观看 | 亚洲欧美日韩国产综合| 欧美国产一区二区| 国产欧美精品一区二区三区四区| 欧美成人高清电影在线| 日韩欧美国产综合在线一区二区三区| 欧洲人成人精品| 精品一区二区三区免费毛片爱| 人人狠狠综合久久亚洲| 一区二区视频在线看| 欧美—级在线免费片| 久久久影视传媒| 久久麻豆一区二区| 国产精品妹子av| 国产精品国产三级国产有无不卡| 欧美国产日韩亚洲一区| 欧美大片一区二区| 久久欧美中文字幕| 国产精品日日摸夜夜摸av| 亚洲欧美日韩系列| 亚洲午夜羞羞片| 日本免费在线视频不卡一不卡二| 国内精品伊人久久久久av一坑| 久久97超碰国产精品超碰| 国产高清精品久久久久| www.亚洲人| 欧美性猛交xxxxxx富婆| 4438亚洲最大| 国产亚洲欧美一区在线观看| 成人免费小视频| 日韩电影在线一区二区| 久久91精品国产91久久小草| 麻豆成人综合网| 亚洲精品亚洲人成人网在线播放| 91麻豆精品久久久久蜜臀| 韩国成人在线视频| 国产91丝袜在线播放0| 国精产品一区一区三区mba视频 | 色爱区综合激月婷婷| 色婷婷精品久久二区二区蜜臀av| 在线不卡a资源高清| 久久精品视频在线看| 日本一区二区高清| 亚洲图片欧美激情| 日韩av不卡一区二区| 国产自产高清不卡| 91麻豆6部合集magnet| 欧美一区二区三区不卡| 欧美激情一区二区在线| 国产精品国产三级国产有无不卡| 亚洲自拍与偷拍| 国产精品影视网| 国产一区二区三区在线观看免费视频| 色呦呦一区二区三区| 亚洲久本草在线中文字幕| 亚洲欧美影音先锋| 日本亚洲一区二区| 老司机一区二区| 黄色精品一二区| 欧美日韩亚洲综合一区| 国产婷婷色一区二区三区在线| 亚洲午夜日本在线观看| 国产精品1区2区3区在线观看| 懂色av一区二区三区免费看| 制服.丝袜.亚洲.中文.综合| 一区精品在线播放| 国产很黄免费观看久久| 日韩一区二区电影| 亚洲一区二区三区在线| 国产精品一区二区不卡| 在线观看免费成人| 亚洲欧美在线另类| 成人毛片视频在线观看| 91麻豆精品91久久久久久清纯| 精品国产制服丝袜高跟| 五月天亚洲精品| 不卡电影一区二区三区| 日韩三级在线免费观看| 亚洲欧洲性图库| 国产aⅴ精品一区二区三区色成熟| 日韩午夜激情免费电影| 亚洲成人激情自拍| 色88888久久久久久影院野外| 日韩一区二区在线观看| 亚洲欧美日韩国产综合在线| 成人黄色片在线观看| 欧美在线一区二区三区| 亚洲欧美影音先锋| 99久久精品免费| 久久奇米777| 日韩av电影免费观看高清完整版 | 精品国产乱码久久久久久牛牛 | 久久女同精品一区二区| 91麻豆精品国产91久久久| 国产日韩高清在线| 五月综合激情网| 91精品福利视频| 国产精品精品国产色婷婷| 欧美aa在线视频| 欧美一区二区福利在线| 奇米影视7777精品一区二区| 欧美二区三区91| 五月激情综合婷婷| 成人夜色视频网站在线观看| 久久综合九色综合97婷婷| 麻豆91在线播放免费| 欧美一区二区在线播放| 亚洲视频一二区| 日韩精品欧美成人高清一区二区| 欧美高清hd18日本| 亚洲一区视频在线| 91女人视频在线观看| 欧美国产激情一区二区三区蜜月| 成人激情图片网| 国产精品无人区| 国产原创一区二区| 久久久久久久一区| 久久精品噜噜噜成人av农村| 欧美一区在线视频| 美女网站视频久久| 26uuu欧美| 国产在线播放一区| 国产精品传媒在线| 色狠狠一区二区| 视频一区二区不卡| 久久亚区不卡日本| 国产精品996| 最新中文字幕一区二区三区| 色婷婷亚洲综合| 日韩精品一区第一页| 精品电影一区二区| 成人av影院在线| 午夜电影网亚洲视频| 精品成人a区在线观看| 99精品视频一区二区| 亚洲成人福利片| 26uuu国产日韩综合| 不卡的电视剧免费网站有什么| 一区二区三区四区蜜桃| 欧美又粗又大又爽| 天堂精品中文字幕在线| 久久综合久久99| 色欧美乱欧美15图片| 美女一区二区在线观看| 亚洲欧洲精品成人久久奇米网| 欧美唯美清纯偷拍| 久久电影网电视剧免费观看| 国产精品灌醉下药二区| 欧美视频一区二区在线观看| 美女视频黄a大片欧美| 26uuuu精品一区二区| 国产精品一区二区无线| 亚洲麻豆国产自偷在线| 欧美一区二区在线免费观看| 粉嫩一区二区三区在线看| 亚洲综合区在线| 亚洲精品一线二线三线无人区| 国产大陆亚洲精品国产| 亚洲黄色免费电影| 日韩欧美aaaaaa| 一本到不卡精品视频在线观看 | 久久99蜜桃精品| 国产精品久久久久久久久晋中 | 欧美一卡二卡三卡| 97超碰欧美中文字幕| 麻豆freexxxx性91精品| 亚洲主播在线播放| 国产精品久久久久久久久果冻传媒| 欧美一区二区黄| 在线观看视频91| 成人毛片视频在线观看| 精久久久久久久久久久| 五月激情综合网| 亚洲欧美一区二区三区极速播放 | 国产在线不卡视频| 午夜不卡av免费| 国产精品高潮久久久久无| 欧美成人一区二区三区| 日本麻豆一区二区三区视频| 国产精品久久久久久久久晋中 | 国产一区二区久久| 午夜精品一区在线观看| 亚洲人精品一区| 日本一区二区成人| 欧美精品一区在线观看| 欧美美女视频在线观看| 国产99久久精品| 日韩国产欧美三级| 亚洲一区二区黄色| 亚洲免费大片在线观看| 国产女主播视频一区二区| 日韩欧美一二三四区| 欧美日韩国产高清一区二区三区| 91看片淫黄大片一级| aaa欧美日韩| 成人免费毛片a| 国产精品一区二区在线观看网站 |