blob: b903d5d4514a0590d43494649209d36390d7c662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* 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 <net/socket.h>
#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
|