tfInsertVtfEntry

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference


#include <trapi.h>


int tfInsertVtfEntry (ttSnmpVacmViewTreeFamilyTablePtr vtfTablePtr);


Function Description

This function either inserts the new entry into the linked list of ttSnmpVacmViewTreeFamilyTable’s, if the compound table index does not coinside with any index in the entries in the linked list, or replaces the old entry with the new one, if the identical index is found. The struct ttSnmpVacmTreeFamilyTable is defined in trsnmpv3.h The table index consists of svvtName and svvtSubtree.


Parameters

  • vtfTablePtr
    Pointer to the ttSnmpVacmTreeFamilyTable entry to be inserted.


Returns

  • TM_ENOERROR
    Success.
  • TM_ALLOCATION_ERROR
    Failure to allocate memory for the agent global variables.
  • TM_WRONG_VTFNAME_LENGTH
    Failure, svvtNameLen is not between 0 and 32.
  • TM_VTFNAME_NOT_PRINTABLE
    Failure, svvtName contains unprintable characters.
  • TM_WRONG_TYPE
    Failure, svvtType is not 0, or 1, or 2
  • TM_WRONG_STATUS
    Failure, svvtStatuss is not 1, or 2, or 3


Table of Contents >> SNMP Programmer's Reference