VxWorks Reference Manual : Libraries
m2IcmpLib - MIB-II ICMP-group API for SNMP Agents
m2IcmpInit( ) - initialize MIB-II ICMP-group access
m2IcmpGroupInfoGet( ) - get the MIB-II ICMP-group global variables
m2IcmpDelete( ) - delete all resources used to access the ICMP group
This library provides MIB-II services for the ICMP group. It provides routines to initialize the group, and to access the group scalar variables. For a broader description of MIB-II services, see the manual entry for m2Lib.
This library can be initialized and deleted by calling the routines m2IcmpInit( ) and m2IcmpDelete( ) respectively, if only the ICMP group's services are needed. If full MIB-II support is used, this group and all other groups can be initialized and deleted by calling m2Init( ) and m2Delete( ).
The group scalar variables are accessed by calling m2IcmpGroupInfoGet( ) as follows:
M2_ICMP icmpVars; if (m2IcmpGroupInfoGet (&icmpVars) == OK) /* values in icmpVars are valid */
m2Lib.h
m2IcmpLib, m2Lib, m2IfLib, m2IpLib, m2TcpLib, m2SysLib
m2IcmpInit( ) - initialize MIB-II ICMP-group access
STATUS m2IcmpInit (void)
This routine allocates the resources needed to allow access to the MIB-II ICMP-group variables. This routine must be called before any ICMP variables can be accessed.
OK, always.
m2IcmpLib, m2IcmpGroupInfoGet( ), m2IcmpDelete( )
m2IcmpGroupInfoGet( ) - get the MIB-II ICMP-group global variables
STATUS m2IcmpGroupInfoGet ( M2_ICMP * pIcmpInfo /* pointer to the ICMP group structure */ )
This routine fills in the ICMP structure at pIcmpInfo with the MIB-II ICMP scalar variables.
OK, or ERROR if the input parameter pIcmpInfo is invalid.
S_m2Lib_INVALID_PARAMETER
m2IcmpLib, m2IcmpInit( ), m2IcmpDelete( )
m2IcmpDelete( ) - delete all resources used to access the ICMP group
STATUS m2IcmpDelete (void)
This routine frees all the resources allocated at the time the ICMP group was initialized. The ICMP group should not be accessed after this routine has been called.
OK, always.
m2IcmpLib, m2IcmpInit( ), m2IcmpGroupInfoGet( )