tfDeleteAccessEntry

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference


#include <trapi.h>


int tfDeleteAccessEntry (ttSnmpVacmAccessTablePtr accessTablePtr);


Function Description

This function deletes the entry from the linked list of ttSnmpVacmAccessTabel's. The struct ttSnmpVacmAccessTable is defined in trsnmpv3.h The table index consists of svatGroupName, svatPrefix, svatModel and svatLevel.


Parameters

  • accessTablePtr
    Pointer to the ttSnmpVacmAccessTable entry to be deleted.


Returns

  • TM_ENOERROR
    Success.
  • TM_ALLOCATION_ERROR
    Failure to allocate memory for the agent global variables.
  • TM_WRONG_GROUPNAME_LENGTH
    Failure, svatGroupNameLen is not between 1 and 32.
  • <tt>TM_GROUPNAME_NOT_PRINTABLE
    Failure, svatGroupName contains unprintable characters.
  • TM_WRONG_PREFIX_LENGTH
    Failure, svatPrefixLen is not between 1 and 32.
  • TM_PREFIX_NOT_PRINTABLE
    Failure, svatPrefix contains unprintable characters.
  • TM_WRONG_SECURITYMODEL
    Failure, svatModel < 0.
  • TM_WRONG_SECURITYLEVEL
    Failure, svatLevel is not 1, or 2, or 3
  • TM_WRONG_MATCH
    Failure, svatMatch is not 0, or 1, or 2
  • TM_WRONG_STATUS
    Failure, svatStatus is not 1, or 2, or 3
  • TM_RECORD_NOTFOUND
    The entry was not found in the linked list.


Table of Contents >> SNMP Programmer's Reference