aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/net/trap.h
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
committerWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
commit0cc9b20c15460213e488bf5e70963b941482f628 (patch)
treebb0143245583ec846630f39bfa2258dba640ccd7 /sdk/net/trap.h
parent0e084ade5069756d487b5c948c48b777e37c00c9 (diff)
Add source.
Diffstat (limited to 'sdk/net/trap.h')
-rw-r--r--sdk/net/trap.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/sdk/net/trap.h b/sdk/net/trap.h
new file mode 100644
index 0000000..b903d5d
--- /dev/null
+++ b/sdk/net/trap.h
@@ -0,0 +1,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