tfAddTrapEntry

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference


#include <trapi.h>


Note Note: The content on this page has been deprecated.
For the new content, please see tfNgAddTrapEntry().


int tfAddTrapEntry (ttSnmpTrapParmsPtr entryPtr);


Function Description

This function lets the user add a new entry to the list of trap sinks. The input is converted into a ttNgSnmpTrapParms and tfNgAddTrapEntry() is called


Parameters

  • entryPtr
    Pointer to the ttSnmpTrapParms to be added.


Returns

  • TM_ENOERROR
    Success.
  • TM_ALLOCATION_ERROR
    Failure to allocate memory for the agent global variables.
  • TM_RECORD_LOCKED
    Failure, trap sinks list is locked
  • TM_NOMORE_ TRAPENTRIES
    Failure, trap sinks list is full
  • TM_PORT_TOOLARGE
    Failure, port specified in stpDestIp is larger than 65535
  • TM_COMMUNITY_TOOLONG
    Failure, stpCommunity is too long
  • TM_COMMUNITY_NOT_PRINTABLE
    Failure, stpCommunity contains unprintable characters
  • TM_EMFILE
    Failure, no more sockets are available
  • TM_ENOBUFS
    Failure, insufficient user memory to complete the operation


Table of Contents >> SNMP Programmer's Reference