The
VB_T structure contains additional fields which are intended to be used by a MIB designer when processing incoming PDUs (during the method-routine phase). One of these fields is a linked-list pointer giving the MIB developer the means to generate a relationship between items in a
VarBindList. Two other fields are provided to allow the MIB developer to associate space with a
VB_T item, and to have that space deallocated when the
VB_T is freed. These are intended for use when a test routine must acquire some resources to determine if a
SET may be accomplished. The
vb_priv field in the
VB_T may be used to point to these resources while the
vb_free_priv field is used to point to a routine which frees user-defined memory. If
vb_free_priv is non-null when a packet is being deallocated, the routine pointed to by
vb_free_priv is called and may free up any resources that the
VB_T specifies.