snmpdVbExtractRowLoose( )

NAME

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

SYNOPSIS

VB_T * snmpdVbExtractRowLoose 
    ( 
    SNMP_PKT_T *  pktp,    /* snmp packet      */ 
    int           indx,    /* index            */ 
    MIBLEAF_T **  leaves,  /* mib leaves       */ 
    int           compc,   /* component count  */ 
    OIDC_T *      compl    /* component length */ 
    );

DESCRIPTION

This routine assists in implementing row-creation set operations, especially in the case of `dribble' creation. In `dribble' creation, the network management station may choose to break the creation of a new entry in some table into multiple packets. Using multiple packets does not work with snmpdVbRowExtract( ), which requires at least one specified item to be in the packet.

In dribble creation, there is no single item that is guaranteed to be in every packet. As its name implies, this routine is similar to snmpdVbRowExtract( ). It searches the variable bindings in pktp starting at indx for a match of the MIB leaf pointer specified in the leaves array and with an instance specified by compc and compl. The routine then links the variable bindings found from the last variable binding found.

If no variable bindings are found, this routine returns a NULL pointer. This routine does not set any of the flags in the variable bindings. It is left to the calling routine to decide if the tested or set flags should be set.

RETURNS

A pointer to the last variable binding if successful, otherwise NULL.

SEE ALSO

snmpdLib