/* * Define SNMP Traps. * $Id$ * Copyright (c) 1997 by Tycho Softworks. * For conditions of distribution and reuse see product license. */ #ifndef __NET_TRAP_H__ #ifndef __NET_SOCKET_H__ #include #endif #define SNMP_TRAP_PORT 162 #define SNMP_TRAP_COLDSTART 0 #define SNMP_TRAP_WARMSTART 1 #define SNMP_TRAP_LINKDOWN 2 #define SNMP_TRAP_LINKUP 3 #define SNMP_TRAP_AUTHFAIL 4 #define SNMP_TRAP_EGPNEIGHBORLOSS 5 #define SNMP_TRAP_ENTERPRISESPECIFIC 6 #ifdef __NAMESPACE #define snmptrap __NAMESPACE(snmptrap) #endif int snmptrap(char *target, char *host, char *community, int id, char *enterprise, char *describe, long uptime); #endif