snmpdLib

NAME

snmpdLib - entry points to the SNMP v1/v2c agent

SYNOPSIS

snmpdPktProcess( ) - process a packet returned by the transport

snmpdLog( ) - log messgaes from the SNMP agent

snmpdViewEntrySet( ) - install an entry in the view table

snmpdViewEntryRemove( ) - remove an entry from the view table

snmpdTreeAdd( ) - dynamically add a subtree to the SNMP agent MIB tree

snmpdTreeRemove( ) - dynamically remove part of the SNMP agent MIB tree

snmpdTrapSend( ) - general interface to trap facilities

snmpdInitFinish( ) - complete the initialization of the agent

snmpdExit( ) - exit the SNMP agent

snmpdContinue( ) - continue processing of an SNMP packet

snmpdGroupByGetprocAndInstance( ) - gather set of similar variable bindings

snmpdVbRowExtract( ) - extract required pieces of a row for a set operation

snmpdVbExtractRowLoose( ) - incrementally extract pieces of a row for a set

snmpdPktLockGet( ) - lock an SNMP packet

void snmpdPktProcess  
(int pktSize, char * pBuf, void * pRemoteAddr, void * pLocalAddr, void * pSnmpEndpoint) 
void snmpdLog (int level, char * string)
STATUS snmpdViewEntrySet (OIDC_T * pTreeOid, int treeOidLen, UINT_16_T index, uchar_t * pMask, int maskLen, int viewType)
void snmpdViewEntryRemove (OIDC_T * pTreeOid, int treeOidLen, UINT_16_T index)
STATUS snmpdTreeAdd (char * pTreeOidStr, MIBNODE_T * pTreeAddr)
void snmpdTreeRemove (char * pTreeOidStr)
void snmpdTrapSend (void * pSnmpEndpoint, int numDestn, void ** ppDestAddrTbl, void * pLocalAddr, int version, char * pTrapCmnty, OIDC_T * pMyOid, int myOidLen, u_long * pIpAddr, int trapType, int trapSpecific, int numVarBinds, FUNCPTR trapVarBindsRtn, void * pCookie)
void snmpdInitFinish (VOIDFUNCPTR pPrivRlse, FUNCPTR pSetPduVldt, FUNCPTR pPreSet, FUNCPTR pPostSet, FUNCPTR pSetFailed)
void snmpdExit (void)
void snmpdContinue (SNMP_PKT_T * pktp);
void snmpdGroupByGetprocAndInstance (SNMP_PKT_T * pktp, VB_T * firstVbp, int compc, OIDC_T * compl);
VB_T * snmpdVbRowExtract (SNMP_PKT_T * pktp, int start_index, int compc, OIDC_T * compl, int row_structure_length, struct create_row * row);
VB_T * snmpdVbExtractRowLoose (SNMP_PKT_T * pktp, int indx, MIBLEAF_T ** leaves, int compc, OIDC_T * compl);
STATUS snmpdPktLockGet (SNMP_PKT_T * pktp)

DESCRIPTION

This module implements the WindNet SNMPv1/v2c agent for VxWorks. This agent provides services for managing objects defined by the MIB-II standard. The agent management information base can be extended to include user-defined MIBs. The agent also provides support for asynchronous method routines and dynamic loading of MIBs.

INCLUDE FILES

snmpdLib.h

SEE ALSO

The SNMP version 1 framework is defined by the following Request For Comments (RFCs): 1155, 1157, 1212. MIB-II is defined by RFC 1213. For more information about SNMP, refer to these documents. For more information about the VxWorks SNMP agent, see the WindNet SNMP VxWorks Component Release Supplement.