summaryrefslogtreecommitdiff
path: root/agent/mibgroup/misc/ipfwacc.h
diff options
context:
space:
mode:
authorHideki Yamane <henrich@debian.org>2014-03-30 19:38:48 +0900
committerHideki Yamane <henrich@debian.org>2014-03-30 19:38:48 +0900
commit7769a9595c3da9a35f31b42451b1f6c3ed4004fa (patch)
tree009bf8fd68af6bb1129e07dd8c1ed205010d81f8 /agent/mibgroup/misc/ipfwacc.h
parent2e7891b0311204e0ecd5dc4a4334df01f3a6a1b4 (diff)
downloadpkg-net-snmp-7769a9595c3da9a35f31b42451b1f6c3ed4004fa.tar.gz
Imported Upstream version 5.7.2~dfsg
Diffstat (limited to 'agent/mibgroup/misc/ipfwacc.h')
-rw-r--r--agent/mibgroup/misc/ipfwacc.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/agent/mibgroup/misc/ipfwacc.h b/agent/mibgroup/misc/ipfwacc.h
new file mode 100644
index 0000000..639c739
--- /dev/null
+++ b/agent/mibgroup/misc/ipfwacc.h
@@ -0,0 +1,54 @@
+/*
+ * MIB group interface - ipfwacc.h
+ * IP accounting through firewall rules
+ */
+#ifndef _MIBGROUP_IPFWACC_H
+#define _MIBGROUP_IPFWACC_H
+
+/*
+ * we use header_simple_table from the util_funcs module
+ */
+
+config_require(util_funcs/header_simple_table)
+
+ /*
+ * add the mib we implement to the list of default mibs to load
+ */
+config_add_mib(UCD-IPFWACC-MIB)
+
+ /*
+ * Magic number definitions:
+ */
+#define IPFWACCINDEX 1
+#define IPFWACCSRCADDR 2
+#define IPFWACCSRCNM 3
+#define IPFWACCDSTADDR 4
+#define IPFWACCDSTNM 5
+#define IPFWACCVIANAME 6
+#define IPFWACCVIAADDR 7
+#define IPFWACCPROTO 8
+#define IPFWACCBIDIR 9
+#define IPFWACCDIR 10
+#define IPFWACCBYTES 11
+#define IPFWACCPACKETS 12
+#define IPFWACCNSRCPRTS 13
+#define IPFWACCNDSTPRTS 14
+#define IPFWACCSRCISRNG 15
+#define IPFWACCDSTISRNG 16
+#define IPFWACCPORT1 17
+#define IPFWACCPORT2 18
+#define IPFWACCPORT3 19
+#define IPFWACCPORT4 20
+#define IPFWACCPORT5 21
+#define IPFWACCPORT6 22
+#define IPFWACCPORT7 23
+#define IPFWACCPORT8 24
+#define IPFWACCPORT9 25
+#define IPFWACCPORT10 26
+ /*
+ * function definitions
+ */
+ extern void init_ipfwacc(void);
+ extern FindVarMethod var_ipfwacc;
+
+#endif /* _MIBGROUP_IPFWACC_H */