#include <snmp_dpx.h>
#include <types.h>
unsigned char *mkDPItrape(generic, specific, value_list, enterprise_oid)
long int generic; /* 4 octet integer */
long int specific;
struct dpi_set_packet *value_list;
char *enterprise_oid;
- Parameters:
-
- generic
- The generic field for the SNMP TRAP packet.
- specific
- The specific field for the SNMP TRAP packet.
- value_list
- A pointer to a structure dpi_set_packet, which contains one or
more variables to be sent with the SNMP TRAP packet. Or NULL if no
variables are to be sent.
- enterprise_oid
- A pointer to a character string representing the enterprise object
ID (in ASN.1 notation, for example, 1.3.6.1.4.1.2.2.1.4). Or NULL
if you want the SNMP agent to use its own enterprise object ID.
Description: The mkDPItrape()
routine can be used to create an extended trap. It is basically
the same as the mkDPItrap() routine, but with it you can pass a list
of variables, and also an enterprise object ID.