snmpSaHandlerFinish( )

NAME

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

SYNOPSIS

INT_32_T snmpSaHandlerFinish 
    ( 
    PTR_T          pPkt,  /* pointer to the packet         */ 
    SA_HEADER_T *  pHdr,  /* header block                  */ 
    EBUFFER_T *    pBuf   /* buffer to place the result in */ 
    )

DESCRIPTION

This routine encodes the packet at pPkt and the header block at pHdr. If pBuf is empty, this routine tries to allocate space. If it cannot or if the space provided is too small, an error is returned.

RETURNS

0 on success, or a non-zero value on failure.

SEE ALSO

subagentLib