tfInsertAccessEntry
Table of Contents >> SNMP Programmer's Reference
| #include <trapi.h> |
| int tfInsertAccessEntry | (ttSnmpVacmAccessTablePtr accessTablePtr); |
Function Description
This function inserts the new entry into the linked list of ttSnmpUsmUserTable's, if the compound table index does not coincide 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 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 inserted.
Returns
- TM_ENOERROR
- Success.
- TM_ALLOCATION_ERROR
- Failure to allocate memory for the agent global variables.
- TM_WRONG_SECURITYNAME_LENGTH
- Failure, svgtNameLen is not between 1 and 32.
- TM_SECURITYNAME_NOT_PRINTABLE
- Failure, svgtName contains unprintable characters.
- TM_WRONG_GROUPNAME_LENGTH
- Failure, svgtGroupNameLen is not between 1 and 32.
- TM_GROUPNAME_NOT_PRINTABLE
- Failure, svgtGroupName contains unprintable characters.
- TM_WRONG_SECURITYMODEL
- Failure, svatModel < 0.
- TM_WRONG_MATCH
- Failure, svatMatch is not 0, or 1, or 2
- TM_WRONG_STATUS
- Failure, svatStatus is not 1, or 2, or 3