EBufferSetup( )

NAME

EBufferSetup( ) - attach an empty memory buffer to an extended buffer

SYNOPSIS

void EBufferSetup 
    ( 
    unsigned int  flags,   /*  storage type flags */ 
    EBUFFER_T *   ebuffp,  /* extended buffer     */ 
    OCTET_T *     datap,   /* data pointer        */ 
    ALENGTH_T     datal    /* data length         */ 
    );

DESCRIPTION

This routine attaches an empty memory buffer to a buffer-control block.

flags should be set to the manifest constant BFL_IS_DYNAMIC if the buffer has been allocated from the dynamic pool. Otherwise, flags should be set to BFL_IS_STATIC. The location and length of the buffer are described by datap and datal, respectively.

RETURNS

N/A

SEE ALSO

snmpEbufLib