and added files
[bcm963xx.git] / userapps / opensource / net-snmp / apps / notification_log.h
diff --git a/userapps/opensource/net-snmp/apps/notification_log.h b/userapps/opensource/net-snmp/apps/notification_log.h
new file mode 100644 (file)
index 0000000..ceb9429
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef NOTIFICATION_LOG_H
+#define NOTIFICATION_LOG_H
+#include <net-snmp/agent/agent_handler.h>
+
+/*
+ * function declarations 
+ */
+void            init_notification_log(void);
+Netsnmp_Node_Handler nlmLogTable_handler;
+Netsnmp_Node_Handler nlmLogVariableTable_handler;
+
+void
+                log_notification(struct hostent *host, netsnmp_pdu *pdu,
+                                 netsnmp_transport *transport);
+
+#define NETSNMP_DS_APP_DONT_LOG    9    /* must match notification_log. */
+
+/*
+ * column number definitions for table nlmLogTable 
+ */
+#define COLUMN_NLMLOGINDEX             1
+#define COLUMN_NLMLOGTIME              2
+#define COLUMN_NLMLOGDATEANDTIME               3
+#define COLUMN_NLMLOGENGINEID          4
+#define COLUMN_NLMLOGENGINETADDRESS            5
+#define COLUMN_NLMLOGENGINETDOMAIN             6
+#define COLUMN_NLMLOGCONTEXTENGINEID           7
+#define COLUMN_NLMLOGCONTEXTNAME               8
+#define COLUMN_NLMLOGNOTIFICATIONID            9
+
+/*
+ * column number definitions for table nlmLogVariableTable 
+ */
+#define COLUMN_NLMLOGVARIABLEINDEX             1
+#define COLUMN_NLMLOGVARIABLEID                2
+#define COLUMN_NLMLOGVARIABLEVALUETYPE         3
+#define COLUMN_NLMLOGVARIABLECOUNTER32VAL              4
+#define COLUMN_NLMLOGVARIABLEUNSIGNED32VAL             5
+#define COLUMN_NLMLOGVARIABLETIMETICKSVAL              6
+#define COLUMN_NLMLOGVARIABLEINTEGER32VAL              7
+#define COLUMN_NLMLOGVARIABLEOCTETSTRINGVAL            8
+#define COLUMN_NLMLOGVARIABLEIPADDRESSVAL              9
+#define COLUMN_NLMLOGVARIABLEOIDVAL            10
+#define COLUMN_NLMLOGVARIABLECOUNTER64VAL              11
+#define COLUMN_NLMLOGVARIABLEOPAQUEVAL         12
+
+#endif                          /* NOTIFICATION_LOG_H */