tfModifyTrapEntry

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference

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


#include <trapi.h>


int tfModifyTrapEntry (
ttSnmpTrapParmsPtr targetPtr,
ttSnmpTrapParmsPtr sourcePtr
);


Function Description

This function lets the user modify the targeted trap in the list of trap sinks.


Parameters

  • targetPtr
    Input Parameter, this is the existing trap used for looking up the trap in the list of trap sinks.
  • sourcePtr
    Input Parameter, this is the new information to be copied into the trap that is being modified.


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_RECORD_NOTFOUND
    Failure, target is not found.
  • TM_PORT_TOOLARGE
    Failure, trap port is larger than 65535
  • TM_COMMUNITY_TOOLONG
    Failure, source community is too long
  • TM_COMMUNITY_NOT_PRINTABLE
    Failure, source community contains unprintable characters


Table of Contents >> SNMP Programmer's Reference