Sends SNMP multiplexing (SMUX) peer traps to the Simple Network Management Protocol (SNMP) agent.
#include <isode/snmp/smux.h>
int smux_trap ( generic, specific, bindings)
int generic; int specific; struct type_SNMP_VarBindList *bindings;
The smux_trap subroutine allows the SMUX peer to generate traps and send them to the SNMP agent. The subroutine sets the generic and specific fields in the trap packet to values specified by the parameters. The subroutine also allows the SMUX peer to send a list of variable bindings to the SNMP agent. The variable bindings are values associated with specific variables. If the trap is to return a set of variables, the variables are sent in the variable binding list.
The subroutine returns NOTOK on failure and OK on success.
If the subroutine is
unsuccessful, the smux_errno global variable is set to one of the
following values:
This subroutine is part of the SNMP Application Programming Interface in the TCP/IP facility.
The smux_close subroutine, smux_error subroutine, smux_init subroutine, smux_register subroutine, smux_response subroutine, smux_simple_open subroutine, smux_wait subroutine.
List of Network Manager Programming References.
RFC 1227, SNMP MUX Protocol and MIB.
SNMP Overview for Programmers in AIX 5L Version 5.1 Communications Programming Concepts.