tfModifyCommunityTableEntry

Jump to: navigation, search

Table of Contents >> IPv6 Programmer's Reference


#include <trapi.h>


int tfModifyCommunityTableEntry (
ttUser32Bit flags,
ttCharPtr comIndex,
ttSnmpCommunityTablePtr comEntryPtr
);


Function Description

This function lets the user modify an entry in the community table. The community table (RFC 2576) is part of the SNMPv3 framework and provides a way to define a v1/v2x community and map it to an SNMPv3 USM user. The same access rights that apply to the SNMPv3 USM user also apply to the community. The user can call this function any time prior to starting the agent, or during runtime.


Parameters

  • flags
    Not used.
  • comIndex
    Index of the community to modify.
  • comEntryPtr
    A pointer to the ttSnmpCommunityTablePtr structure defining the community table entry to use in place of the current entry.


Returns

  • TM_ENOERROR
    Success.
  • TM_RECORD_NOTFOUND
    Failure, index of the community to modify is not found.
  • TM_ALLOCATION_ERROR
    Failure to allocate memory for the agent global variables.
  • (NULL)
    The provided comEntryPtr is NULL.


Table of Contents >> IPv6 Programmer's Reference