tfInsertSec2GroupEntry
Table of Contents >> SNMP Programmer's Reference
#include <trapi.h> |
int tfInsertSec2GroupEntry | (ttSnmpVacmSec2GroupTablePtr sec2GroupTablePtr); |
Function Description
This function inserts the entry from the linked list of ttSnmpVacmSec2GroupsTable's. The struct ttSnmpVacmAccessTable is defined in trsnmpv3.h The table index consists of svgtModel and svgtName.
Parameters
- sec2GroupTablePtr
- Input parameter, pointer to the ttSnmpVacmSec2GroupTable. 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