subagentLib

NAME

subagentLib - encode, decode, and process agent and subagent messages

SYNOPSIS

snmpSubEncode( ) - encode a packet for transmission to master agent or subagent

snmpSaHandlerAsync( ) - asynchronous message processing routine for the subagent

snmpSaHandlerWR( ) - provide snmpSaHandlerAsync( ) functionality synchronously

snmpSaHandlerContinue( ) - subagent continuation function

snmpSaHandlerFinish( ) - encode packet for subagent I/O completion

snmpSaHandlerCleanup( ) - cleanup routine for subagent

snmpMasterHandlerAsync( ) - process messages from the subagent asynchronously

snmpMasterHandlerWR( ) - synchronous version of snmpMasterHandlerAsync( )

snmpMasterQueryHandler( ) - handles replies from the subagent

snmpMasterCleanup( ) - free up resources after a query times out

INT_32_T snmpSubEncode  
(VBL_T * pVblist, SA_HEADER_T * pHdr, SA_DEMUX_T * pDemuxer, EBUFFER_T * pBuf) 
void snmpSaHandlerAsync (OCTET_T * pMsg, ALENGTH_T msglength, PTR_T root, SA_IO_COMPLETE_T * pIoComp, SA_ERR_COMPLETE_T * pErrComp, SA_REG_COMPLETE_T * pRegComp, PTR_T cookie)
INT_32_T snmpSaHandlerWR (OCTET_T * pMsg, ALENGTH_T msgl, EBUFFER_T * pBuf, SA_HEADER_T * pHdr, VBL_T * pVblist, PTR_T root)
void snmpSaHandlerContinue (SNMP_PKT_T * pPkt)
INT_32_T snmpSaHandlerFinish (PTR_T pkt, SA_HEADER_T * pHdr, EBUFFER_T * pBuf)
void snmpSaHandlerCleanup (PTR_T pPkt, SA_HEADER_T * pHdr)
void snmpMasterHandlerAsync (OCTET_T * pMsg, ALENGTH_T msgl, IPCCOMP_T * pIpcComp, IPCSEND_AS_T * pIpcSend, IPCRCV_T * pIpcRcv, IPCFREE_T * pIpcFree, IPCAYT_T * pIpcAyt, PTR_T ipchandle, PTR_T user_priv)
INT_32_T snmpMasterHandlerWR (OCTET_T * pMsg, ALENGTH_T msgl, IPCSEND_T * pIpcSend, IPCRCV_T * pIpcRcv, IPCFREE_T * pIpcFree, IPCAYT_T * pIpcAyt, PTR_T ipchandle, EBUFFER_T * pBuf, VBL_T * pVblist, PTR_T user_priv)
UINT_16_T snmpMasterQueryHandler (OCTET_T * pMsg, ALENGTH_T msgl, int flag)
void snmpMasterCleanup (UINT_16_T reqid, UINT_16_T options)

DESCRIPTION

This module provides the core routines for processing the messages passed between the SNMP master agent and its subagents. Thus, this library includes routines for encoding and decoding a package. It also includes the routines used to sort the messages according to type and then respond to each specific message appropriately.