summaryrefslogtreecommitdiff
path: root/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup')
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable.h9
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticAveragePre-FEC.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticCNUIndex.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticMasterIndex.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticReset.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxBcast.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxByte.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxCrc.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxDropped.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxMcast.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxPkt.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxShort.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxBcast.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxByte.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxDropped.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxMcast.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxPkt.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxShort.m2d35
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/table-modEoCCNURealTimeStatisticTable.m2d103
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-FIRST.txt167
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-modEoCCNURealTimeStatisticTable.txt877
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.c234
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.h292
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.c617
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.h96
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.c995
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.h195
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.c551
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.h288
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_enums.h62
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.c1942
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.h106
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_oids.h69
33 files changed, 7198 insertions, 0 deletions
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable.h
new file mode 100644
index 0000000000..bacc418bcc
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable.h
@@ -0,0 +1,9 @@
+ /*
+ * other required module components
+ */
+ /* *INDENT-OFF* */
+config_require(sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable)
+config_require(sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface)
+config_require(sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access)
+config_require(sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get)
+config_require(sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set)
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticAveragePre-FEC.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticAveragePre-FEC.m2d
new file mode 100644
index 0000000000..81f0cd2ae6
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticAveragePre-FEC.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticAveragePreFEC
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticCNUIndex.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticCNUIndex.m2d
new file mode 100644
index 0000000000..cc180eacce
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticCNUIndex.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticCNUIndex
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticMasterIndex.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticMasterIndex.m2d
new file mode 100644
index 0000000000..eef812ea36
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticMasterIndex.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticMasterIndex
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticReset.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticReset.m2d
new file mode 100644
index 0000000000..6288c9081d
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticReset.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticReset
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = u_long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = 0@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxBcast.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxBcast.m2d
new file mode 100644
index 0000000000..30fdfbb05a
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxBcast.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxBcast
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxByte.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxByte.m2d
new file mode 100644
index 0000000000..62e5f8c19f
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxByte.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxByte
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = U64@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxCrc.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxCrc.m2d
new file mode 100644
index 0000000000..f990dca842
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxCrc.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxCrc
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxDropped.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxDropped.m2d
new file mode 100644
index 0000000000..0d1a99263a
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxDropped.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxDropped
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxMcast.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxMcast.m2d
new file mode 100644
index 0000000000..69d8735894
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxMcast.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxMcast
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxPkt.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxPkt.m2d
new file mode 100644
index 0000000000..428b03520c
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxPkt.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxPkt
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxShort.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxShort.m2d
new file mode 100644
index 0000000000..6b1257923a
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticRxShort.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticRxShort
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxBcast.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxBcast.m2d
new file mode 100644
index 0000000000..d70119470a
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxBcast.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticTxBcast
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxByte.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxByte.m2d
new file mode 100644
index 0000000000..57b45ac490
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxByte.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticTxByte
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = U64@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxDropped.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxDropped.m2d
new file mode 100644
index 0000000000..bceef70776
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxDropped.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticTxDropped
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxMcast.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxMcast.m2d
new file mode 100644
index 0000000000..23b7b4ac19
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxMcast.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticTxMcast
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxPkt.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxPkt.m2d
new file mode 100644
index 0000000000..c5c5c193ea
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxPkt.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticTxPkt
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxShort.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxShort.m2d
new file mode 100644
index 0000000000..543a89b1a1
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/node-modEoCCNURealTimeStatisticTxShort.m2d
@@ -0,0 +1,35 @@
+########################################################################
+##
+## mib2c node setting for modEoCCNURealTimeStatisticTxShort
+##
+## Remove the '##' comment delimeter to change settings
+##
+########################################################################
+## Node declaration type? This is the C type to be used when
+## declaring a variable to hold a value for this column. It
+## is strongly recommended that you do not change this value.
+## If you do, it is likely to break lots of generated code that
+## you will have to fix.
+##
+## @eval $m2c_decl = long@
+##
+########################################################################
+## Generate/use mapping functions? Useful if the MIB defines
+## a different format or enumerations than you data store uses.
+##
+## @eval $m2c_node_skip_mapping = -1@
+##
+########################################################################
+## Need a length for the value? Most OCTET-STRING based values will
+## need a length, most other types will not. Do not change this one
+## unless you know what you are doing! You will almost certainly need
+## to fix lots of generated code if you do.
+##
+## @eval $m2c_node_needlength = 0@
+##
+########################################################################
+## Skip get? Set this to 1 if you do not want to implement a value
+## for this column.
+##
+## @eval $m2c_node_skip_get = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/table-modEoCCNURealTimeStatisticTable.m2d b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/table-modEoCCNURealTimeStatisticTable.m2d
new file mode 100644
index 0000000000..ece02870c2
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/defaults/table-modEoCCNURealTimeStatisticTable.m2d
@@ -0,0 +1,103 @@
+## ########################################################################
+##
+## mib2c Table setting for modEoCCNURealTimeStatisticTable
+##
+## ########################################################################
+##
+## User context structure type
+##
+@eval $m2c_context_reg = "netsnmp_data_list"@
+##
+## ########################################################################
+##
+## Allocate data structure in row structure? (vs embedd)
+##
+@eval $m2c_data_allocate = 0@
+##
+## ########################################################################
+##
+## Generate code to cache data?
+##
+@eval $m2c_data_cache = 1@
+##
+## ########################################################################
+##
+## Data context structure type
+##
+@eval $m2c_data_context = "generated"@ [generated|NAME]
+##
+## ########################################################################
+##
+## Generate function to initialize row context when created?
+##
+@eval $m2c_data_init = 1@
+##
+## ########################################################################
+##
+## Persistence of data context
+## // 0:persistent, 1:semi-transient, 2:transient
+##
+@eval $m2c_data_transient = 1@
+##
+## ########################################################################
+##
+## Include some example code?
+##
+@eval $m2c_include_examples = 1@
+##
+## ########################################################################
+##
+## Generate code for irreversible_commit mode?
+##
+@eval $m2c_irreversible_commit = 0@
+##
+## ########################################################################
+##
+## Data access method
+##
+@eval $m2c_table_access = "container-cached"@
+##
+## ########################################################################
+##
+## Generate row dependency function?
+##
+@eval $m2c_table_dependencies = 0@
+##
+## ########################################################################
+##
+## Generate data store/restore functions for persistent storage?
+##
+@eval $m2c_table_persistent = 0@
+##
+## ########################################################################
+##
+## Generate code for dynamic row creation?
+##
+@eval $m2c_table_row_creation = 0@
+##
+## ########################################################################
+##
+## Generate code for settable objects?
+##
+@eval $m2c_table_settable = 1@
+##
+## ########################################################################
+##
+## Skip mapping between data context and MIB formats?
+## // 0:generate maps, 1:skip maps, -1:skip unless enum/oid
+##
+@eval $m2c_table_skip_mapping = -1@
+##
+## ########################################################################
+##
+## Generate code for sparse tables?
+##
+@eval $m2c_table_sparse = 0@
+##
+## ########################################################################
+##
+## Generate Makefile/AgentX code?
+##
+@eval $mfd_generate_makefile = 0@
+@eval $mfd_generate_subagent = 0@
+##
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-FIRST.txt b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-FIRST.txt
new file mode 100644
index 0000000000..dbede6aa00
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-FIRST.txt
@@ -0,0 +1,167 @@
+************************************************************************
+modEoCCNURealTimeStatisticTable README
+------------------------------------------------------------------------
+This document describes the results of the mib2c code generation
+system using the mfd code generation template. The resulting files
+are documented both in this README file as well as per-table specific
+README files. All of the files generated by this run of mib2c will
+begin with the modEoCCNURealTimeStatisticTable prefix.
+
+Quick Start
+-----------
+For those interested in a quick start, to get a pseudo-todo list, try
+this command in directory with the generated code:
+
+ grep -n "TODO:" *.[ch] | sed 's/\([^ ]*\) \(.*\)TODO\(.*\)/\3 (\1)/' | sort -n
+
+Key:
+ :o: Optional
+ :r: Recommended
+ :M: Mandatory
+ :A: Advanced users
+
+This will give you and ordered list of places in the code that you
+may (or must) take a closer look at).
+
+You may also want to take a look at the on-line tutorial, found here:
+
+ http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/index.html
+
+
+MIBs For Dummies Overview
+-------------------------
+The MIBs For Dummies (MFD) configuration files have been written to help
+SNMP novices implement SNMP MIBs. This section will be a brief
+introduction to some of the general concepts you should be familar with.
+
+ Managed Information Base (MIB)
+ ------------------------------
+ A SNMP MIB (Managed information base) is a text file that describes the
+ syntax for some set of data objects. The MIB creates a correlation
+ between an ASCII name for an object and a number OID (Object Identifier).
+ The SNMP protocol communicates information using the OIDs, and the MIB
+ allows tools to display a name, which we humans find easier to deal with.
+
+ To use an analogy, a MIB is much like a menu at a restaurant. If you've
+ ever been to a reataurant and ordered a meal, and later received a bill
+ that simply had '#6' on it, you get the idea. The name is easier for
+ the customers to remember, and the waiters and chefs use the number for
+ efficency.
+
+
+ Scalars
+ -------
+ A scalar variable is a unique object in a MIB which can represent
+ a single value. For example, the SNMP standard MIB-II defines a
+ variable, sysContact.0, which is a string containing the contact
+ information for the person in charge of a particular agent. Note
+ that scalar variable always end with '.0'.
+
+
+ Rows and Tables
+ ---------------
+ When a group of related attributes occur more than once, they can be
+ grouped together in a table. A table has an index, which uniquely
+ identifies a particular row, and data columns, which contain the
+ attributes for that row.
+
+ For example, the SNMP standard MIB-II defines a table, ifTable, which
+ contains information on the ethernet interfaces on a system.
+
+
+ Data Structures
+ ---------------
+ The code generated by the MFD configuration files has a few important
+ structures.
+
+
+ The Data Context
+ ----------------
+ The data context structure should contain the necessary information
+ to provide the data for the columns in a given row. As long as you
+ can extract the data for a column for the data context, the data context
+ can be anything you want: a pointer to an existing structure, the
+ parameters needed for a function call or an actual copy of the data.
+
+ By default, a data context structure is generated with storage for
+ all the data in a row. Information on changing the default is presented
+ later on in this help.
+
+
+ The MIB Context
+ ---------------
+ The MIB context structure is generated with storage for all the
+ indexes of a table. This data will be used when searching for the
+ correct row to process for a request.
+
+
+ The Row Request Context
+ -----------------------
+ Each table will have a unique data structure for holding data during
+ the processing of a particular row. The row request context contains
+ the registration context (that you supply during initilization),
+ the data context, the MIB context, the undo context (for settable
+ tables) and other data. There is also a netsnmp_data_list, which can
+ be used to temporary storage during processing.
+
+
+ The Table Registration Pointer
+ ------------------------------
+ During initilization, you may provide a pointer to arbitrary data for
+ you own use. This pointer will be saved in the row request context,
+ and is passed as a parameter to several functions. It is not required,
+ and is provided as a way for you to access table specific data in
+ the generated code.
+
+
+
+These files are top-level files potentially useful for all the tables:
+------------------------------------------------------------------------
+
+ File : modEoCCNURealTimeStatisticTable_Makefile
+ ----------------------------------------------------------------------
+ Purpose : Make file for compiling a (sub)agent. This file is only
+ useful if you don't want to compile your code directly
+ into the Net-SNMP master agent.
+ Editable: Optional
+ Usage : make -f modEoCCNURealTimeStatisticTable_Makefile
+
+
+ File : modEoCCNURealTimeStatisticTable_subagent.c
+ ----------------------------------------------------------------------
+ Purpose : This file contains a main() function for an agent or
+ sub-agent and is compiled using the Makefile above.
+
+
+
+
+Table specific README files
+------------------------------------------------------------------------
+Each table for which code was generated has its own README file
+describing the files specifically associated with each table. You
+should probably read these next:
+
+ modEoCCNURealTimeStatisticTable-README-modEoCCNURealTimeStatisticTable.txt
+
+
+
+These are miscellaneous auto-generated code files you generally
+shouldn't edit. They contain code that ties your code together with
+the Net-SNMP agent.
+------------------------------------------------------------------------
+ File : modEoCCNURealTimeStatisticTable.h
+ Purpose : Header file for the module set. Includes config_require
+ macros to auto-load the other code pieces when compiled
+ into the agent.
+
+ File : modEoCCNURealTimeStatisticTable_oids.h
+ Purpose : C #define definitions of the tables, columns, and OIDs
+
+ File : modEoCCNURealTimeStatisticTable_enums.h
+ Purpose : C #define definitions of the enumerated type values for
+ each column of each table that requires them.
+
+ File : modEoCCNURealTimeStatisticTable_interface.c
+ Purpose : MFD interface to Net-SNMP. This auto-generated code ties the
+ functions you will fill out to the code that the agent needs.
+
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-modEoCCNURealTimeStatisticTable.txt b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-modEoCCNURealTimeStatisticTable.txt
new file mode 100644
index 0000000000..97982bdc28
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable-README-modEoCCNURealTimeStatisticTable.txt
@@ -0,0 +1,877 @@
+************************************************************************
+modEoCCNURealTimeStatisticTable README
+------------------------------------------------------------------------
+ This readme file describes the code generated by mib2c (using the MIBs
+ for Dummies (MFD) configuration file). The code generated was
+ generated specifically for the following SNMP table:
+
+ modEoCCNURealTimeStatisticTable
+
+ Your code will be called when the snmp agent receives requests for
+ the modEoCCNURealTimeStatisticTable table. The agent will start by looking for the right
+ row in your existing data to operate on, if one exists.
+
+
+ Configuration Variables
+ ------------------------------------------------------------
+ Some variables used for code generation may be set to affect the code
+ generation. You may override these variables by setting them in the
+ file defaults/table-modEoCCNURealTimeStatisticTable.m2d, and then re-running mib2c.
+
+ m2c_table_settable (currently '1')
+ --------------------------------------------------------
+ This variable determines whether or not code is generated to support
+ MIB object which have an access of read-write or read-create. The
+ default is set based on whether or not the table contains writable
+ objects, but can be over-ridden.
+
+ Syntax: @eval $m2c_table_settable = 0@
+
+
+ m2c_table_dependencies (currently '0')
+ --------------------------------------------------------
+ This variable determines whether or not code is generated to support
+ checking dependencies between columns, rows or tables. The default
+ is set based on whether or not the table contains writable objects,
+ but can be over-ridden.
+
+ Syntax: @eval $m2c_table_dependencies = 0@
+
+
+ m2c_table_row_creation (currently '0')
+ --------------------------------------------------------
+ This variable determines whether or not code is generated to support
+ checking creation of new rows via SNMP. The default is set based on
+ whether or not the table contains read-create objects, but can be
+ over-ridden.
+
+ Syntax: @eval $m2c_table_row_creation = 0@
+
+
+ m2c_context_reg (currently 'netsnmp_data_list')
+ --------------------------------------------------------
+ This variable contains the structure name to typedef for the
+ modEoCCNURealTimeStatisticTable_registration.
+
+ During initilization, you will provide a pointer to a structure of
+ this type. This pointer is used as a parameter to many functions so
+ that you have access to your registration data. The default is a
+ netsnmp_data_list pointer, which will allow you to keep multiple
+ pointers tagged by a text name. If you have a new or existing structure
+ you would rather use, you can redefine this variable.
+
+
+ To avoid regenerating code, you may also change this typedef directly
+ in the modEoCCNURealTimeStatisticTable.h header.
+
+ Syntax: @eval $m2c_context_reg = "struct my_registration_context@
+
+
+ m2c_data_context (currently 'generated')
+ --------------------------------------------------------
+ This variable contains the structure name to typedef for the
+ modEoCCNURealTimeStatisticTable_data.
+
+ This typedef is used in the row request context structure for the table,
+ modEoCCNURealTimeStatisticTable_rowreq_ctx.
+
+ The typedef in the primary table context will be used for the data and
+ undo structure types. This structure should contain all the data
+ needed for all the columns in the table. The default is 'generated',
+ which will cuase a new data strcuture to be generated with data members
+ for each column.
+
+ To avoid regenerating code, you may also change this typedef directly
+ in the modEoCCNURealTimeStatisticTable.h header.
+
+ Syntax: @eval $m2c_data_context = "struct my_data_context"@
+
+
+ m2c_data_allocate (currently '0')
+ --------------------------------------------------------
+ This variable determines whether or not the data context (see above)
+ requires memory to be allocated. The default generated data structure
+ does not. If you are using a custom data context which needs to
+ allocate memory, override this value and two additional functions
+ will be generated:
+
+ modEoCCNURealTimeStatisticTable_allocate_data
+ modEoCCNURealTimeStatisticTable_release_data
+
+ Syntax: @eval $m2c_data_allocate = 1@
+
+
+ m2c_data_init (currently '1')
+ --------------------------------------------------------
+ This variable determines whether or not the data context (see above)
+ or any other items you have added to the table context requires
+ initialization. The default generated data structure does not. If you
+ are using a custom data context or have added items needing initialization
+ to the table context, override this value and two additional functions
+ will be generated:
+
+ modEoCCNURealTimeStatisticTable_rowreq_ctx_init
+ modEoCCNURealTimeStatisticTable_rowreq_ctx_cleanup
+
+ Syntax: @eval 1 = 1@
+
+
+ m2c_table_access (currently 'container-cached')
+ ------------------------------------------------------------------
+ This variable determines which data interface will be use to generate
+ code for looking up data for a given index. The default is the
+ 'container-cached' access code, which caches the data in a netsnmp-
+ container (usually a sorted array).
+
+ Available options can be determined by checking for mib2c configuration
+ files that begin with 'mfd-access-*'.
+
+ Syntax: @eval $m2c_table_access = 'container-cached'@
+
+
+ m2c_include_examples (currently '1')
+ ------------------------------------------------------------------
+ This variable determines whether or not to generate example code. The
+ default is to generate example code.
+
+ Syntax: @eval $m2c_include_examples = 0@
+
+
+ m2c_data_transient (currently '1')
+ ------------------------------------------------------------------
+ This variable determines how the generated example code deals with the
+ data during data lookup. See the table readme file for details on how
+ the current table access method interprets this value. In general,
+ a value of 0 indicates persistent data, 1 indicates semi-transient and
+ 2 indicates transient data.
+
+ Syntax: @eval $m2c_data_transient = 0@
+
+
+ Index(es) for the modEoCCNURealTimeStatisticTable table
+ ------------------------------------------------------------
+ The index(es) for the modEoCCNURealTimeStatisticTable table are:
+
+ modEoCCNURealTimeStatisticMasterIndex:
+ Syntax: INTEGER
+ DataType: INTEGER
+ ASN type: ASN_INTEGER
+ C-code type: long
+ modEoCCNURealTimeStatisticCNUIndex:
+ Syntax: INTEGER
+ DataType: INTEGER
+ ASN type: ASN_INTEGER
+ C-code type: long
+
+ You should know how to set all these values from your data context,
+ modEoCCNURealTimeStatisticTable_data.
+
+
+************************************************************************
+modEoCCNURealTimeStatisticTable File Overview
+------------------------------------------------------------------------
+ Several files have been generated to implement the modEoCCNURealTimeStatisticTable
+ table. We'll go through these files, one by one, explaining each and
+ letting you know which you need to edit.
+
+
+File: modEoCCNURealTimeStatisticTable_data_access.[c|h]
+------------------------------------------------------------------------
+ The modEoCCNURealTimeStatisticTable_data_access file contains the interface to your data in
+ its raw format. These functions are used to build the row cache or
+ locate the row (depending on the table access method).
+
+ Set MIB context
+ -----------------
+ TODO : Set MIB index values
+ FUNC : modEoCCNURealTimeStatisticTable_indexes_set
+ WHERE: modEoCCNURealTimeStatisticTable_data_access.c
+
+ This is a convenience function for setting the index context from
+ the native C data. Where necessary, value mapping should be done.
+
+ This function should update the table index values (found in
+ tbl_idx) for the given raw data.
+
+
+ container summary
+ ------------------------
+ The container data access code is for cases when you want to
+ store your data in the agent/sub-agent.
+
+ ... to be continued...
+
+
+ cache summary
+ ------------------------
+ The container-cached data access code is for cases when you want to
+ cache your data in the agent/sub-agent.
+
+ ... to be continued...
+
+
+
+
+File: modEoCCNURealTimeStatisticTable_enums.h
+------------------------------------------------------------------------
+ This file contains macros for mapping enumeration values when the
+ enumerated values defined by the MIB do not match the values used
+ internally.
+
+ Review this file to see if any values need to be updated.
+
+
+File: modEoCCNURealTimeStatisticTable_data_get.c
+------------------------------------------------------------------------
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticTxPkt_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxPkt_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticTxByte_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxByte_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticTxBcast_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxBcast_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticTxMcast_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxMcast_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxCrc_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticTxShort_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxShort_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticTxDropped_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticRxDropped_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticAveragePreFEC_get
+
+ Get data for column
+ -------------------
+ TODO : retrieve column data from raw data
+ FUNC : modEoCCNURealTimeStatisticReset_get
+
+
+
+File: modEoCCNURealTimeStatisticTable_data_set.c
+------------------------------------------------------------------------
+
+ This code was generated based on the following assumptions or settings:
+
+ 1) Some of the values for this table have DEPENDENCIES on other objects.
+
+ DEPENDENCIES on other objects complicates SET request processing. When
+ one or more columns in a table depend on another object (in the same
+ table, or in another table), a DEPENDENCY exists. For example, if you
+ have a table that determine a color with three columns (red, green and
+ blue) that define the percentage of each primary color, the total for
+ the three columns must equal 100 percent. So, in addition to checking
+ that each colums has a valid value between 0 and 100, the total of
+ all three columns must equal 100.
+
+ Set $m2c_table_dependencies = 0 in defaults/table-modEoCCNURealTimeStatisticTable.m2d
+ and regenerate code if this assumption is incorrect.
+
+ 2) This table does not support ROW CREATION.
+
+ Supporting ROW CREATION allows new rows to be created via SNMP requests.
+
+
+
+ Undo setup
+ ----------
+ TODO : save data for undo
+ FUNC : modEoCCNURealTimeStatisticTable_undo_setup
+
+ This function will be called before the individual undo_setup functions are
+ called. This is where you should save any undo information which is not
+ directly related to a particular column. This function will only be called
+ once per row. After this function is called, any column which is being
+ set will have its individual node undo_setup function called.
+
+
+
+ Check value for column
+ ----------------------
+ TODO : perform additional validations on values for a set request
+ FUNC : modEoCCNURealTimeStatisticReset_check_value
+
+ The generated code will automatically validate incoming requests against
+ all the requirements specified by the syntax of the MIB. However, it is
+ often the case that additional requirements are specified in the
+ description of a MIB object. Those type of validations should be checked
+ in this function.
+
+
+ Undo setup for column
+ ---------------------
+ TODO : save the value for column
+ FUNC : modEoCCNURealTimeStatisticReset_undo_setup
+
+ After the table level undo setup function has been called, the individual
+ node undo setup functions will be called for columns which are being set.
+
+
+ Set value for column
+ --------------------
+ TODO : set the value for column
+ FUNC : modEoCCNURealTimeStatisticReset_set
+
+ After all the validations have been passed, this function will be called to
+ set the new value.
+
+
+ Undo value for column
+ ---------------------
+ TODO : undo set for column
+ FUNC : modEoCCNURealTimeStatisticReset_undo
+
+ If an error occurs after a column has been set, this function will be called
+ to undo the set and restore the previous state.
+
+
+
+ Commit changes
+ --------------
+ TODO : commit changes
+ FUNC : modEoCCNURealTimeStatisticTable_commit
+
+ After all values have been set, the commit function will be called.
+
+
+
+
+
+************************************************************************
+modEoCCNURealTimeStatisticTable Reference
+------------------------------------------------------------------------
+
+Function flow
+----------------------------------------------------
+To give you the general idea of how the functions flow works, this
+example flow is from a complete table implementation.
+
+NOTE: Depending on your configuration, some of the functions used in the
+ examples below may not have been generated for the
+ modEoCCNURealTimeStatisticTable table.
+
+ Conversely, the examples below may not include some functions that
+ were generated for the modEoCCNURealTimeStatisticTable table.
+
+To watch the flow of the modEoCCNURealTimeStatisticTable table, use the
+following debug tokens:
+
+ snmp_agent
+ helper:table:req
+ modEoCCNURealTimeStatisticTable
+ verbose:modEoCCNURealTimeStatisticTable
+ internal:modEoCCNURealTimeStatisticTable
+
+e.g.
+ snmpd -f -Le -DmodEoCCNURealTimeStatisticTable,verbose:modEoCCNURealTimeStatisticTable,internal:modEoCCNURealTimeStatisticTable
+
+
+Initialization
+--------------------------------
+init_xxxTable: called xxx.c
+ initialize_table_xxxTable xxx.c
+ _xxxTable_initialize_interface xxx_interface.c
+ xxxTable_init_data xxx_data_access.c
+ _xxxTable_container_init xxx_interface.c
+ xxxTable_container_init xxx_data_access.c
+
+
+GET Request
+--------------------------------
+_cache_load xxx_interface.c
+ xxxTable_cache_load xxx_data_access.c
+ xxxTable_allocate_rowreq_ctx xxx_interface.c
+ xxxTable_allocate_data xxx_data_get.c
+ xxxTable_rowreq_ctx_init xxx_data_get.c
+ xxxTable_indexes_set xxx_data_get.c
+ xxxTable_indexes_set_tbl_idx xxx_data_get.c
+
+xxxTable_pre_request
+
+_mfd_xxxTable_object_lookup xxx_interface.c
+ xxxTable_row_prep xxx_data_access.c
+
+_mfd_xxxTable_get_values xxx_interface.c
+ _mfd_xxxTable_get_column xxx_interface.c
+ yyy_get xxx_data_get.c
+
+xxxTable_post_request
+
+
+GETNEXT Request
+--------------------------------
+_cache_load ...
+xxxTable_pre_request ...
+_mfd_xxxTable_object_lookup ...
+_mfd_xxxTable_get_values ...
+xxxTable_post_request ...
+
+
+SET Request: success
+--------------------------------
+_cache_load ...
+xxxTable_pre_request
+_mfd_xxxTable_object_lookup ...
+
+_mfd_xxxTable_check_objects xxx_interface.c
+ _xxxTable_check_column xxx_interface.c
+ yyy_check_value xxx_data_set.c
+
+_mfd_xxxTable_undo_setup xxx_interface.c
+ xxxTable_allocate_data ...
+ xxxTable_undo_setup xxx_interface.c
+ _xxxTable_undo_setup_column xxx_interface.c
+ yyy_undo_setup xxx_data_set.c
+
+_mfd_xxxTable_set_values xxx_interface.c
+ _xxxTable_set_column xxx_interface.c
+ yyy_set xxx_data_set.c
+
+_mfd_xxxTable_check_dependencies xxx_interface.c
+ xxxTable_check_dependencies xxx_data_set.c
+
+_mfd_xxxTable_commit xxx_interface.c
+ xxxTable_commit xxx_data_set.c
+
+_mfd_xxxTable_undo_cleanup xxx_interface.c
+ xxxTable_undo_cleanup xxx_data_set.c
+ xxxTable_release_data ...
+
+xxxTable_post_request ...
+
+
+SET Request: row creation
+--------------------------------
+_cache_load ...
+xxxTable_pre_request
+
+_mfd_xxxTable_object_lookup ...
+ xxxTable_index_from_oid xxx_interface.c
+ xxxTable_allocate_rowreq_ctx ...
+ ...
+ _xxxTable_check_indexes xxx_interface.c
+ yyy_check_index xxx_data_set.c
+ xxxTable_validate_index xxx_data_set.c
+
+_mfd_xxxTable_check_objects ...
+ _xxxTable_check_column ...
+ yyy_check_value ...
+ _xxxTable_check_column ...
+ yyy_check_value ...
+
+_mfd_xxxTable_undo_setup ...
+_mfd_xxxTable_set_values ...
+_mfd_xxxTable_check_dependencies ...
+_mfd_xxxTable_commit ...
+_mfd_xxxTable_undo_cleanup ...
+xxxTable_post_request ...
+
+
+SET Resuest: value error
+--------------------------------
+_cache_load ...
+xxxTable_pre_request ...
+_mfd_xxxTable_object_lookup ...
+
+_mfd_xxxTable_check_objects ...
+ _xxxTable_check_column ...
+ yyy_check_value ...
+ ERROR:"yyy value not supported"
+
+xxxTable_post_request ...
+
+
+SET Request: commit failure
+--------------------------------
+_cache_load ...
+xxxTable_pre_request ...
+_mfd_xxxTable_object_lookup ...
+_mfd_xxxTable_check_objects ...
+_mfd_xxxTable_undo_setup ...
+_mfd_xxxTable_set_values ...
+_mfd_xxxTable_check_dependencies ...
+
+_mfd_xxxTable_commit ...
+ xxxTable_commit ...
+ ERROR: bad rc -1
+
+_mfd_xxxTable_undo_commit xxx_interface.c
+ xxxTable_undo_commit xxx_data_set.c
+
+_mfd_xxxTable_undo_values xxx_interface.c
+ _xxxTable_undo_column xxx_interface.c
+ yyy_undo xxx_data_set.c
+
+_mfd_xxxTable_undo_cleanup ...
+xxxTable_post_request ...
+
+
+Row release (user initiated)
+--------------------------------
+xxxTable_release_rowreq_ctx xxx_interface.c
+ xxxTable_rowreq_ctx_cleanup xxx_data_get.c
+ xxxTable_release_data xxx_data_get.c
+
+
+
+Table / column details
+----------------------------------------------------
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+*/
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticMasterIndex
+ * modEoCCNURealTimeStatisticMasterIndex is subid 1 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.1
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 1 hashint 0
+ * settable 0
+ *
+ * Ranges: 0 - 20;
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticCNUIndex
+ * modEoCCNURealTimeStatisticCNUIndex is subid 2 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.2
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 1 hashint 0
+ * settable 0
+ *
+ * Ranges: 0 - 10240;
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxPkt
+ * modEoCCNURealTimeStatisticTxPkt is subid 3 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.3
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxPkt
+ * modEoCCNURealTimeStatisticRxPkt is subid 4 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.4
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxByte
+ * modEoCCNURealTimeStatisticTxByte is subid 5 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.5
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is COUNTER64 (based on perltype COUNTER64)
+ * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxByte
+ * modEoCCNURealTimeStatisticRxByte is subid 6 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.6
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is COUNTER64 (based on perltype COUNTER64)
+ * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxBcast
+ * modEoCCNURealTimeStatisticTxBcast is subid 7 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.7
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxBcast
+ * modEoCCNURealTimeStatisticRxBcast is subid 8 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.8
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxMcast
+ * modEoCCNURealTimeStatisticTxMcast is subid 9 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.9
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxMcast
+ * modEoCCNURealTimeStatisticRxMcast is subid 10 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.10
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxCrc
+ * modEoCCNURealTimeStatisticRxCrc is subid 11 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.11
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxShort
+ * modEoCCNURealTimeStatisticTxShort is subid 12 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.12
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxShort
+ * modEoCCNURealTimeStatisticRxShort is subid 13 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.13
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxDropped
+ * modEoCCNURealTimeStatisticTxDropped is subid 14 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.14
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxDropped
+ * modEoCCNURealTimeStatisticRxDropped is subid 15 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.15
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticAveragePreFEC
+ * modEoCCNURealTimeStatisticAveragePreFEC is subid 16 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.16
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticReset
+ * modEoCCNURealTimeStatisticReset is subid 17 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.17
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 1 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ * Enum range: 2/8. Values: none(0), clear(1)
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
+ */
+
+
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.c
new file mode 100644
index 0000000000..81e2ca49dd
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.c
@@ -0,0 +1,234 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 14170 $ of $
+ *
+ * $Id:$
+ */
+/** \page MFD helper for modEoCCNURealTimeStatisticTable
+ *
+ * \section intro Introduction
+ * Introductory text.
+ *
+ */
+/*
+ * standard Net-SNMP includes
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
+/*
+ * include our parent header
+ */
+#include "modEoCCNURealTimeStatisticTable.h"
+
+#include <net-snmp/agent/mib_modules.h>
+
+#include "modEoCCNURealTimeStatisticTable_interface.h"
+
+oid modEoCCNURealTimeStatisticTable_oid[] =
+ { MODEOCCNUREALTIMESTATISTICTABLE_OID };
+int modEoCCNURealTimeStatisticTable_oid_size =
+OID_LENGTH(modEoCCNURealTimeStatisticTable_oid);
+
+modEoCCNURealTimeStatisticTable_registration
+ modEoCCNURealTimeStatisticTable_user_context;
+
+void initialize_table_modEoCCNURealTimeStatisticTable(void);
+void shutdown_table_modEoCCNURealTimeStatisticTable(void);
+
+
+/**
+ * Initializes the modEoCCNURealTimeStatisticTable module
+ */
+void
+init_modEoCCNURealTimeStatisticTable(void)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:init_modEoCCNURealTimeStatisticTable", "called\n"));
+
+ /*
+ * TODO:300:o: Perform modEoCCNURealTimeStatisticTable one-time module initialization.
+ */
+
+ /*
+ * here we initialize all the tables we're planning on supporting
+ */
+ if (should_init("modEoCCNURealTimeStatisticTable"))
+ initialize_table_modEoCCNURealTimeStatisticTable();
+
+} /* init_modEoCCNURealTimeStatisticTable */
+
+/**
+ * Shut-down the modEoCCNURealTimeStatisticTable module (agent is exiting)
+ */
+void
+shutdown_modEoCCNURealTimeStatisticTable(void)
+{
+ if (should_init("modEoCCNURealTimeStatisticTable"))
+ shutdown_table_modEoCCNURealTimeStatisticTable();
+
+}
+
+/**
+ * Initialize the table modEoCCNURealTimeStatisticTable
+ * (Define its contents and how it's structured)
+ */
+void
+initialize_table_modEoCCNURealTimeStatisticTable(void)
+{
+ modEoCCNURealTimeStatisticTable_registration *user_context;
+ u_long flags;
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:initialize_table_modEoCCNURealTimeStatisticTable", "called\n"));
+
+ /*
+ * TODO:301:o: Perform modEoCCNURealTimeStatisticTable one-time table initialization.
+ */
+
+ /*
+ * TODO:302:o: |->Initialize modEoCCNURealTimeStatisticTable user context
+ * if you'd like to pass in a pointer to some data for this
+ * table, allocate or set it up here.
+ */
+ /*
+ * a netsnmp_data_list is a simple way to store void pointers. A simple
+ * string token is used to add, find or remove pointers.
+ */
+ user_context =
+ netsnmp_create_data_list("modEoCCNURealTimeStatisticTable", NULL,
+ NULL);
+
+ /*
+ * No support for any flags yet, but in the future you would
+ * set any flags here.
+ */
+ flags = 0;
+
+ /*
+ * call interface initialization code
+ */
+ _modEoCCNURealTimeStatisticTable_initialize_interface(user_context,
+ flags);
+} /* initialize_table_modEoCCNURealTimeStatisticTable */
+
+/**
+ * Shutdown the table modEoCCNURealTimeStatisticTable
+ */
+void
+shutdown_table_modEoCCNURealTimeStatisticTable(void)
+{
+ /*
+ * call interface shutdown code
+ */
+ _modEoCCNURealTimeStatisticTable_shutdown_interface
+ (&modEoCCNURealTimeStatisticTable_user_context);
+}
+
+/**
+ * extra context initialization (eg default values)
+ *
+ * @param rowreq_ctx : row request context
+ * @param user_init_ctx : void pointer for user (parameter to rowreq_ctx_allocate)
+ *
+ * @retval MFD_SUCCESS : no errors
+ * @retval MFD_ERROR : error (context allocate will fail)
+ */
+int
+modEoCCNURealTimeStatisticTable_rowreq_ctx_init
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ void *user_init_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_rowreq_ctx_init", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:210:o: |-> Perform extra modEoCCNURealTimeStatisticTable rowreq initialization. (eg DEFVALS)
+ */
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_rowreq_ctx_init */
+
+/**
+ * extra context cleanup
+ *
+ */
+void
+modEoCCNURealTimeStatisticTable_rowreq_ctx_cleanup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_rowreq_ctx_cleanup", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:211:o: |-> Perform extra modEoCCNURealTimeStatisticTable rowreq cleanup.
+ */
+} /* modEoCCNURealTimeStatisticTable_rowreq_ctx_cleanup */
+
+/**
+ * pre-request callback
+ *
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_ERROR : other error
+ */
+int
+modEoCCNURealTimeStatisticTable_pre_request
+ (modEoCCNURealTimeStatisticTable_registration * user_context)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_pre_request", "called\n"));
+
+ /*
+ * TODO:510:o: Perform modEoCCNURealTimeStatisticTable pre-request actions.
+ */
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_pre_request */
+
+/**
+ * post-request callback
+ *
+ * Note:
+ * New rows have been inserted into the container, and
+ * deleted rows have been removed from the container and
+ * released.
+ *
+ * @param user_context
+ * @param rc : MFD_SUCCESS if all requests succeeded
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_ERROR : other error (ignored)
+ */
+int
+modEoCCNURealTimeStatisticTable_post_request
+ (modEoCCNURealTimeStatisticTable_registration * user_context, int rc)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_post_request", "called\n"));
+
+ /*
+ * TODO:511:o: Perform modEoCCNURealTimeStatisticTable post-request actions.
+ */
+
+ /*
+ * check to set if any rows were changed.
+ */
+ if (modEoCCNURealTimeStatisticTable_dirty_get()) {
+ /*
+ * check if request was successful. If so, this would be
+ * a good place to save data to its persistent store.
+ */
+ if (MFD_SUCCESS == rc) {
+ /*
+ * save changed rows, if you haven't already
+ */
+ }
+
+ modEoCCNURealTimeStatisticTable_dirty_set(0); /* clear table dirty flag */
+ }
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_post_request */
+
+
+/** @{ */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.h
new file mode 100644
index 0000000000..0f6dbf891d
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable.h
@@ -0,0 +1,292 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 14170 $ of $
+ *
+ * $Id:$
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/** @addtogroup misc misc: Miscellaneous routines
+ *
+ * @{
+ */
+#include <net-snmp/library/asn1.h>
+
+
+ /* *INDENT-ON* */
+
+ /*
+ * OID and column number definitions for modEoCCNURealTimeStatisticTable
+ */
+#include "modEoCCNURealTimeStatisticTable_oids.h"
+
+ /*
+ * enum definions
+ */
+#include "modEoCCNURealTimeStatisticTable_enums.h"
+
+/* include common header */
+#include "EoCCommon.h"
+
+ /*
+ *********************************************************************
+ * function declarations
+ */
+ void init_modEoCCNURealTimeStatisticTable(void);
+ void shutdown_modEoCCNURealTimeStatisticTable(void);
+
+ /*
+ *********************************************************************
+ * Table declarations
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+ /*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+ /*
+ *********************************************************************
+ * When you register your mib, you get to provide a generic
+ * pointer that will be passed back to you for most of the
+ * functions calls.
+ *
+ * TODO:100:r: Review all context structures
+ */
+ /*
+ * TODO:101:o: |-> Review modEoCCNURealTimeStatisticTable registration context.
+ */
+ typedef netsnmp_data_list modEoCCNURealTimeStatisticTable_registration;
+
+/**********************************************************************/
+ /*
+ * TODO:110:r: |-> Review modEoCCNURealTimeStatisticTable data context structure.
+ * This structure is used to represent the data for modEoCCNURealTimeStatisticTable.
+ */
+ /*
+ * This structure contains storage for all the columns defined in the
+ * modEoCCNURealTimeStatisticTable.
+ */
+ typedef struct modEoCCNURealTimeStatisticTable_data_s {
+ /* added to generated code: MAC address of current slave (in string format) */
+ char modEoCCNURealTimeStatisticCNUMACAddress[LIBSPID_MAC_STR_LEN];
+ /*
+ * modEoCCNURealTimeStatisticTxPkt(3)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticTxPkt;
+
+ /*
+ * modEoCCNURealTimeStatisticRxPkt(4)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticRxPkt;
+
+ /*
+ * modEoCCNURealTimeStatisticTxByte(5)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ U64 modEoCCNURealTimeStatisticTxByte;
+
+ /*
+ * modEoCCNURealTimeStatisticRxByte(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ U64 modEoCCNURealTimeStatisticRxByte;
+
+ /*
+ * modEoCCNURealTimeStatisticTxBcast(7)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticTxBcast;
+
+ /*
+ * modEoCCNURealTimeStatisticRxBcast(8)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticRxBcast;
+
+ /*
+ * modEoCCNURealTimeStatisticTxMcast(9)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticTxMcast;
+
+ /*
+ * modEoCCNURealTimeStatisticRxMcast(10)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticRxMcast;
+
+ /*
+ * modEoCCNURealTimeStatisticRxCrc(11)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticRxCrc;
+
+ /*
+ * modEoCCNURealTimeStatisticTxShort(12)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticTxShort;
+
+ /*
+ * modEoCCNURealTimeStatisticRxShort(13)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticRxShort;
+
+ /*
+ * modEoCCNURealTimeStatisticTxDropped(14)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticTxDropped;
+
+ /*
+ * modEoCCNURealTimeStatisticRxDropped(15)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticRxDropped;
+
+ /*
+ * modEoCCNURealTimeStatisticAveragePreFEC(16)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long modEoCCNURealTimeStatisticAveragePreFEC;
+
+ /*
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ u_long modEoCCNURealTimeStatisticReset;
+
+ } modEoCCNURealTimeStatisticTable_data;
+
+
+ /*
+ *********************************************************************
+ * TODO:115:o: |-> Review modEoCCNURealTimeStatisticTable undo context.
+ * We're just going to use the same data structure for our
+ * undo_context. If you want to do something more efficent,
+ * define your typedef here.
+ */
+ typedef modEoCCNURealTimeStatisticTable_data
+ modEoCCNURealTimeStatisticTable_undo_data;
+
+ /*
+ * TODO:120:r: |-> Review modEoCCNURealTimeStatisticTable mib index.
+ * This structure is used to represent the index for modEoCCNURealTimeStatisticTable.
+ */
+ typedef struct modEoCCNURealTimeStatisticTable_mib_index_s {
+
+ /*
+ * modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ long modEoCCNURealTimeStatisticMasterIndex;
+
+ /*
+ * modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ long modEoCCNURealTimeStatisticCNUIndex;
+
+
+ } modEoCCNURealTimeStatisticTable_mib_index;
+
+ /*
+ * TODO:121:r: | |-> Review modEoCCNURealTimeStatisticTable max index length.
+ * If you KNOW that your indexes will never exceed a certain
+ * length, update this macro to that length.
+ */
+#define MAX_modEoCCNURealTimeStatisticTable_IDX_LEN 2
+
+
+ /*
+ *********************************************************************
+ * TODO:130:o: |-> Review modEoCCNURealTimeStatisticTable Row request (rowreq) context.
+ * When your functions are called, you will be passed a
+ * modEoCCNURealTimeStatisticTable_rowreq_ctx pointer.
+ */
+ typedef struct modEoCCNURealTimeStatisticTable_rowreq_ctx_s {
+
+ /** this must be first for container compare to work */
+ netsnmp_index oid_idx;
+ oid
+ oid_tmp[MAX_modEoCCNURealTimeStatisticTable_IDX_LEN];
+
+ modEoCCNURealTimeStatisticTable_mib_index tbl_idx;
+
+ modEoCCNURealTimeStatisticTable_data data;
+ modEoCCNURealTimeStatisticTable_undo_data *undo;
+ unsigned int column_set_flags; /* flags for set columns */
+
+
+ /*
+ * flags per row. Currently, the first (lower) 8 bits are reserved
+ * for the user. See mfd.h for other flags.
+ */
+ u_int rowreq_flags;
+
+ /*
+ * TODO:131:o: | |-> Add useful data to modEoCCNURealTimeStatisticTable rowreq context.
+ */
+
+ /*
+ * storage for future expansion
+ */
+ netsnmp_data_list *modEoCCNURealTimeStatisticTable_data_list;
+
+ } modEoCCNURealTimeStatisticTable_rowreq_ctx;
+
+ typedef struct modEoCCNURealTimeStatisticTable_ref_rowreq_ctx_s {
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx;
+ } modEoCCNURealTimeStatisticTable_ref_rowreq_ctx;
+
+ /*
+ *********************************************************************
+ * function prototypes
+ */
+ int
+ modEoCCNURealTimeStatisticTable_pre_request
+ (modEoCCNURealTimeStatisticTable_registration * user_context);
+ int
+ modEoCCNURealTimeStatisticTable_post_request
+ (modEoCCNURealTimeStatisticTable_registration * user_context,
+ int rc);
+
+ int
+ modEoCCNURealTimeStatisticTable_rowreq_ctx_init
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ void *user_init_ctx);
+ void
+ modEoCCNURealTimeStatisticTable_rowreq_ctx_cleanup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTable_commit
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ modEoCCNURealTimeStatisticTable_rowreq_ctx
+ *modEoCCNURealTimeStatisticTable_row_find_by_mib_index
+ (modEoCCNURealTimeStatisticTable_mib_index * mib_idx);
+
+ extern oid modEoCCNURealTimeStatisticTable_oid[];
+ extern int modEoCCNURealTimeStatisticTable_oid_size;
+
+
+#include "modEoCCNURealTimeStatisticTable_interface.h"
+#include "modEoCCNURealTimeStatisticTable_data_access.h"
+#include "modEoCCNURealTimeStatisticTable_data_get.h"
+#include "modEoCCNURealTimeStatisticTable_data_set.h"
+
+ /*
+ * DUMMY markers, ignore
+ *
+ * TODO:099:x: *************************************************************
+ * TODO:199:x: *************************************************************
+ * TODO:299:x: *************************************************************
+ * TODO:399:x: *************************************************************
+ * TODO:499:x: *************************************************************
+ */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_H */
+/** @} */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.c
new file mode 100644
index 0000000000..c7938a6495
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.c
@@ -0,0 +1,617 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 14170 $ of $
+ *
+ * $Id:$
+ */
+/*
+ * standard Net-SNMP includes
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
+/*
+ * include our parent header
+ */
+#include "modEoCCNURealTimeStatisticTable.h"
+
+
+#include "modEoCCNURealTimeStatisticTable_data_access.h"
+
+/** @ingroup interface
+ * @addtogroup data_access data_access: Routines to access data
+ *
+ * These routines are used to locate the data used to satisfy
+ * requests.
+ *
+ * @{
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+
+/**
+ * initialization for modEoCCNURealTimeStatisticTable data access
+ *
+ * This function is called during startup to allow you to
+ * allocate any resources you need for the data table.
+ *
+ * @param modEoCCNURealTimeStatisticTable_reg
+ * Pointer to modEoCCNURealTimeStatisticTable_registration
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_ERROR : unrecoverable error.
+ */
+int
+modEoCCNURealTimeStatisticTable_init_data
+ (modEoCCNURealTimeStatisticTable_registration *
+ modEoCCNURealTimeStatisticTable_reg)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_init_data", "called\n"));
+
+ /*
+ * TODO:303:o: Initialize modEoCCNURealTimeStatisticTable data.
+ */
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_init_data */
+
+/**
+ * container overview
+ *
+ */
+
+/**
+ * container initialization
+ *
+ * @param container_ptr_ptr A pointer to a container pointer. If you
+ * create a custom container, use this parameter to return it
+ * to the MFD helper. If set to NULL, the MFD helper will
+ * allocate a container for you.
+ * @param cache A pointer to a cache structure. You can set the timeout
+ * and other cache flags using this pointer.
+ *
+ * This function is called at startup to allow you to customize certain
+ * aspects of the access method. For the most part, it is for advanced
+ * users. The default code should suffice for most cases. If no custom
+ * container is allocated, the MFD code will create one for your.
+ *
+ * This is also the place to set up cache behavior. The default, to
+ * simply set the cache timeout, will work well with the default
+ * container. If you are using a custom container, you may want to
+ * look at the cache helper documentation to see if there are any
+ * flags you want to set.
+ *
+ * @remark
+ * This would also be a good place to do any initialization needed
+ * for you data source. For example, opening a connection to another
+ * process that will supply the data, opening a database, etc.
+ */
+void
+modEoCCNURealTimeStatisticTable_container_init(netsnmp_container **
+ container_ptr_ptr,
+ netsnmp_cache * cache)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_container_init", "called\n"));
+
+ if (NULL == container_ptr_ptr) {
+ snmp_log(LOG_ERR,
+ "bad container param to modEoCCNURealTimeStatisticTable_container_init\n");
+ return;
+ }
+
+ /*
+ * For advanced users, you can use a custom container. If you
+ * do not create one, one will be created for you.
+ */
+ *container_ptr_ptr = NULL;
+
+ if (NULL == cache) {
+ snmp_log(LOG_ERR,
+ "bad cache param to modEoCCNURealTimeStatisticTable_container_init\n");
+ return;
+ }
+
+ /*
+ * TODO:345:A: Set up modEoCCNURealTimeStatisticTable cache properties.
+ *
+ * Also for advanced users, you can set parameters for the
+ * cache. Do not change the magic pointer, as it is used
+ * by the MFD helper. To completely disable caching, set
+ * cache->enabled to 0.
+ */
+ cache->timeout = MODEOCCNUREALTIMESTATISTICTABLE_CACHE_TIMEOUT; /* seconds */
+} /* modEoCCNURealTimeStatisticTable_container_init */
+
+/**
+ * container shutdown
+ *
+ * @param container_ptr A pointer to the container.
+ *
+ * This function is called at shutdown to allow you to customize certain
+ * aspects of the access method. For the most part, it is for advanced
+ * users. The default code should suffice for most cases.
+ *
+ * This function is called before modEoCCNURealTimeStatisticTable_container_free().
+ *
+ * @remark
+ * This would also be a good place to do any cleanup needed
+ * for you data source. For example, closing a connection to another
+ * process that supplied the data, closing a database, etc.
+ */
+void
+modEoCCNURealTimeStatisticTable_container_shutdown(netsnmp_container *
+ container_ptr)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_container_shutdown", "called\n"));
+
+ if (NULL == container_ptr) {
+ snmp_log(LOG_ERR,
+ "bad params to modEoCCNURealTimeStatisticTable_container_shutdown\n");
+ return;
+ }
+
+} /* modEoCCNURealTimeStatisticTable_container_shutdown */
+
+/**
+ * load initial data
+ *
+ * TODO:350:M: Implement modEoCCNURealTimeStatisticTable data load
+ * This function will also be called by the cache helper to load
+ * the container again (after the container free function has been
+ * called to free the previous contents).
+ *
+ * @param container container to which items should be inserted
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_RESOURCE_UNAVAILABLE : Can't access data source
+ * @retval MFD_ERROR : other error.
+ *
+ * This function is called to load the index(es) (and data, optionally)
+ * for the every row in the data set.
+ *
+ * @remark
+ * While loading the data, the only important thing is the indexes.
+ * If access to your data is cheap/fast (e.g. you have a pointer to a
+ * structure in memory), it would make sense to update the data here.
+ * If, however, the accessing the data invovles more work (e.g. parsing
+ * some other existing data, or peforming calculations to derive the data),
+ * then you can limit yourself to setting the indexes and saving any
+ * information you will need later. Then use the saved information in
+ * modEoCCNURealTimeStatisticTable_row_prep() for populating data.
+ *
+ * @note
+ * If you need consistency between rows (like you want statistics
+ * for each row to be from the same time frame), you should set all
+ * data here.
+ *
+ */
+int
+modEoCCNURealTimeStatisticTable_container_load(netsnmp_container *
+ container)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx;
+ size_t count = 0;
+
+ /*
+ * temporary storage for index values
+ */
+ /*
+ * modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ /* this index is always 0 */
+ long modEoCCNURealTimeStatisticMasterIndex = 0;
+ /*
+ * modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ long modEoCCNURealTimeStatisticCNUIndex;
+
+
+ int modEoCCNURealTimeStatisticReset = 0;
+
+ /* white list entries read from config file */
+ libspid_eoc_wl_entry_t wl_config_entries[LIBSPID_WHITE_LIST_MAX_STA_NUM];
+
+ char mac_str[LIBSPID_MAC_STR_LEN];
+
+ int mac_address_count;
+ int i, index;
+ int tmp;
+ int tei;
+
+ int ret;
+
+ libspid_eoc_rt_stat_t eoc_rt_stat;
+
+ char mac_online[LIBSPID_MAC_STR_LEN];
+ const char online_delimiters[2] = LIBSPID_ONLINE_INFO_DELIMITER "\0";
+ char online_buffer[LIBSPID_LINE_MAX_LEN] = {0};
+ unsigned int online_elt_number = LIBSPID_ELT_MAX_NB;
+ char *online_elt_buffer[LIBSPID_ELT_MAX_NB] = {0};
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_container_load", "called\n"));
+
+ /*
+ * TODO:351:M: |-> Load/update data in the modEoCCNURealTimeStatisticTable container.
+ * loop over your modEoCCNURealTimeStatisticTable data, allocate a rowreq context,
+ * set the index(es) [and data, optionally] and insert into
+ * the container.
+ */
+ memset(wl_config_entries, 0x0, sizeof(wl_config_entries));
+
+ /* check errors in contents of white list prior to reading */
+ if (LIBSPID_SUCCESS != libspid_eoc_wl_check ()){
+ snmp_log(LOG_ERR, "errors detected in white list config file\n");
+ return MFD_ERROR;
+ }
+
+ /* get current contents of white list config file */
+ if (LIBSPID_SUCCESS != libspid_eoc_wl_get_list(wl_config_entries, &mac_address_count))
+ {
+ snmp_log(LOG_ERR, "White list config file not read correctly\n");
+ return MFD_ERROR;
+ }
+
+ for (i=0; i <= mac_address_count; i++) {
+ /* reset current statistics */
+ memset(&eoc_rt_stat, 0x0, sizeof(eoc_rt_stat));
+
+ if (0 == i){
+ /* add master as first row of the table */
+
+ /* obtain master MAC address */
+ if (LIBSPID_SUCCESS != libspid_network_get_mac(LIBSPID_EOC_BR_IFACE, mac_str)){
+ snmp_log(LOG_ERR, "libspid_network_get_mac error\n");
+ return MFD_RESOURCE_UNAVAILABLE;
+ }
+
+ /* set index in table to 0 for master */
+ modEoCCNURealTimeStatisticCNUIndex = 0;
+
+ } else {
+ /* consider only slaves that are allowed */
+ if (!strcmp(wl_config_entries[i-1].auth, "1")){
+ strcpy(mac_str, wl_config_entries[i-1].mac_addr);
+ /* make sure that MAC address is in lower case */
+ for (index = 0; index < LIBSPID_MAC_STR_LEN; index++){
+ mac_str[index] = tolower(mac_str[index]);
+ }
+
+ /* copy MAC address to avoid it being set to NULL using libspid_config_read_line */
+ strcpy(mac_online, mac_str);
+
+ /* consider only online slaves */
+ if (LIBSPID_SUCCESS != libspid_config_read_line(LIBSPID_ONLINE_INFO_PATH, online_delimiters, mac_online,
+ &online_elt_number, online_elt_buffer, online_buffer, LIBSPID_LINE_MAX_LEN))
+ continue;
+
+ /* set slave index from TEI in white list */
+ tmp = sscanf(wl_config_entries[i-1].tei, "%d", &tei);
+ if (1 != tmp){
+ snmp_log(LOG_ERR, "error setting realtime statistic table index\n");
+ return MFD_RESOURCE_UNAVAILABLE;
+ }
+ modEoCCNURealTimeStatisticCNUIndex = tei - 2;
+ } else
+ continue;
+ }
+
+ /*
+ * TODO:352:M: | |-> set indexes in new modEoCCNURealTimeStatisticTable rowreq context.
+ * data context will be set from the param (unless NULL,
+ * in which case a new data context will be allocated)
+ */
+ rowreq_ctx =
+ modEoCCNURealTimeStatisticTable_allocate_rowreq_ctx(NULL);
+ if (NULL == rowreq_ctx) {
+ snmp_log(LOG_ERR, "memory allocation failed\n");
+ return MFD_RESOURCE_UNAVAILABLE;
+ }
+ if (MFD_SUCCESS !=
+ modEoCCNURealTimeStatisticTable_indexes_set(rowreq_ctx,
+ modEoCCNURealTimeStatisticMasterIndex,
+ modEoCCNURealTimeStatisticCNUIndex))
+ {
+ snmp_log(LOG_ERR,
+ "error setting index while loading "
+ "modEoCCNURealTimeStatisticTable data.\n");
+ modEoCCNURealTimeStatisticTable_release_rowreq_ctx(rowreq_ctx);
+ continue;
+ }
+
+ /* copy current MAC address to row request context */
+ strcpy(rowreq_ctx->data.modEoCCNURealTimeStatisticCNUMACAddress, mac_str);
+
+ /* obtain real time statistics for current MAC address */
+ ret = libspid_eoc_get_stat(mac_str, &eoc_rt_stat);
+ if (ret != LIBSPID_SUCCESS){
+ snmp_log(LOG_ERR, "libspid_eoc_get_stat error for %s, values set to 0\n", mac_str);
+ }
+
+ /*
+ * TODO:352:r: | |-> populate modEoCCNURealTimeStatisticTable data context.
+ * Populate data context here. (optionally, delay until row prep)
+ */
+ /*
+ * TRANSIENT or semi-TRANSIENT data:
+ * copy data or save any info needed to do it in row_prep.
+ */
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticTxPkt
+ * modEoCCNURealTimeStatisticTxPkt(3)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticTxPkt mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxPkt =
+ eoc_rt_stat.tx_pkt;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxPkt
+ * modEoCCNURealTimeStatisticRxPkt(4)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxPkt mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxPkt =
+ eoc_rt_stat.rx_pkt;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticTxByte
+ * modEoCCNURealTimeStatisticTxByte(5)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticTxByte mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxByte.high = 0;
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxByte.low = eoc_rt_stat.tx_byte;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxByte
+ * modEoCCNURealTimeStatisticRxByte(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxByte mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxByte.high = 0;
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxByte.low = eoc_rt_stat.rx_byte;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticTxBcast
+ * modEoCCNURealTimeStatisticTxBcast(7)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticTxBcast mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxBcast =
+ eoc_rt_stat.tx_bcast;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxBcast
+ * modEoCCNURealTimeStatisticRxBcast(8)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxBcast mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxBcast =
+ eoc_rt_stat.rx_bcast;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticTxMcast
+ * modEoCCNURealTimeStatisticTxMcast(9)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticTxMcast mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxMcast =
+ eoc_rt_stat.tx_mcast;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxMcast
+ * modEoCCNURealTimeStatisticRxMcast(10)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxMcast mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxMcast =
+ eoc_rt_stat.rx_mcast;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxCrc
+ * modEoCCNURealTimeStatisticRxCrc(11)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxCrc mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxCrc =
+ eoc_rt_stat.rx_crc;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticTxShort
+ * modEoCCNURealTimeStatisticTxShort(12)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticTxShort mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxShort =
+ eoc_rt_stat.tx_short;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxShort
+ * modEoCCNURealTimeStatisticRxShort(13)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxShort mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxShort =
+ eoc_rt_stat.rx_short;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticTxDropped
+ * modEoCCNURealTimeStatisticTxDropped(14)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticTxDropped mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxDropped =
+ eoc_rt_stat.tx_dropped;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticRxDropped
+ * modEoCCNURealTimeStatisticRxDropped(15)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticRxDropped mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxDropped =
+ eoc_rt_stat.rx_dropped;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticAveragePreFEC
+ * modEoCCNURealTimeStatisticAveragePreFEC(16)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticAveragePreFEC mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * Integer based value can usually just do a direct copy.
+ */
+
+ /* store data for AveragePreFEC as percents rounded to nearest integer value */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticAveragePreFEC =
+ (eoc_rt_stat.avg_prefec + 50) / 100;
+
+ /*
+ * setup/save data for modEoCCNURealTimeStatisticReset
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ /*
+ * TODO:246:r: |-> Define modEoCCNURealTimeStatisticReset mapping.
+ * Map values between raw/native values and MIB values
+ *
+ * enums usually need mapping.
+ */
+ if (MFD_SUCCESS !=
+ modEoCCNURealTimeStatisticReset_map(&rowreq_ctx->data.
+ modEoCCNURealTimeStatisticReset,
+ modEoCCNURealTimeStatisticReset))
+ {
+ return MFD_ERROR;
+ }
+
+ /*
+ * insert into table container
+ */
+ CONTAINER_INSERT(container, rowreq_ctx);
+ ++count;
+ }
+
+ DEBUGMSGT(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_container_load", "inserted %d records\n", count));
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_container_load */
+
+/**
+ * container clean up
+ *
+ * @param container container with all current items
+ *
+ * This optional callback is called prior to all
+ * item's being removed from the container. If you
+ * need to do any processing before that, do it here.
+ *
+ * @note
+ * The MFD helper will take care of releasing all the row contexts.
+ *
+ */
+void
+modEoCCNURealTimeStatisticTable_container_free(netsnmp_container *
+ container)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_container_free", "called\n"));
+
+ /*
+ * TODO:380:M: Free modEoCCNURealTimeStatisticTable container data.
+ */
+} /* modEoCCNURealTimeStatisticTable_container_free */
+
+/**
+ * prepare row for processing.
+ *
+ * When the agent has located the row for a request, this function is
+ * called to prepare the row for processing. If you fully populated
+ * the data context during the index setup phase, you may not need to
+ * do anything.
+ *
+ * @param rowreq_ctx pointer to a context.
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_ERROR : other error.
+ */
+int
+modEoCCNURealTimeStatisticTable_row_prep
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_row_prep", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:390:o: Prepare row for request.
+ * If populating row data was delayed, this is the place to
+ * fill in the row for this request.
+ */
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_row_prep */
+
+/** @} */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.h
new file mode 100644
index 0000000000..cadbedd453
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_access.h
@@ -0,0 +1,96 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 14170 $ of $
+ *
+ * $Id:$
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_DATA_ACCESS_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_DATA_ACCESS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+ /*
+ *********************************************************************
+ * function declarations
+ */
+
+ /*
+ *********************************************************************
+ * Table declarations
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+ /*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+
+
+ int
+ modEoCCNURealTimeStatisticTable_init_data
+ (modEoCCNURealTimeStatisticTable_registration *
+ modEoCCNURealTimeStatisticTable_reg);
+
+
+ /*
+ * TODO:180:o: Review modEoCCNURealTimeStatisticTable cache timeout.
+ * The number of seconds before the cache times out
+ */
+#define MODEOCCNUREALTIMESTATISTICTABLE_CACHE_TIMEOUT 60
+
+ void
+ modEoCCNURealTimeStatisticTable_container_init(netsnmp_container **
+ container_ptr_ptr,
+ netsnmp_cache *
+ cache);
+ void
+ modEoCCNURealTimeStatisticTable_container_shutdown
+ (netsnmp_container * container_ptr);
+
+ int
+ modEoCCNURealTimeStatisticTable_container_load(netsnmp_container *
+ container);
+ void
+ modEoCCNURealTimeStatisticTable_container_free(netsnmp_container *
+ container);
+
+ int
+ modEoCCNURealTimeStatisticTable_cache_load(netsnmp_container *
+ container);
+ void
+ modEoCCNURealTimeStatisticTable_cache_free(netsnmp_container *
+ container);
+
+ /*
+ ***************************************************
+ *** START EXAMPLE CODE ***
+ ***---------------------------------------------***/
+ /*
+ *********************************************************************
+ * Since we have no idea how you really access your data, we'll go with
+ * a worst case example: a flat text file.
+ */
+#define MAX_LINE_SIZE 256
+ /*
+ ***---------------------------------------------***
+ *** END EXAMPLE CODE ***
+ ***************************************************/
+ int
+ modEoCCNURealTimeStatisticTable_row_prep
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_DATA_ACCESS_H */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.c
new file mode 100644
index 0000000000..a2845c642d
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.c
@@ -0,0 +1,995 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 12088 $ of $
+ *
+ * $Id:$
+ */
+/*
+ * standard Net-SNMP includes
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
+/*
+ * include our parent header
+ */
+#include "modEoCCNURealTimeStatisticTable.h"
+
+
+/** @defgroup data_get data_get: Routines to get data
+ *
+ * TODO:230:M: Implement modEoCCNURealTimeStatisticTable get routines.
+ * TODO:240:M: Implement modEoCCNURealTimeStatisticTable mapping routines (if any).
+ *
+ * These routine are used to get the value for individual objects. The
+ * row context is passed, along with a pointer to the memory where the
+ * value should be copied.
+ *
+ * @{
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+
+/*
+ * ---------------------------------------------------------------------
+ * * TODO:200:r: Implement modEoCCNURealTimeStatisticTable data context functions.
+ */
+
+
+/**
+ * set mib index(es)
+ *
+ * @param tbl_idx mib index structure
+ * @param modEoCCNURealTimeStatisticMasterIndex_val
+ * @param modEoCCNURealTimeStatisticCNUIndex_val
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_ERROR : other error.
+ *
+ * @remark
+ * This convenience function is useful for setting all the MIB index
+ * components with a single function call. It is assume that the C values
+ * have already been mapped from their native/rawformat to the MIB format.
+ */
+int
+modEoCCNURealTimeStatisticTable_indexes_set_tbl_idx
+ (modEoCCNURealTimeStatisticTable_mib_index * tbl_idx,
+ long modEoCCNURealTimeStatisticMasterIndex_val,
+ long modEoCCNURealTimeStatisticCNUIndex_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_indexes_set_tbl_idx", "called\n"));
+
+ /*
+ * modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ tbl_idx->modEoCCNURealTimeStatisticMasterIndex =
+ modEoCCNURealTimeStatisticMasterIndex_val;
+
+ /*
+ * modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ tbl_idx->modEoCCNURealTimeStatisticCNUIndex =
+ modEoCCNURealTimeStatisticCNUIndex_val;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_indexes_set_tbl_idx */
+
+/**
+ * @internal
+ * set row context indexes
+ *
+ * @param reqreq_ctx the row context that needs updated indexes
+ *
+ * @retval MFD_SUCCESS : success.
+ * @retval MFD_ERROR : other error.
+ *
+ * @remark
+ * This function sets the mib indexs, then updates the oid indexs
+ * from the mib index.
+ */
+int
+modEoCCNURealTimeStatisticTable_indexes_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticMasterIndex_val,
+ long modEoCCNURealTimeStatisticCNUIndex_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_indexes_set", "called\n"));
+
+ if (MFD_SUCCESS !=
+ modEoCCNURealTimeStatisticTable_indexes_set_tbl_idx(&rowreq_ctx->
+ tbl_idx,
+ modEoCCNURealTimeStatisticMasterIndex_val,
+ modEoCCNURealTimeStatisticCNUIndex_val))
+ return MFD_ERROR;
+
+ /*
+ * convert mib index to oid index
+ */
+ rowreq_ctx->oid_idx.len = sizeof(rowreq_ctx->oid_tmp) / sizeof(oid);
+ if (0 !=
+ modEoCCNURealTimeStatisticTable_index_to_oid(&rowreq_ctx->oid_idx,
+ &rowreq_ctx->
+ tbl_idx)) {
+ return MFD_ERROR;
+ }
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTable_indexes_set */
+
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxPkt
+ * modEoCCNURealTimeStatisticTxPkt is subid 3 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.3
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticTxPkt data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticTxPkt_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticTxPkt_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxPkt_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticTxPkt_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTxPkt_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticTxPkt data.
+ * copy (* modEoCCNURealTimeStatisticTxPkt_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticTxPkt_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxPkt;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTxPkt_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxPkt
+ * modEoCCNURealTimeStatisticRxPkt is subid 4 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.4
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxPkt data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxPkt_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxPkt_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxPkt_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxPkt_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticRxPkt_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticRxPkt data.
+ * copy (* modEoCCNURealTimeStatisticRxPkt_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxPkt_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxPkt;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxPkt_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxByte
+ * modEoCCNURealTimeStatisticTxByte is subid 5 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.5
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is COUNTER64 (based on perltype COUNTER64)
+ * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticTxByte data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticTxByte_val_ptr
+ * Pointer to storage for a U64 variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticTxByte_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 * modEoCCNURealTimeStatisticTxByte_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticTxByte_val_ptr);
+
+ /*
+ * TODO:231:o: |-> copy modEoCCNURealTimeStatisticTxByte data.
+ * get (* modEoCCNURealTimeStatisticTxByte_val_ptr ).low and (* modEoCCNURealTimeStatisticTxByte_val_ptr ).high from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticTxByte_val_ptr).high =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxByte.high;
+ (*modEoCCNURealTimeStatisticTxByte_val_ptr).low =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxByte.low;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTxByte_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxByte
+ * modEoCCNURealTimeStatisticRxByte is subid 6 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.6
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is COUNTER64 (based on perltype COUNTER64)
+ * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxByte data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxByte_val_ptr
+ * Pointer to storage for a U64 variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxByte_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 * modEoCCNURealTimeStatisticRxByte_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxByte_val_ptr);
+
+ /*
+ * TODO:231:o: |-> copy modEoCCNURealTimeStatisticRxByte data.
+ * get (* modEoCCNURealTimeStatisticRxByte_val_ptr ).low and (* modEoCCNURealTimeStatisticRxByte_val_ptr ).high from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxByte_val_ptr).high =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxByte.high;
+ (*modEoCCNURealTimeStatisticRxByte_val_ptr).low =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxByte.low;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxByte_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxBcast
+ * modEoCCNURealTimeStatisticTxBcast is subid 7 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.7
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticTxBcast data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticTxBcast_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticTxBcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxBcast_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticTxBcast_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTxBcast_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticTxBcast data.
+ * copy (* modEoCCNURealTimeStatisticTxBcast_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticTxBcast_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxBcast;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTxBcast_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxBcast
+ * modEoCCNURealTimeStatisticRxBcast is subid 8 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.8
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxBcast data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxBcast_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxBcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxBcast_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxBcast_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticRxBcast_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticRxBcast data.
+ * copy (* modEoCCNURealTimeStatisticRxBcast_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxBcast_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxBcast;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxBcast_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxMcast
+ * modEoCCNURealTimeStatisticTxMcast is subid 9 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.9
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticTxMcast data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticTxMcast_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticTxMcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxMcast_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticTxMcast_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTxMcast_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticTxMcast data.
+ * copy (* modEoCCNURealTimeStatisticTxMcast_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticTxMcast_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxMcast;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTxMcast_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxMcast
+ * modEoCCNURealTimeStatisticRxMcast is subid 10 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.10
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxMcast data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxMcast_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxMcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxMcast_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxMcast_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticRxMcast_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticRxMcast data.
+ * copy (* modEoCCNURealTimeStatisticRxMcast_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxMcast_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxMcast;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxMcast_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxCrc
+ * modEoCCNURealTimeStatisticRxCrc is subid 11 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.11
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxCrc data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxCrc_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxCrc_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxCrc_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxCrc_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticRxCrc_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticRxCrc data.
+ * copy (* modEoCCNURealTimeStatisticRxCrc_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxCrc_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxCrc;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxCrc_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxShort
+ * modEoCCNURealTimeStatisticTxShort is subid 12 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.12
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticTxShort data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticTxShort_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticTxShort_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxShort_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticTxShort_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTxShort_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticTxShort data.
+ * copy (* modEoCCNURealTimeStatisticTxShort_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticTxShort_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxShort;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTxShort_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxShort
+ * modEoCCNURealTimeStatisticRxShort is subid 13 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.13
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxShort data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxShort_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxShort_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxShort_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxShort_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticRxShort_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticRxShort data.
+ * copy (* modEoCCNURealTimeStatisticRxShort_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxShort_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxShort;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxShort_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticTxDropped
+ * modEoCCNURealTimeStatisticTxDropped is subid 14 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.14
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticTxDropped data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticTxDropped_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticTxDropped_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxDropped_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticTxDropped_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTxDropped_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticTxDropped data.
+ * copy (* modEoCCNURealTimeStatisticTxDropped_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticTxDropped_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticTxDropped;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticTxDropped_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticRxDropped
+ * modEoCCNURealTimeStatisticRxDropped is subid 15 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.15
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticRxDropped data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticRxDropped_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticRxDropped_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxDropped_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticRxDropped_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticRxDropped_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticRxDropped data.
+ * copy (* modEoCCNURealTimeStatisticRxDropped_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticRxDropped_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticRxDropped;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticRxDropped_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticAveragePreFEC
+ * modEoCCNURealTimeStatisticAveragePreFEC is subid 16 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadOnly.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.16
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 0
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticAveragePreFEC data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticAveragePreFEC_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticAveragePreFEC_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticAveragePreFEC_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL !=
+ modEoCCNURealTimeStatisticAveragePreFEC_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticAveragePreFEC_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticAveragePreFEC data.
+ * copy (* modEoCCNURealTimeStatisticAveragePreFEC_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticAveragePreFEC_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticAveragePreFEC;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticAveragePreFEC_get */
+
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticReset
+ * modEoCCNURealTimeStatisticReset is subid 17 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.17
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 1 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ * Enum range: 2/8. Values: none(0), clear(1)
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
+ */
+/**
+ * map a value from its original native format to the MIB format.
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : Any other error
+ *
+ * @note parameters follow the memset convention (dest, src).
+ *
+ * @note generation and use of this function can be turned off by re-running
+ * mib2c after adding the following line to the file
+ * defaults/node-modEoCCNURealTimeStatisticReset.m2d :
+ * @eval $m2c_node_skip_mapping = 1@
+ *
+ * @remark
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+ * Otherwise, just do a direct copy.
+ */
+int
+modEoCCNURealTimeStatisticReset_map(u_long *
+ mib_modEoCCNURealTimeStatisticReset_val_ptr,
+ u_long
+ raw_modEoCCNURealTimeStatisticReset_val)
+{
+ netsnmp_assert(NULL != mib_modEoCCNURealTimeStatisticReset_val_ptr);
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticReset_map", "called\n"));
+
+ /*
+ * TODO:241:o: |-> Implement modEoCCNURealTimeStatisticReset enum mapping.
+ * uses INTERNAL_* macros defined in the header files
+ */
+ switch (raw_modEoCCNURealTimeStatisticReset_val) {
+ case INTERNAL_MODEOCCNUREALTIMESTATISTICTABLE_MODEOCCNUREALTIMESTATISTICRESET_NONE:
+ *mib_modEoCCNURealTimeStatisticReset_val_ptr =
+ MODEOCCNUREALTIMESTATISTICRESET_NONE;
+ break;
+
+ case INTERNAL_MODEOCCNUREALTIMESTATISTICTABLE_MODEOCCNUREALTIMESTATISTICRESET_CLEAR:
+ *mib_modEoCCNURealTimeStatisticReset_val_ptr =
+ MODEOCCNUREALTIMESTATISTICRESET_CLEAR;
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't map value %ld for modEoCCNURealTimeStatisticReset\n",
+ raw_modEoCCNURealTimeStatisticReset_val);
+ return MFD_ERROR;
+ }
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticReset_map */
+
+/**
+ * Extract the current value of the modEoCCNURealTimeStatisticReset data.
+ *
+ * Set a value using the data context for the row.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticReset_val_ptr
+ * Pointer to storage for a long variable
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_SKIP : skip this node (no value for now)
+ * @retval MFD_ERROR : Any other error
+ */
+int
+modEoCCNURealTimeStatisticReset_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ u_long * modEoCCNURealTimeStatisticReset_val_ptr)
+{
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != modEoCCNURealTimeStatisticReset_val_ptr);
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticReset_get", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:231:o: |-> Extract the current value of the modEoCCNURealTimeStatisticReset data.
+ * copy (* modEoCCNURealTimeStatisticReset_val_ptr ) from rowreq_ctx->data
+ */
+ (*modEoCCNURealTimeStatisticReset_val_ptr) =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticReset;
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticReset_get */
+
+
+
+/** @} */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.h
new file mode 100644
index 0000000000..c061ab0da3
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_get.h
@@ -0,0 +1,195 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 12088 $ of $
+ *
+ * $Id:$
+ *
+ * @file modEoCCNURealTimeStatisticTable_data_get.h
+ *
+ * @addtogroup get
+ *
+ * Prototypes for get functions
+ *
+ * @{
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_DATA_GET_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_DATA_GET_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /*
+ *********************************************************************
+ * GET function declarations
+ */
+
+ /*
+ *********************************************************************
+ * GET Table declarations
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+ /*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+ /*
+ * indexes
+ */
+ int modEoCCNURealTimeStatisticMasterIndex_map(long
+ *mib_modEoCCNURealTimeStatisticMasterIndex_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticMasterIndex_val);
+ int modEoCCNURealTimeStatisticCNUIndex_map(long
+ *mib_modEoCCNURealTimeStatisticCNUIndex_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticCNUIndex_val);
+
+ int modEoCCNURealTimeStatisticTxPkt_map(long
+ *mib_modEoCCNURealTimeStatisticTxPkt_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticTxPkt_val);
+ int
+ modEoCCNURealTimeStatisticTxPkt_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxPkt_val_ptr);
+ int modEoCCNURealTimeStatisticRxPkt_map(long
+ *mib_modEoCCNURealTimeStatisticRxPkt_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticRxPkt_val);
+ int
+ modEoCCNURealTimeStatisticRxPkt_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxPkt_val_ptr);
+ int modEoCCNURealTimeStatisticTxByte_map(U64 *
+ mib_modEoCCNURealTimeStatisticTxByte_val_ptr,
+ U64
+ raw_modEoCCNURealTimeStatisticTxByte_val);
+ int
+ modEoCCNURealTimeStatisticTxByte_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 * modEoCCNURealTimeStatisticTxByte_val_ptr);
+ int modEoCCNURealTimeStatisticRxByte_map(U64 *
+ mib_modEoCCNURealTimeStatisticRxByte_val_ptr,
+ U64
+ raw_modEoCCNURealTimeStatisticRxByte_val);
+ int
+ modEoCCNURealTimeStatisticRxByte_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 * modEoCCNURealTimeStatisticRxByte_val_ptr);
+ int modEoCCNURealTimeStatisticTxBcast_map(long
+ *mib_modEoCCNURealTimeStatisticTxBcast_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticTxBcast_val);
+ int
+ modEoCCNURealTimeStatisticTxBcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxBcast_val_ptr);
+ int modEoCCNURealTimeStatisticRxBcast_map(long
+ *mib_modEoCCNURealTimeStatisticRxBcast_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticRxBcast_val);
+ int
+ modEoCCNURealTimeStatisticRxBcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxBcast_val_ptr);
+ int modEoCCNURealTimeStatisticTxMcast_map(long
+ *mib_modEoCCNURealTimeStatisticTxMcast_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticTxMcast_val);
+ int
+ modEoCCNURealTimeStatisticTxMcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxMcast_val_ptr);
+ int modEoCCNURealTimeStatisticRxMcast_map(long
+ *mib_modEoCCNURealTimeStatisticRxMcast_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticRxMcast_val);
+ int
+ modEoCCNURealTimeStatisticRxMcast_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxMcast_val_ptr);
+ int modEoCCNURealTimeStatisticRxCrc_map(long
+ *mib_modEoCCNURealTimeStatisticRxCrc_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticRxCrc_val);
+ int
+ modEoCCNURealTimeStatisticRxCrc_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxCrc_val_ptr);
+ int modEoCCNURealTimeStatisticTxShort_map(long
+ *mib_modEoCCNURealTimeStatisticTxShort_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticTxShort_val);
+ int
+ modEoCCNURealTimeStatisticTxShort_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxShort_val_ptr);
+ int modEoCCNURealTimeStatisticRxShort_map(long
+ *mib_modEoCCNURealTimeStatisticRxShort_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticRxShort_val);
+ int
+ modEoCCNURealTimeStatisticRxShort_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxShort_val_ptr);
+ int modEoCCNURealTimeStatisticTxDropped_map(long
+ *mib_modEoCCNURealTimeStatisticTxDropped_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticTxDropped_val);
+ int
+ modEoCCNURealTimeStatisticTxDropped_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticTxDropped_val_ptr);
+ int modEoCCNURealTimeStatisticRxDropped_map(long
+ *mib_modEoCCNURealTimeStatisticRxDropped_val_ptr,
+ long
+ raw_modEoCCNURealTimeStatisticRxDropped_val);
+ int
+ modEoCCNURealTimeStatisticRxDropped_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticRxDropped_val_ptr);
+ int
+ modEoCCNURealTimeStatisticAveragePreFEC_map
+ (long *mib_modEoCCNURealTimeStatisticAveragePreFEC_val_ptr,
+ long raw_modEoCCNURealTimeStatisticAveragePreFEC_val);
+ int
+ modEoCCNURealTimeStatisticAveragePreFEC_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long *modEoCCNURealTimeStatisticAveragePreFEC_val_ptr);
+ int modEoCCNURealTimeStatisticReset_map(u_long *
+ mib_modEoCCNURealTimeStatisticReset_val_ptr,
+ u_long
+ raw_modEoCCNURealTimeStatisticReset_val);
+ int
+ modEoCCNURealTimeStatisticReset_get
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ u_long * modEoCCNURealTimeStatisticReset_val_ptr);
+
+
+ int
+ modEoCCNURealTimeStatisticTable_indexes_set_tbl_idx
+ (modEoCCNURealTimeStatisticTable_mib_index * tbl_idx,
+ long modEoCCNURealTimeStatisticMasterIndex_val,
+ long modEoCCNURealTimeStatisticCNUIndex_val);
+ int
+ modEoCCNURealTimeStatisticTable_indexes_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticMasterIndex_val,
+ long modEoCCNURealTimeStatisticCNUIndex_val);
+
+
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_DATA_GET_H */
+/** @} */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.c
new file mode 100644
index 0000000000..49b1459365
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.c
@@ -0,0 +1,551 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 12077 $ of $
+ *
+ * $Id:$
+ *
+ */
+/*
+ * standard Net-SNMP includes
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
+/*
+ * include our parent header
+ */
+#include "modEoCCNURealTimeStatisticTable.h"
+
+
+/** @defgroup data_set data_set: Routines to set data
+ *
+ * These routines are used to set the value for individual objects. The
+ * row context is passed, along with the new value.
+ *
+ * @{
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+ /*
+ * NOTE: if you update this chart, please update the versions in
+ * local/mib2c-conf.d/parent-set.m2i
+ * agent/mibgroup/helpers/baby_steps.c
+ * while you're at it.
+ */
+ /*
+ ***********************************************************************
+ * Baby Steps Flow Chart (2004.06.05) *
+ * *
+ * +--------------+ +================+ U = unconditional path *
+ * |optional state| ||required state|| S = path for success *
+ * +--------------+ +================+ E = path for error *
+ ***********************************************************************
+ *
+ * +--------------+
+ * | pre |
+ * | request |
+ * +--------------+
+ * | U
+ * +==============+
+ * +----------------|| object ||
+ * | E || lookup ||
+ * | +==============+
+ * | | S
+ * | +==============+
+ * | E || check ||
+ * |<---------------|| values ||
+ * | +==============+
+ * | | S
+ * | +==============+
+ * | +<-------|| undo ||
+ * | | E || setup ||
+ * | | +==============+
+ * | | | S
+ * | | +==============+
+ * | | || set ||-------------------------->+
+ * | | || value || E |
+ * | | +==============+ |
+ * | | | S |
+ * | | +--------------+ |
+ * | | | check |-------------------------->|
+ * | | | consistency | E |
+ * | | +--------------+ |
+ * | | | S |
+ * | | +==============+ +==============+ |
+ * | | || commit ||-------->|| undo || |
+ * | | || || E || commit || |
+ * | | +==============+ +==============+ |
+ * | | | S U |<--------+
+ * | | +--------------+ +==============+
+ * | | | irreversible | || undo ||
+ * | | | commit | || set ||
+ * | | +--------------+ +==============+
+ * | | | U U |
+ * | +-------------->|<------------------------+
+ * | +==============+
+ * | || undo ||
+ * | || cleanup ||
+ * | +==============+
+ * +---------------------->| U
+ * +--------------+
+ * | post |
+ * | request |
+ * +--------------+
+ *
+ */
+
+/**
+ * Setup up context with information needed to undo a set request.
+ *
+ * This function will be called before the individual node undo setup
+ * functions are called. If you need to do any undo setup that is not
+ * related to a specific column, you can do it here.
+ *
+ * Note that the undo context has been allocated with
+ * modEoCCNURealTimeStatisticTable_allocate_data(), but may need extra
+ * initialization similar to what you may have done in
+ * modEoCCNURealTimeStatisticTable_rowreq_ctx_init().
+ * Note that an individual node's undo_setup function will only be called
+ * if that node is being set to a new value.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in the node's undo_setup
+ * function, so it won't be done unless it is necessary.
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCNURealTimeStatisticTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ */
+int
+modEoCCNURealTimeStatisticTable_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_undo_setup", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:451:M: |-> Setup modEoCCNURealTimeStatisticTable undo.
+ * set up modEoCCNURealTimeStatisticTable undo information, in preparation for a set.
+ * Undo storage is in (* modEoCCNURealTimeStatisticReset_val_ptr )*
+ */
+
+ return rc;
+} /* modEoCCNURealTimeStatisticTable_undo_setup */
+
+/**
+ * Undo a set request.
+ *
+ * This function will be called before the individual node undo
+ * functions are called. If you need to do any undo that is not
+ * related to a specific column, you can do it here.
+ *
+ * Note that an individual node's undo function will only be called
+ * if that node is being set to a new value.
+ *
+ * If there is anything specific to a particular column (e.g. releasing
+ * memory for a string), you should do that setup in the node's undo
+ * function, so it won't be done unless it is necessary.
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCNURealTimeStatisticTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ */
+int
+modEoCCNURealTimeStatisticTable_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_undo", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:451:M: |-> modEoCCNURealTimeStatisticTable undo.
+ * modEoCCNURealTimeStatisticTable undo information, in response to a failed set.
+ * Undo storage is in (* modEoCCNURealTimeStatisticReset_val_ptr )*
+ */
+
+ return rc;
+} /* modEoCCNURealTimeStatisticTable_undo_setup */
+
+/**
+ * Cleanup up context undo information.
+ *
+ * This function will be called after set/commit processing. If you
+ * allocated any resources in undo_setup, this is the place to release
+ * those resources.
+ *
+ * This function is called regardless of the success or failure of the set
+ * request. If you need to perform different steps for cleanup depending
+ * on success or failure, you can add a flag to the rowreq_ctx.
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCNURealTimeStatisticTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error
+ */
+int
+modEoCCNURealTimeStatisticTable_undo_cleanup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_undo_cleanup", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:452:M: |-> Cleanup modEoCCNURealTimeStatisticTable undo.
+ * Undo storage is in (* modEoCCNURealTimeStatisticReset_val_ptr )*
+ */
+
+ return rc;
+} /* modEoCCNURealTimeStatisticTable_undo_cleanup */
+
+/**
+ * commit new values.
+ *
+ * At this point, you should have done everything you can to ensure that
+ * this commit will not fail.
+ *
+ * Should you need different behavior depending on which columns were
+ * set, rowreq_ctx->column_set_flags will indicate which writeable columns were
+ * set. The definitions for the COLUMN_*_FLAG bits can be found in
+ * modEoCCNURealTimeStatisticTable_oids.h.
+ * A new row will have the MFD_ROW_CREATED bit set in rowreq_flags.
+ *
+ * @param modEoCCNURealTimeStatisticTable_rowreq_ctx
+ * Pointer to the users context.
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error
+ */
+int
+modEoCCNURealTimeStatisticTable_commit
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+ int save_flags;
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_commit", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * save flags, then clear until we actually do something
+ */
+ save_flags = rowreq_ctx->column_set_flags;
+ rowreq_ctx->column_set_flags = 0;
+
+ /*
+ * commit modEoCCNURealTimeStatisticTable data
+ * 1) check the column's flag in save_flags to see if it was set.
+ * 2) clear the flag when you handle that column
+ * 3) set the column's flag in column_set_flags if it needs undo
+ * processing in case of a failure.
+ */
+ if (save_flags & COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG) {
+ save_flags &= ~COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG; /* clear modEoCCNURealTimeStatisticReset */
+ /*
+ * TODO:482:o: |-> commit column modEoCCNURealTimeStatisticReset.
+ */
+ /*
+ * set flag, in case we need to undo modEoCCNURealTimeStatisticReset
+ */
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG;
+ }
+
+ /*
+ * if we successfully commited this row, set the dirty flag.
+ */
+ if (MFD_SUCCESS == rc) {
+ rowreq_ctx->rowreq_flags |= MFD_ROW_DIRTY;
+ }
+
+ if (save_flags) {
+ snmp_log(LOG_ERR, "unhandled columns (0x%x) in commit\n",
+ save_flags);
+ return MFD_ERROR;
+ }
+
+ return rc;
+} /* modEoCCNURealTimeStatisticTable_commit */
+
+/**
+ * undo commit new values.
+ *
+ * Should you need different behavior depending on which columns were
+ * set, rowreq_ctx->column_set_flags will indicate which writeable columns were
+ * set. The definitions for the COLUMN_*_FLAG bits can be found in
+ * modEoCCNURealTimeStatisticTable_oids.h.
+ * A new row will have the MFD_ROW_CREATED bit set in rowreq_flags.
+ *
+ * @param modEoCCNURealTimeStatisticTable_rowreq_ctx
+ * Pointer to the users context.
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error
+ */
+int
+modEoCCNURealTimeStatisticTable_undo_commit
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_undo_commit", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:485:M: |-> Undo modEoCCNURealTimeStatisticTable commit.
+ * check the column's flag in rowreq_ctx->column_set_flags to see
+ * if it was set during commit, then undo it.
+ *
+ * eg: if (rowreq_ctx->column_set_flags & COLUMN__FLAG) {}
+ */
+
+
+ /*
+ * if we successfully un-commited this row, clear the dirty flag.
+ */
+ if (MFD_SUCCESS == rc) {
+ rowreq_ctx->rowreq_flags &= ~MFD_ROW_DIRTY;
+ }
+
+ return rc;
+} /* modEoCCNURealTimeStatisticTable_undo_commit */
+
+/*
+ * TODO:440:M: Implement modEoCCNURealTimeStatisticTable node value checks.
+ * TODO:450:M: Implement modEoCCNURealTimeStatisticTable undo functions.
+ * TODO:460:M: Implement modEoCCNURealTimeStatisticTable set functions.
+ * TODO:480:M: Implement modEoCCNURealTimeStatisticTable commit functions.
+ */
+/*---------------------------------------------------------------------
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticEntry.modEoCCNURealTimeStatisticReset
+ * modEoCCNURealTimeStatisticReset is subid 17 of modEoCCNURealTimeStatisticEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1.1.17
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 1 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ * Enum range: 2/8. Values: none(0), clear(1)
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
+ */
+/**
+ * Check that the proposed new value is potentially valid.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCNURealTimeStatisticReset_val
+ * A long containing the new value.
+ *
+ * @retval MFD_SUCCESS : incoming value is legal
+ * @retval MFD_NOT_VALID_NOW : incoming value is not valid now
+ * @retval MFD_NOT_VALID_EVER : incoming value is never valid
+ *
+ * This is the place to check for requirements that are not
+ * expressed in the mib syntax (for example, a requirement that
+ * is detailed in the description for an object).
+ *
+ * You should check that the requested change between the undo value and the
+ * new value is legal (ie, the transistion from one value to another
+ * is legal).
+ *
+ *@note
+ * This check is only to determine if the new value
+ * is \b potentially valid. This is the first check of many, and
+ * is one of the simplest ones.
+ *
+ *@note
+ * this is not the place to do any checks for values
+ * which depend on some other value in the mib. Those
+ * types of checks should be done in the
+ * modEoCCNURealTimeStatisticTable_check_dependencies() function.
+ *
+ * The following checks have already been done for you:
+ * The syntax is ASN_INTEGER
+ * The value is one of none(0), clear(1)
+ *
+ * If there a no other checks you need to do, simply return MFD_SUCCESS.
+ *
+ */
+int
+modEoCCNURealTimeStatisticReset_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCNURealTimeStatisticReset_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticReset_check_value", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:441:o: |-> Check for valid modEoCCNURealTimeStatisticReset value.
+ */
+
+ return MFD_SUCCESS; /* modEoCCNURealTimeStatisticReset value not illegal */
+} /* modEoCCNURealTimeStatisticReset_check_value */
+
+/**
+ * Save old value information
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCNURealTimeStatisticTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ *
+ * This function will be called after the table level undo setup function
+ * modEoCCNURealTimeStatisticTable_undo_setup has been called.
+ *
+ *@note
+ * this function will only be called if a new value is set for this column.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in this function, so it
+ * won't be done unless it is necessary.
+ */
+int
+modEoCCNURealTimeStatisticReset_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticReset_undo_setup", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:455:o: |-> Setup modEoCCNURealTimeStatisticReset undo.
+ */
+ /*
+ * copy modEoCCNURealTimeStatisticReset data
+ * set rowreq_ctx->undo->modEoCCNURealTimeStatisticReset from rowreq_ctx->data.modEoCCNURealTimeStatisticReset
+ */
+ rowreq_ctx->undo->modEoCCNURealTimeStatisticReset =
+ rowreq_ctx->data.modEoCCNURealTimeStatisticReset;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticReset_undo_setup */
+
+/**
+ * Set the new value.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context. You should know how to
+ * manipulate the value from this object.
+ * @param modEoCCNURealTimeStatisticReset_val
+ * A long containing the new value.
+ */
+int
+modEoCCNURealTimeStatisticReset_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCNURealTimeStatisticReset_val)
+{
+ char mac_str[LIBSPID_MAC_STR_LEN];
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticReset_set", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /* check if current MAC address is valid */
+ netsnmp_assert(NULL != rowreq_ctx->data.modEoCCNURealTimeStatisticCNUMACAddress);
+
+ strcpy(mac_str, rowreq_ctx->data.modEoCCNURealTimeStatisticCNUMACAddress);
+ /*
+ * TODO:245:o: |-> Implement modEoCCNURealTimeStatisticReset reverse mapping.
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+ */
+ switch (modEoCCNURealTimeStatisticReset_val) {
+ case MODEOCCNUREALTIMESTATISTICRESET_NONE:
+ rowreq_ctx->data.modEoCCNURealTimeStatisticReset =
+ INTERNAL_MODEOCCNUREALTIMESTATISTICTABLE_MODEOCCNUREALTIMESTATISTICRESET_NONE;
+ break;
+
+ case MODEOCCNUREALTIMESTATISTICRESET_CLEAR:
+ if (LIBSPID_SUCCESS == libspid_eoc_reset_stat(mac_str)) {
+ rowreq_ctx->data.modEoCCNURealTimeStatisticReset =
+ INTERNAL_MODEOCCNUREALTIMESTATISTICTABLE_MODEOCCNUREALTIMESTATISTICRESET_CLEAR;
+ } else {
+ snmp_log(LOG_ERR,
+ "Couldn't reset statistics for slave with MAC address: %s \n", mac_str);
+ return SNMP_ERR_GENERR;
+ }
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't reverse map value %ld for modEoCCNURealTimeStatisticReset\n",
+ modEoCCNURealTimeStatisticReset_val);
+ return SNMP_ERR_GENERR;
+ }
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticReset_set */
+
+/**
+ * undo the previous set.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context.
+ */
+int
+modEoCCNURealTimeStatisticReset_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticReset_undo", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:456:o: |-> Clean up modEoCCNURealTimeStatisticReset undo.
+ */
+ /*
+ * copy modEoCCNURealTimeStatisticReset data
+ * set rowreq_ctx->data.modEoCCNURealTimeStatisticReset from rowreq_ctx->undo->modEoCCNURealTimeStatisticReset
+ */
+ rowreq_ctx->data.modEoCCNURealTimeStatisticReset =
+ rowreq_ctx->undo->modEoCCNURealTimeStatisticReset;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCNURealTimeStatisticReset_undo */
+
+/** @} */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.h
new file mode 100644
index 0000000000..9259f38147
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_data_set.h
@@ -0,0 +1,288 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 12077 $ of $
+ *
+ * $Id:$
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_DATA_SET_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_DATA_SET_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /*
+ *********************************************************************
+ * SET function declarations
+ */
+
+ /*
+ *********************************************************************
+ * SET Table declarations
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+ /*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+
+
+ int
+ modEoCCNURealTimeStatisticTable_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTable_undo_cleanup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTable_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTable_commit
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTable_undo_commit
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+
+ int
+ modEoCCNURealTimeStatisticTxPkt_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxPkt_val);
+ int
+ modEoCCNURealTimeStatisticTxPkt_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTxPkt_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxPkt_val);
+ int
+ modEoCCNURealTimeStatisticTxPkt_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxPkt_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxPkt_val);
+ int
+ modEoCCNURealTimeStatisticRxPkt_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxPkt_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxPkt_val);
+ int
+ modEoCCNURealTimeStatisticRxPkt_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTxByte_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 modEoCCNURealTimeStatisticTxByte_val);
+ int
+ modEoCCNURealTimeStatisticTxByte_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTxByte_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 modEoCCNURealTimeStatisticTxByte_val);
+ int
+ modEoCCNURealTimeStatisticTxByte_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxByte_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 modEoCCNURealTimeStatisticRxByte_val);
+ int
+ modEoCCNURealTimeStatisticRxByte_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxByte_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ U64 modEoCCNURealTimeStatisticRxByte_val);
+ int
+ modEoCCNURealTimeStatisticRxByte_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTxBcast_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxBcast_val);
+ int
+ modEoCCNURealTimeStatisticTxBcast_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTxBcast_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxBcast_val);
+ int
+ modEoCCNURealTimeStatisticTxBcast_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxBcast_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxBcast_val);
+ int
+ modEoCCNURealTimeStatisticRxBcast_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxBcast_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxBcast_val);
+ int
+ modEoCCNURealTimeStatisticRxBcast_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTxMcast_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxMcast_val);
+ int
+ modEoCCNURealTimeStatisticTxMcast_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTxMcast_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxMcast_val);
+ int
+ modEoCCNURealTimeStatisticTxMcast_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxMcast_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxMcast_val);
+ int
+ modEoCCNURealTimeStatisticRxMcast_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxMcast_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxMcast_val);
+ int
+ modEoCCNURealTimeStatisticRxMcast_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxCrc_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxCrc_val);
+ int
+ modEoCCNURealTimeStatisticRxCrc_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxCrc_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxCrc_val);
+ int
+ modEoCCNURealTimeStatisticRxCrc_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTxShort_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxShort_val);
+ int
+ modEoCCNURealTimeStatisticTxShort_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTxShort_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxShort_val);
+ int
+ modEoCCNURealTimeStatisticTxShort_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxShort_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxShort_val);
+ int
+ modEoCCNURealTimeStatisticRxShort_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxShort_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxShort_val);
+ int
+ modEoCCNURealTimeStatisticRxShort_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTxDropped_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxDropped_val);
+ int
+ modEoCCNURealTimeStatisticTxDropped_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticTxDropped_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticTxDropped_val);
+ int
+ modEoCCNURealTimeStatisticTxDropped_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticRxDropped_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxDropped_val);
+ int
+ modEoCCNURealTimeStatisticRxDropped_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticRxDropped_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticRxDropped_val);
+ int
+ modEoCCNURealTimeStatisticRxDropped_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticAveragePreFEC_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticAveragePreFEC_val);
+ int
+ modEoCCNURealTimeStatisticAveragePreFEC_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticAveragePreFEC_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCNURealTimeStatisticAveragePreFEC_val);
+ int
+ modEoCCNURealTimeStatisticAveragePreFEC_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticReset_check_value
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCNURealTimeStatisticReset_val);
+ int
+ modEoCCNURealTimeStatisticReset_undo_setup
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+ int
+ modEoCCNURealTimeStatisticReset_set
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCNURealTimeStatisticReset_val);
+ int
+ modEoCCNURealTimeStatisticReset_undo
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+
+ int
+ modEoCCNURealTimeStatisticTable_check_dependencies
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * ctx);
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_DATA_SET_H */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_enums.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_enums.h
new file mode 100644
index 0000000000..5539e031ee
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_enums.h
@@ -0,0 +1,62 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * : generic-table-enums.m2c 12526 2005-07-15 22:41:16Z rstory $
+ *
+ * $Id:$
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_ENUMS_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_ENUMS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /*
+ * NOTES on enums
+ * ==============
+ *
+ * Value Mapping
+ * -------------
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them
+ * below. For example, a boolean flag (1/0) is usually represented
+ * as a TruthValue in a MIB, which maps to the values (1/2).
+ *
+ */
+/*************************************************************************
+ *************************************************************************
+ *
+ * enum definitions for table modEoCCNURealTimeStatisticTable
+ *
+ *************************************************************************
+ *************************************************************************/
+
+/*************************************************************
+ * constants for enums for the MIB node
+ * modEoCCNURealTimeStatisticReset (INTEGER / ASN_INTEGER)
+ *
+ * since a Textual Convention may be referenced more than once in a
+ * MIB, protect againt redefinitions of the enum values.
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICRESET_ENUMS
+#define MODEOCCNUREALTIMESTATISTICRESET_ENUMS
+
+#define MODEOCCNUREALTIMESTATISTICRESET_NONE 0
+#define MODEOCCNUREALTIMESTATISTICRESET_CLEAR 1
+
+#endif /* MODEOCCNUREALTIMESTATISTICRESET_ENUMS */
+
+ /*
+ * TODO:140:o: Define your interal representation of modEoCCNURealTimeStatisticReset enums.
+ * (used for value mapping; see notes at top of file)
+ */
+#define INTERNAL_MODEOCCNUREALTIMESTATISTICTABLE_MODEOCCNUREALTIMESTATISTICRESET_NONE 0
+#define INTERNAL_MODEOCCNUREALTIMESTATISTICTABLE_MODEOCCNUREALTIMESTATISTICRESET_CLEAR 1
+
+
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_ENUMS_H */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.c
new file mode 100644
index 0000000000..ab891f865a
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.c
@@ -0,0 +1,1942 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 15899 $ of $
+ *
+ * $Id:$
+ */
+/*
+ * *********************************************************************
+ * *********************************************************************
+ * *********************************************************************
+ * *** ***
+ * *** NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE ***
+ * *** ***
+ * *** ***
+ * *** THIS FILE DOES NOT CONTAIN ANY USER EDITABLE CODE. ***
+ * *** ***
+ * *** ***
+ * *** THE GENERATED CODE IS INTERNAL IMPLEMENTATION, AND ***
+ * *** ***
+ * *** ***
+ * *** IS SUBJECT TO CHANGE WITHOUT WARNING IN FUTURE RELEASES. ***
+ * *** ***
+ * *** ***
+ * *********************************************************************
+ * *********************************************************************
+ * *********************************************************************
+ */
+
+/*
+ * standard Net-SNMP includes
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
+/*
+ * include our parent header
+ */
+#include "modEoCCNURealTimeStatisticTable.h"
+
+
+#include <net-snmp/agent/table_container.h>
+#include <net-snmp/library/container.h>
+
+#include "modEoCCNURealTimeStatisticTable_interface.h"
+
+#include <ctype.h>
+
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCNURealTimeStatisticTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::modEoCCNURealTimeStatisticTable is subid 1 of modEoCStatisticGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.6.1, length: 11
+ */
+typedef struct modEoCCNURealTimeStatisticTable_interface_ctx_s {
+
+ netsnmp_container *container;
+ netsnmp_cache *cache;
+
+ modEoCCNURealTimeStatisticTable_registration *user_ctx;
+
+ netsnmp_table_registration_info tbl_info;
+
+ netsnmp_baby_steps_access_methods access_multiplexer;
+
+ u_int table_dirty;
+
+} modEoCCNURealTimeStatisticTable_interface_ctx;
+
+static modEoCCNURealTimeStatisticTable_interface_ctx
+ modEoCCNURealTimeStatisticTable_if_ctx;
+
+static void
+_modEoCCNURealTimeStatisticTable_container_init
+(modEoCCNURealTimeStatisticTable_interface_ctx * if_ctx);
+static void
+_modEoCCNURealTimeStatisticTable_container_shutdown
+(modEoCCNURealTimeStatisticTable_interface_ctx * if_ctx);
+
+
+netsnmp_container *
+modEoCCNURealTimeStatisticTable_container_get(void)
+{
+ return modEoCCNURealTimeStatisticTable_if_ctx.container;
+}
+
+modEoCCNURealTimeStatisticTable_registration *
+modEoCCNURealTimeStatisticTable_registration_get(void)
+{
+ return modEoCCNURealTimeStatisticTable_if_ctx.user_ctx;
+}
+
+modEoCCNURealTimeStatisticTable_registration *
+modEoCCNURealTimeStatisticTable_registration_set
+ (modEoCCNURealTimeStatisticTable_registration * newreg)
+{
+ modEoCCNURealTimeStatisticTable_registration *old =
+ modEoCCNURealTimeStatisticTable_if_ctx.user_ctx;
+ modEoCCNURealTimeStatisticTable_if_ctx.user_ctx = newreg;
+ return old;
+}
+
+int
+modEoCCNURealTimeStatisticTable_container_size(void)
+{
+ return CONTAINER_SIZE(modEoCCNURealTimeStatisticTable_if_ctx.
+ container);
+}
+
+u_int
+modEoCCNURealTimeStatisticTable_dirty_get(void)
+{
+ return modEoCCNURealTimeStatisticTable_if_ctx.table_dirty;
+}
+
+void
+modEoCCNURealTimeStatisticTable_dirty_set(u_int status)
+{
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_dirty_set", "called. was %d, now %d\n", modEoCCNURealTimeStatisticTable_if_ctx.table_dirty, status));
+ modEoCCNURealTimeStatisticTable_if_ctx.table_dirty = status;
+}
+
+/*
+ * mfd multiplexer modes
+ */
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_pre_request;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_post_request;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_object_lookup;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_get_values;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_check_objects;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_undo_setup;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_set_values;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_undo_cleanup;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_undo_values;
+static Netsnmp_Node_Handler _mfd_modEoCCNURealTimeStatisticTable_commit;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_undo_commit;
+static Netsnmp_Node_Handler
+ _mfd_modEoCCNURealTimeStatisticTable_irreversible_commit;
+
+NETSNMP_STATIC_INLINE int
+_modEoCCNURealTimeStatisticTable_undo_column
+(modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx, netsnmp_variable_list * var,
+int column);
+
+modEoCCNURealTimeStatisticTable_data
+ *modEoCCNURealTimeStatisticTable_allocate_data(void);
+
+/**
+ * @internal
+ * Initialize the table modEoCCNURealTimeStatisticTable
+ * (Define its contents and how it's structured)
+ */
+void
+_modEoCCNURealTimeStatisticTable_initialize_interface
+ (modEoCCNURealTimeStatisticTable_registration * reg_ptr, u_long flags)
+{
+ netsnmp_baby_steps_access_methods *access_multiplexer =
+ &modEoCCNURealTimeStatisticTable_if_ctx.access_multiplexer;
+ netsnmp_table_registration_info *tbl_info =
+ &modEoCCNURealTimeStatisticTable_if_ctx.tbl_info;
+ netsnmp_handler_registration *reginfo;
+ netsnmp_mib_handler *handler;
+ int mfd_modes = 0;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_initialize_interface", "called\n"));
+
+
+ /*************************************************
+ *
+ * save interface context for modEoCCNURealTimeStatisticTable
+ */
+ /*
+ * Setting up the table's definition
+ */
+ netsnmp_table_helper_add_indexes(tbl_info, ASN_INTEGER,
+ /** index: modEoCCNURealTimeStatisticMasterIndex */
+ ASN_INTEGER,
+ /** index: modEoCCNURealTimeStatisticCNUIndex */
+ 0);
+
+ /*
+ * Define the minimum and maximum accessible columns. This
+ * optimizes retrival.
+ */
+ tbl_info->min_column = MODEOCCNUREALTIMESTATISTICTABLE_MIN_COL;
+ tbl_info->max_column = MODEOCCNUREALTIMESTATISTICTABLE_MAX_COL;
+
+ /*
+ * save users context
+ */
+ modEoCCNURealTimeStatisticTable_if_ctx.user_ctx = reg_ptr;
+
+ /*
+ * call data access initialization code
+ */
+ modEoCCNURealTimeStatisticTable_init_data(reg_ptr);
+
+ /*
+ * set up the container
+ */
+ _modEoCCNURealTimeStatisticTable_container_init
+ (&modEoCCNURealTimeStatisticTable_if_ctx);
+ if (NULL == modEoCCNURealTimeStatisticTable_if_ctx.container) {
+ snmp_log(LOG_ERR,
+ "could not initialize container for modEoCCNURealTimeStatisticTable\n");
+ return;
+ }
+
+ /*
+ * access_multiplexer: REQUIRED wrapper for get request handling
+ */
+ access_multiplexer->object_lookup =
+ _mfd_modEoCCNURealTimeStatisticTable_object_lookup;
+ access_multiplexer->get_values =
+ _mfd_modEoCCNURealTimeStatisticTable_get_values;
+
+ /*
+ * no wrappers yet
+ */
+ access_multiplexer->pre_request =
+ _mfd_modEoCCNURealTimeStatisticTable_pre_request;
+ access_multiplexer->post_request =
+ _mfd_modEoCCNURealTimeStatisticTable_post_request;
+
+
+ /*
+ * REQUIRED wrappers for set request handling
+ */
+ access_multiplexer->object_syntax_checks =
+ _mfd_modEoCCNURealTimeStatisticTable_check_objects;
+ access_multiplexer->undo_setup =
+ _mfd_modEoCCNURealTimeStatisticTable_undo_setup;
+ access_multiplexer->undo_cleanup =
+ _mfd_modEoCCNURealTimeStatisticTable_undo_cleanup;
+ access_multiplexer->set_values =
+ _mfd_modEoCCNURealTimeStatisticTable_set_values;
+ access_multiplexer->undo_sets =
+ _mfd_modEoCCNURealTimeStatisticTable_undo_values;
+
+ /*
+ * no wrappers yet
+ */
+ access_multiplexer->commit =
+ _mfd_modEoCCNURealTimeStatisticTable_commit;
+ access_multiplexer->undo_commit =
+ _mfd_modEoCCNURealTimeStatisticTable_undo_commit;
+ access_multiplexer->irreversible_commit =
+ _mfd_modEoCCNURealTimeStatisticTable_irreversible_commit;
+
+ /*************************************************
+ *
+ * Create a registration, save our reg data, register table.
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:init_modEoCCNURealTimeStatisticTable", "Registering modEoCCNURealTimeStatisticTable as a mibs-for-dummies table.\n"));
+ handler =
+ netsnmp_baby_steps_access_multiplexer_get(access_multiplexer);
+ reginfo =
+ netsnmp_handler_registration_create
+ ("modEoCCNURealTimeStatisticTable", handler,
+ modEoCCNURealTimeStatisticTable_oid,
+ modEoCCNURealTimeStatisticTable_oid_size,
+ HANDLER_CAN_BABY_STEP | HANDLER_CAN_RWRITE);
+ if (NULL == reginfo) {
+ snmp_log(LOG_ERR,
+ "error registering table modEoCCNURealTimeStatisticTable\n");
+ return;
+ }
+ reginfo->my_reg_void = &modEoCCNURealTimeStatisticTable_if_ctx;
+
+ /*************************************************
+ *
+ * set up baby steps handler, create it and inject it
+ */
+ if (access_multiplexer->object_lookup)
+ mfd_modes |= BABY_STEP_OBJECT_LOOKUP;
+ if (access_multiplexer->set_values)
+ mfd_modes |= BABY_STEP_SET_VALUES;
+ if (access_multiplexer->irreversible_commit)
+ mfd_modes |= BABY_STEP_IRREVERSIBLE_COMMIT;
+ if (access_multiplexer->object_syntax_checks)
+ mfd_modes |= BABY_STEP_CHECK_OBJECT;
+
+ if (access_multiplexer->pre_request)
+ mfd_modes |= BABY_STEP_PRE_REQUEST;
+ if (access_multiplexer->post_request)
+ mfd_modes |= BABY_STEP_POST_REQUEST;
+
+ if (access_multiplexer->undo_setup)
+ mfd_modes |= BABY_STEP_UNDO_SETUP;
+ if (access_multiplexer->undo_cleanup)
+ mfd_modes |= BABY_STEP_UNDO_CLEANUP;
+ if (access_multiplexer->undo_sets)
+ mfd_modes |= BABY_STEP_UNDO_SETS;
+
+ if (access_multiplexer->row_creation)
+ mfd_modes |= BABY_STEP_ROW_CREATE;
+ if (access_multiplexer->consistency_checks)
+ mfd_modes |= BABY_STEP_CHECK_CONSISTENCY;
+ if (access_multiplexer->commit)
+ mfd_modes |= BABY_STEP_COMMIT;
+ if (access_multiplexer->undo_commit)
+ mfd_modes |= BABY_STEP_UNDO_COMMIT;
+
+ handler = netsnmp_baby_steps_handler_get(mfd_modes);
+ netsnmp_inject_handler(reginfo, handler);
+
+ /*************************************************
+ *
+ * inject row_merge helper with prefix rootoid_len + 2 (entry.col)
+ */
+ handler = netsnmp_get_row_merge_handler(reginfo->rootoid_len + 2);
+ netsnmp_inject_handler(reginfo, handler);
+
+ /*************************************************
+ *
+ * inject container_table helper
+ */
+ handler =
+ netsnmp_container_table_handler_get(tbl_info,
+ modEoCCNURealTimeStatisticTable_if_ctx.
+ container,
+ TABLE_CONTAINER_KEY_NETSNMP_INDEX);
+ netsnmp_inject_handler(reginfo, handler);
+
+ /*************************************************
+ *
+ * inject cache helper
+ */
+ if (NULL != modEoCCNURealTimeStatisticTable_if_ctx.cache) {
+ handler =
+ netsnmp_cache_handler_get
+ (modEoCCNURealTimeStatisticTable_if_ctx.cache);
+ netsnmp_inject_handler(reginfo, handler);
+ }
+
+ /*
+ * register table
+ */
+ netsnmp_register_table(reginfo, tbl_info);
+
+} /* _modEoCCNURealTimeStatisticTable_initialize_interface */
+
+/**
+ * @internal
+ * Shutdown the table modEoCCNURealTimeStatisticTable
+ */
+void
+_modEoCCNURealTimeStatisticTable_shutdown_interface
+ (modEoCCNURealTimeStatisticTable_registration * reg_ptr)
+{
+ /*
+ * shutdown the container
+ */
+ _modEoCCNURealTimeStatisticTable_container_shutdown
+ (&modEoCCNURealTimeStatisticTable_if_ctx);
+}
+
+void
+modEoCCNURealTimeStatisticTable_valid_columns_set(netsnmp_column_info *vc)
+{
+ modEoCCNURealTimeStatisticTable_if_ctx.tbl_info.valid_columns = vc;
+} /* modEoCCNURealTimeStatisticTable_valid_columns_set */
+
+/**
+ * @internal
+ * convert the index component stored in the context to an oid
+ */
+int
+modEoCCNURealTimeStatisticTable_index_to_oid(netsnmp_index * oid_idx,
+ modEoCCNURealTimeStatisticTable_mib_index
+ * mib_idx)
+{
+ int err = SNMP_ERR_NOERROR;
+
+ /*
+ * temp storage for parsing indexes
+ */
+ /*
+ * modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ netsnmp_variable_list var_modEoCCNURealTimeStatisticMasterIndex;
+ /*
+ * modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ netsnmp_variable_list var_modEoCCNURealTimeStatisticCNUIndex;
+
+ /*
+ * set up varbinds
+ */
+ memset(&var_modEoCCNURealTimeStatisticMasterIndex, 0x00,
+ sizeof(var_modEoCCNURealTimeStatisticMasterIndex));
+ var_modEoCCNURealTimeStatisticMasterIndex.type = ASN_INTEGER;
+ memset(&var_modEoCCNURealTimeStatisticCNUIndex, 0x00,
+ sizeof(var_modEoCCNURealTimeStatisticCNUIndex));
+ var_modEoCCNURealTimeStatisticCNUIndex.type = ASN_INTEGER;
+
+ /*
+ * chain temp index varbinds together
+ */
+ var_modEoCCNURealTimeStatisticMasterIndex.next_variable =
+ &var_modEoCCNURealTimeStatisticCNUIndex;
+ var_modEoCCNURealTimeStatisticCNUIndex.next_variable = NULL;
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_index_to_oid", "called\n"));
+
+ /*
+ * modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ snmp_set_var_value(&var_modEoCCNURealTimeStatisticMasterIndex,
+ (u_char *) & mib_idx->
+ modEoCCNURealTimeStatisticMasterIndex,
+ sizeof(mib_idx->
+ modEoCCNURealTimeStatisticMasterIndex));
+
+ /*
+ * modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ snmp_set_var_value(&var_modEoCCNURealTimeStatisticCNUIndex,
+ (u_char *) & mib_idx->
+ modEoCCNURealTimeStatisticCNUIndex,
+ sizeof(mib_idx->
+ modEoCCNURealTimeStatisticCNUIndex));
+
+
+ err = build_oid_noalloc(oid_idx->oids, oid_idx->len, &oid_idx->len,
+ NULL, 0,
+ &var_modEoCCNURealTimeStatisticMasterIndex);
+ if (err)
+ snmp_log(LOG_ERR, "error %d converting index to oid\n", err);
+
+ /*
+ * parsing may have allocated memory. free it.
+ */
+ snmp_reset_var_buffers(&var_modEoCCNURealTimeStatisticMasterIndex);
+
+ return err;
+} /* modEoCCNURealTimeStatisticTable_index_to_oid */
+
+/**
+ * extract modEoCCNURealTimeStatisticTable indexes from a netsnmp_index
+ *
+ * @retval SNMP_ERR_NOERROR : no error
+ * @retval SNMP_ERR_GENERR : error
+ */
+int
+modEoCCNURealTimeStatisticTable_index_from_oid(netsnmp_index * oid_idx,
+ modEoCCNURealTimeStatisticTable_mib_index
+ * mib_idx)
+{
+ int err = SNMP_ERR_NOERROR;
+
+ /*
+ * temp storage for parsing indexes
+ */
+ /*
+ * modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ netsnmp_variable_list var_modEoCCNURealTimeStatisticMasterIndex;
+ /*
+ * modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ netsnmp_variable_list var_modEoCCNURealTimeStatisticCNUIndex;
+
+ /*
+ * set up varbinds
+ */
+ memset(&var_modEoCCNURealTimeStatisticMasterIndex, 0x00,
+ sizeof(var_modEoCCNURealTimeStatisticMasterIndex));
+ var_modEoCCNURealTimeStatisticMasterIndex.type = ASN_INTEGER;
+ memset(&var_modEoCCNURealTimeStatisticCNUIndex, 0x00,
+ sizeof(var_modEoCCNURealTimeStatisticCNUIndex));
+ var_modEoCCNURealTimeStatisticCNUIndex.type = ASN_INTEGER;
+
+ /*
+ * chain temp index varbinds together
+ */
+ var_modEoCCNURealTimeStatisticMasterIndex.next_variable =
+ &var_modEoCCNURealTimeStatisticCNUIndex;
+ var_modEoCCNURealTimeStatisticCNUIndex.next_variable = NULL;
+
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_index_from_oid", "called\n"));
+
+ /*
+ * parse the oid into the individual index components
+ */
+ err = parse_oid_indexes(oid_idx->oids, oid_idx->len,
+ &var_modEoCCNURealTimeStatisticMasterIndex);
+ if (err == SNMP_ERR_NOERROR) {
+ /*
+ * copy out values
+ */
+ mib_idx->modEoCCNURealTimeStatisticMasterIndex =
+ *((long *) var_modEoCCNURealTimeStatisticMasterIndex.val.
+ string);
+ mib_idx->modEoCCNURealTimeStatisticCNUIndex =
+ *((long *) var_modEoCCNURealTimeStatisticCNUIndex.val.string);
+
+
+ }
+
+ /*
+ * parsing may have allocated memory. free it.
+ */
+ snmp_reset_var_buffers(&var_modEoCCNURealTimeStatisticMasterIndex);
+
+ return err;
+} /* modEoCCNURealTimeStatisticTable_index_from_oid */
+
+
+/*
+ * modEoCCNURealTimeStatisticTable_allocate_data
+ *
+ * Purpose: create new modEoCCNURealTimeStatisticTable_data.
+ */
+modEoCCNURealTimeStatisticTable_data *
+modEoCCNURealTimeStatisticTable_allocate_data(void)
+{
+ modEoCCNURealTimeStatisticTable_data *rtn =
+ SNMP_MALLOC_TYPEDEF(modEoCCNURealTimeStatisticTable_data);
+
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_allocate_data", "called\n"));
+
+ if (NULL == rtn) {
+ snmp_log(LOG_ERR, "unable to malloc memory for new "
+ "modEoCCNURealTimeStatisticTable_data.\n");
+ }
+
+ return rtn;
+} /* modEoCCNURealTimeStatisticTable_allocate_data */
+
+/*
+ * modEoCCNURealTimeStatisticTable_release_data
+ *
+ * Purpose: release modEoCCNURealTimeStatisticTable data.
+ */
+void
+modEoCCNURealTimeStatisticTable_release_data
+ (modEoCCNURealTimeStatisticTable_data * data)
+{
+ DEBUGMSGTL(("verbose:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_release_data", "called\n"));
+
+ free(data);
+} /* modEoCCNURealTimeStatisticTable_release_data */
+
+/*
+ *********************************************************************
+ * @internal
+ * allocate resources for a modEoCCNURealTimeStatisticTable_rowreq_ctx
+ */
+modEoCCNURealTimeStatisticTable_rowreq_ctx *
+modEoCCNURealTimeStatisticTable_allocate_rowreq_ctx(void *user_init_ctx)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ SNMP_MALLOC_TYPEDEF(modEoCCNURealTimeStatisticTable_rowreq_ctx);
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_allocate_rowreq_ctx", "called\n"));
+
+ if (NULL == rowreq_ctx) {
+ snmp_log(LOG_ERR, "Couldn't allocate memory for a "
+ "modEoCCNURealTimeStatisticTable_rowreq_ctx.\n");
+ return NULL;
+ }
+
+ rowreq_ctx->oid_idx.oids = rowreq_ctx->oid_tmp;
+
+ rowreq_ctx->modEoCCNURealTimeStatisticTable_data_list = NULL;
+
+ /*
+ * if we allocated data, call init routine
+ */
+ if (!(rowreq_ctx->rowreq_flags & MFD_ROW_DATA_FROM_USER)) {
+ if (SNMPERR_SUCCESS !=
+ modEoCCNURealTimeStatisticTable_rowreq_ctx_init(rowreq_ctx,
+ user_init_ctx))
+ {
+ modEoCCNURealTimeStatisticTable_release_rowreq_ctx(rowreq_ctx);
+ rowreq_ctx = NULL;
+ }
+ }
+
+ return rowreq_ctx;
+} /* modEoCCNURealTimeStatisticTable_allocate_rowreq_ctx */
+
+/*
+ * @internal
+ * release resources for a modEoCCNURealTimeStatisticTable_rowreq_ctx
+ */
+void
+modEoCCNURealTimeStatisticTable_release_rowreq_ctx
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:modEoCCNURealTimeStatisticTable_release_rowreq_ctx", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ modEoCCNURealTimeStatisticTable_rowreq_ctx_cleanup(rowreq_ctx);
+
+ if (rowreq_ctx->undo)
+ modEoCCNURealTimeStatisticTable_release_data(rowreq_ctx->undo);
+
+ /*
+ * free index oid pointer
+ */
+ if (rowreq_ctx->oid_idx.oids != rowreq_ctx->oid_tmp)
+ free(rowreq_ctx->oid_idx.oids);
+
+ SNMP_FREE(rowreq_ctx);
+} /* modEoCCNURealTimeStatisticTable_release_rowreq_ctx */
+
+/**
+ * @internal
+ * wrapper
+ */
+static int
+_mfd_modEoCCNURealTimeStatisticTable_pre_request(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ int rc;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_pre_request", "called\n"));
+
+ if (1 != netsnmp_row_merge_status_first(reginfo, agtreq_info)) {
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable",
+ "skipping additional pre_request\n"));
+ return SNMP_ERR_NOERROR;
+ }
+
+ rc = modEoCCNURealTimeStatisticTable_pre_request
+ (modEoCCNURealTimeStatisticTable_if_ctx.user_ctx);
+ if (MFD_SUCCESS != rc) {
+ /*
+ * nothing we can do about it but log it
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable", "error %d from "
+ "modEoCCNURealTimeStatisticTable_pre_request\n", rc));
+ netsnmp_request_set_error_all(requests, SNMP_VALIDATE_ERR(rc));
+ }
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_pre_request */
+
+/**
+ * @internal
+ * wrapper
+ */
+static int
+_mfd_modEoCCNURealTimeStatisticTable_post_request(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+ int rc, packet_rc;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_post_request", "called\n"));
+
+ /*
+ * release row context, if deleted
+ */
+ if (rowreq_ctx && (rowreq_ctx->rowreq_flags & MFD_ROW_DELETED))
+ modEoCCNURealTimeStatisticTable_release_rowreq_ctx(rowreq_ctx);
+
+ /*
+ * wait for last call before calling user
+ */
+ if (1 != netsnmp_row_merge_status_last(reginfo, agtreq_info)) {
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable",
+ "waiting for last post_request\n"));
+ return SNMP_ERR_NOERROR;
+ }
+
+ packet_rc = netsnmp_check_all_requests_error(agtreq_info->asp, 0);
+ if ((MFD_SUCCESS != packet_rc)
+ && modEoCCNURealTimeStatisticTable_dirty_get()) {
+ /*
+ * we shouldn't get here. the undo steps should also clear
+ * the dirty flags.
+ */
+ snmp_log(LOG_WARNING,
+ "modEoCCNURealTimeStatisticTable dirty flag set in post_request "
+ "but status != SUCCESS.\n");
+ }
+
+ rc = modEoCCNURealTimeStatisticTable_post_request
+ (modEoCCNURealTimeStatisticTable_if_ctx.user_ctx, packet_rc);
+ if (MFD_SUCCESS != rc) {
+ /*
+ * nothing we can do about it but log it
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable", "error %d from "
+ "modEoCCNURealTimeStatisticTable_post_request\n", rc));
+ }
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_post_request */
+
+/**
+ * @internal
+ * wrapper
+ */
+static int
+_mfd_modEoCCNURealTimeStatisticTable_object_lookup(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ int rc = SNMP_ERR_NOERROR;
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_object_lookup", "called\n"));
+
+ /*
+ * get our context from mfd
+ * modEoCCNURealTimeStatisticTable_interface_ctx *if_ctx =
+ * (modEoCCNURealTimeStatisticTable_interface_ctx *)reginfo->my_reg_void;
+ */
+
+ if (NULL == rowreq_ctx) {
+ rc = SNMP_ERR_NOCREATION;
+ }
+
+ if (MFD_SUCCESS != rc)
+ netsnmp_request_set_error_all(requests, rc);
+ else
+ modEoCCNURealTimeStatisticTable_row_prep(rowreq_ctx);
+
+ return SNMP_VALIDATE_ERR(rc);
+} /* _mfd_modEoCCNURealTimeStatisticTable_object_lookup */
+
+/***********************************************************************
+ *
+ * GET processing
+ *
+ ***********************************************************************/
+/*
+ * @internal
+ * Retrieve the value for a particular column
+ */
+NETSNMP_STATIC_INLINE int
+_modEoCCNURealTimeStatisticTable_get_column
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ netsnmp_variable_list * var, int column)
+{
+ int rc = SNMPERR_SUCCESS;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_get_column", "called for %d\n", column));
+
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ switch (column) {
+
+ /*
+ * (INDEX) modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICMASTERINDEX:
+ var->type = ASN_INTEGER;
+ var->val_len = sizeof(long);
+ (*var->val.integer) =
+ rowreq_ctx->tbl_idx.modEoCCNURealTimeStatisticMasterIndex;
+ break;
+
+ /*
+ * (INDEX) modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICCNUINDEX:
+ var->type = ASN_INTEGER;
+ var->val_len = sizeof(long);
+ (*var->val.integer) =
+ rowreq_ctx->tbl_idx.modEoCCNURealTimeStatisticCNUIndex;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxPkt(3)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXPKT:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticTxPkt_get(rowreq_ctx,
+ (long *) var->val.string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxPkt(4)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXPKT:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticRxPkt_get(rowreq_ctx,
+ (long *) var->val.string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxByte(5)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXBYTE:
+ var->val_len = sizeof(U64);
+ var->type = ASN_COUNTER64;
+ rc = modEoCCNURealTimeStatisticTxByte_get(rowreq_ctx,
+ (U64 *) var->val.string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxByte(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXBYTE:
+ var->val_len = sizeof(U64);
+ var->type = ASN_COUNTER64;
+ rc = modEoCCNURealTimeStatisticRxByte_get(rowreq_ctx,
+ (U64 *) var->val.string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxBcast(7)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXBCAST:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticTxBcast_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxBcast(8)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXBCAST:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticRxBcast_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxMcast(9)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXMCAST:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticTxMcast_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxMcast(10)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXMCAST:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticRxMcast_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxCrc(11)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXCRC:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticRxCrc_get(rowreq_ctx,
+ (long *) var->val.string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxShort(12)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXSHORT:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticTxShort_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxShort(13)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXSHORT:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticRxShort_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxDropped(14)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXDROPPED:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticTxDropped_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxDropped(15)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXDROPPED:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticRxDropped_get(rowreq_ctx,
+ (long *) var->val.
+ string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticAveragePreFEC(16)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICAVERAGEPREFEC:
+ var->val_len = sizeof(long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticAveragePreFEC_get(rowreq_ctx,
+ (long *) var->
+ val.string);
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRESET:
+ var->val_len = sizeof(u_long);
+ var->type = ASN_INTEGER;
+ rc = modEoCCNURealTimeStatisticReset_get(rowreq_ctx,
+ (u_long *) var->val.
+ string);
+ break;
+
+ default:
+ if (MODEOCCNUREALTIMESTATISTICTABLE_MIN_COL <= column
+ && column <= MODEOCCNUREALTIMESTATISTICTABLE_MAX_COL) {
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_get_column", "assume column %d is reserved\n", column));
+ rc = MFD_SKIP;
+ } else {
+ snmp_log(LOG_ERR,
+ "unknown column %d in _modEoCCNURealTimeStatisticTable_get_column\n",
+ column);
+ }
+ break;
+ }
+
+ return rc;
+} /* _modEoCCNURealTimeStatisticTable_get_column */
+
+int
+_mfd_modEoCCNURealTimeStatisticTable_get_values(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+ netsnmp_table_request_info *tri;
+ u_char *old_string;
+ void (*dataFreeHook) (void *);
+ int rc;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_get_values", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ for (; requests; requests = requests->next) {
+ /*
+ * save old pointer, so we can free it if replaced
+ */
+ old_string = requests->requestvb->val.string;
+ dataFreeHook = requests->requestvb->dataFreeHook;
+ if (NULL == requests->requestvb->val.string) {
+ requests->requestvb->val.string = requests->requestvb->buf;
+ requests->requestvb->val_len =
+ sizeof(requests->requestvb->buf);
+ } else if (requests->requestvb->buf ==
+ requests->requestvb->val.string) {
+ if (requests->requestvb->val_len !=
+ sizeof(requests->requestvb->buf))
+ requests->requestvb->val_len =
+ sizeof(requests->requestvb->buf);
+ }
+
+ /*
+ * get column data
+ */
+ tri = netsnmp_extract_table_info(requests);
+ if (NULL == tri)
+ continue;
+
+ rc = _modEoCCNURealTimeStatisticTable_get_column(rowreq_ctx,
+ requests->
+ requestvb,
+ tri->colnum);
+ if (rc) {
+ if (MFD_SKIP == rc) {
+ requests->requestvb->type = SNMP_NOSUCHINSTANCE;
+ rc = SNMP_ERR_NOERROR;
+ }
+ } else if (NULL == requests->requestvb->val.string) {
+ snmp_log(LOG_ERR, "NULL varbind data pointer!\n");
+ rc = SNMP_ERR_GENERR;
+ }
+ if (rc)
+ netsnmp_request_set_error(requests, SNMP_VALIDATE_ERR(rc));
+
+ /*
+ * if the buffer wasn't used previously for the old data (i.e. it
+ * was allcoated memory) and the get routine replaced the pointer,
+ * we need to free the previous pointer.
+ */
+ if (old_string && (old_string != requests->requestvb->buf) &&
+ (requests->requestvb->val.string != old_string)) {
+ if (dataFreeHook)
+ (*dataFreeHook) (old_string);
+ else
+ free(old_string);
+ }
+ } /* for results */
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_get_values */
+
+
+/***********************************************************************
+ *
+ * SET processing
+ *
+ ***********************************************************************/
+
+/*----------------------------------------------------------------------
+ *
+ * SET: Syntax checks
+ *
+ *---------------------------------------------------------------------*/
+/*
+ * @internal
+ * Check the syntax for a particular column
+ */
+NETSNMP_STATIC_INLINE int
+_modEoCCNURealTimeStatisticTable_check_column
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ netsnmp_variable_list * var, int column)
+{
+ int rc = SNMPERR_SUCCESS;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_check_column", "called for %d\n", column));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ switch (column) {
+ /*
+ * (INDEX) modEoCCNURealTimeStatisticMasterIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICMASTERINDEX:
+ rc = SNMP_ERR_NOTWRITABLE; /* can not change index of active row */
+ break;
+ /*
+ * (INDEX) modEoCCNURealTimeStatisticCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/R/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICCNUINDEX:
+ rc = SNMP_ERR_NOTWRITABLE; /* can not change index of active row */
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxPkt(3)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXPKT:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxPkt(4)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXPKT:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxByte(5)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXBYTE:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxByte(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXBYTE:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxBcast(7)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXBCAST:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxBcast(8)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXBCAST:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxMcast(9)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXMCAST:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxMcast(10)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXMCAST:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxCrc(11)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXCRC:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxShort(12)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXSHORT:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxShort(13)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXSHORT:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticTxDropped(14)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICTXDROPPED:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticRxDropped(15)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRXDROPPED:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticAveragePreFEC(16)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICAVERAGEPREFEC:
+ rc = SNMP_ERR_NOTWRITABLE;
+ break;
+
+ /*
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRESET:
+ rc = netsnmp_check_vb_type_and_size(var, ASN_INTEGER,
+ sizeof(rowreq_ctx->data.
+ modEoCCNURealTimeStatisticReset));
+ /*
+ * check that the value is one of defined enums
+ */
+ if ((SNMPERR_SUCCESS == rc)
+ && (*var->val.integer != MODEOCCNUREALTIMESTATISTICRESET_NONE)
+ && (*var->val.integer != MODEOCCNUREALTIMESTATISTICRESET_CLEAR)
+ ) {
+ rc = SNMP_ERR_WRONGVALUE;
+ }
+ if (SNMPERR_SUCCESS != rc) {
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_check_column:modEoCCNURealTimeStatisticReset", "varbind validation failed (eg bad type or size)\n"));
+ } else {
+ rc = modEoCCNURealTimeStatisticReset_check_value(rowreq_ctx,
+ *((u_long *)
+ var->val.
+ string));
+ if ((MFD_SUCCESS != rc) && (MFD_NOT_VALID_EVER != rc)
+ && (MFD_NOT_VALID_NOW != rc)) {
+ snmp_log(LOG_ERR,
+ "bad rc %d from modEoCCNURealTimeStatisticReset_check_value\n",
+ rc);
+ rc = SNMP_ERR_GENERR;
+ }
+ }
+ break;
+
+ default: /** We shouldn't get here */
+ rc = SNMP_ERR_GENERR;
+ snmp_log(LOG_ERR,
+ "unknown column %d in _modEoCCNURealTimeStatisticTable_check_column\n",
+ column);
+ }
+
+ return rc;
+} /* _modEoCCNURealTimeStatisticTable_check_column */
+
+int
+_mfd_modEoCCNURealTimeStatisticTable_check_objects(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+ netsnmp_table_request_info *tri;
+ int rc;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_check_objects", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ for (; requests; requests = requests->next) {
+
+ /*
+ * get column number from table request info, and check that column
+ */
+ tri = netsnmp_extract_table_info(requests);
+ if (NULL == tri)
+ continue;
+
+ rc = _modEoCCNURealTimeStatisticTable_check_column(rowreq_ctx,
+ requests->
+ requestvb,
+ tri->colnum);
+ if (rc) {
+ netsnmp_request_set_error(requests, SNMP_VALIDATE_ERR(rc));
+ break;
+ }
+
+ } /* for results */
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_check_objects */
+
+
+/*----------------------------------------------------------------------
+ *
+ * SET: Undo setup
+ *
+ *---------------------------------------------------------------------*/
+/*
+ * @internal
+ * Set the value for a particular column
+ */
+NETSNMP_STATIC_INLINE int
+_modEoCCNURealTimeStatisticTable_undo_setup_column
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx, int column)
+{
+ int rc = SNMPERR_SUCCESS;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_undo_setup_column", "called for %d\n", column));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ switch (column) {
+
+ /*
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRESET:
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG;
+ rc = modEoCCNURealTimeStatisticReset_undo_setup(rowreq_ctx);
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "unknown column %d in _modEoCCNURealTimeStatisticTable_undo_setup_column\n",
+ column);
+ break;
+ }
+
+ return rc;
+} /* _modEoCCNURealTimeStatisticTable_undo_setup_column */
+
+
+/**
+ * @internal
+ * undo setup
+ */
+int
+_mfd_modEoCCNURealTimeStatisticTable_undo_setup(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ int rc;
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_undo_setup", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * allocate undo context
+ */
+ rowreq_ctx->undo = modEoCCNURealTimeStatisticTable_allocate_data();
+ if (NULL == rowreq_ctx->undo) {
+ /** msg already logged */
+ netsnmp_request_set_error_all(requests,
+ SNMP_ERR_RESOURCEUNAVAILABLE);
+ return SNMP_ERR_NOERROR;
+ }
+
+ /*
+ * row undo setup
+ */
+ rowreq_ctx->column_set_flags = 0;
+ rc = modEoCCNURealTimeStatisticTable_undo_setup(rowreq_ctx);
+ if (MFD_SUCCESS != rc) {
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd", "error %d from "
+ "modEoCCNURealTimeStatisticTable_undo_setup\n", rc));
+ netsnmp_request_set_error_all(requests, SNMP_VALIDATE_ERR(rc));
+ } else {
+ /*
+ * column undo setup
+ */
+ netsnmp_table_request_info *tri;
+ for (; requests; requests = requests->next) {
+ /*
+ * set column data
+ */
+ tri = netsnmp_extract_table_info(requests);
+ if (NULL == tri)
+ continue;
+
+ rc = _modEoCCNURealTimeStatisticTable_undo_setup_column
+ (rowreq_ctx, tri->colnum);
+ if (MFD_SUCCESS != rc) {
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd",
+ "error %d from "
+ "modEoCCNURealTimeStatisticTable_undo_setup_column\n",
+ rc));
+ netsnmp_set_request_error(agtreq_info, requests,
+ SNMP_VALIDATE_ERR(rc));
+ }
+ } /* for results */
+ }
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_undo_setup */
+
+/**
+ * @internal
+ * undo setup
+ */
+int
+_mfd_modEoCCNURealTimeStatisticTable_undo_cleanup(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+ int rc;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_undo_cleanup", "called\n"));
+
+ /*
+ * failed row create in early stages has no rowreq_ctx
+ */
+ if (NULL == rowreq_ctx)
+ return MFD_SUCCESS;
+
+ /*
+ * call user cleanup
+ */
+ rc = modEoCCNURealTimeStatisticTable_undo_cleanup(rowreq_ctx);
+ if (MFD_SUCCESS != rc) {
+ /*
+ * nothing we can do about it but log it
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd", "error %d from "
+ "modEoCCNURealTimeStatisticTable_undo_cleanup\n", rc));
+ }
+
+ /*
+ * release undo context, if needed
+ */
+ if (rowreq_ctx->undo) {
+ modEoCCNURealTimeStatisticTable_release_data(rowreq_ctx->undo);
+ rowreq_ctx->undo = NULL;
+ }
+
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_undo_cleanup */
+
+/*----------------------------------------------------------------------
+ *
+ * SET: Set values
+ *
+ *---------------------------------------------------------------------*/
+/*
+ * @internal
+ * Set the value for a particular column
+ */
+NETSNMP_STATIC_INLINE int
+_modEoCCNURealTimeStatisticTable_set_column
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ netsnmp_variable_list * var, int column)
+{
+ int rc = SNMPERR_SUCCESS;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_set_column", "called for %d\n", column));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ switch (column) {
+
+ /*
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRESET:
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG;
+ rc = modEoCCNURealTimeStatisticReset_set(rowreq_ctx,
+ *((u_long *) var->val.
+ string));
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "unknown column %d in _modEoCCNURealTimeStatisticTable_set_column\n",
+ column);
+ rc = SNMP_ERR_GENERR;
+ break;
+ }
+
+ return rc;
+} /* _modEoCCNURealTimeStatisticTable_set_column */
+
+int
+_mfd_modEoCCNURealTimeStatisticTable_set_values(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+ netsnmp_table_request_info *tri;
+ int rc = SNMP_ERR_NOERROR;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_set_values", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ rowreq_ctx->column_set_flags = 0;
+ for (; requests; requests = requests->next) {
+ /*
+ * set column data
+ */
+ tri = netsnmp_extract_table_info(requests);
+ if (NULL == tri)
+ continue;
+
+ rc = _modEoCCNURealTimeStatisticTable_set_column(rowreq_ctx,
+ requests->
+ requestvb,
+ tri->colnum);
+ if (MFD_SUCCESS != rc) {
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd",
+ "error %d from "
+ "modEoCCNURealTimeStatisticTable_set_column\n",
+ rc));
+ netsnmp_set_request_error(agtreq_info, requests,
+ SNMP_VALIDATE_ERR(rc));
+ }
+ } /* for results */
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_set_values */
+
+/*----------------------------------------------------------------------
+ *
+ * SET: commit
+ *
+ *---------------------------------------------------------------------*/
+/**
+ * @internal
+ * commit the values
+ */
+int
+_mfd_modEoCCNURealTimeStatisticTable_commit(netsnmp_mib_handler *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info *requests)
+{
+ int rc;
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_commit", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ rc = modEoCCNURealTimeStatisticTable_commit(rowreq_ctx);
+ if (MFD_SUCCESS != rc) {
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd", "error %d from "
+ "modEoCCNURealTimeStatisticTable_commit\n", rc));
+ netsnmp_request_set_error_all(requests, SNMP_VALIDATE_ERR(rc));
+ }
+
+ if (rowreq_ctx->rowreq_flags & MFD_ROW_DIRTY) {
+ /*
+ * if we successfully commited this row, set the dirty flag. Use the
+ * current value + 1 (i.e. dirty = # rows changed).
+ * this is checked in post_request...
+ */
+ modEoCCNURealTimeStatisticTable_dirty_set(modEoCCNURealTimeStatisticTable_dirty_get() + 1); /* set table dirty flag */
+ }
+
+ return SNMP_ERR_NOERROR;
+}
+
+int
+_mfd_modEoCCNURealTimeStatisticTable_undo_commit(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ int rc;
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_undo_commit", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ if (rowreq_ctx->rowreq_flags & MFD_ROW_DIRTY) {
+ u_int d = modEoCCNURealTimeStatisticTable_dirty_get();
+
+ netsnmp_assert(d != 0);
+ if (d)
+ modEoCCNURealTimeStatisticTable_dirty_set(d - 1);
+ }
+
+ rc = modEoCCNURealTimeStatisticTable_undo_commit(rowreq_ctx);
+ if (MFD_SUCCESS != rc) {
+ /*
+ * nothing we can do about it but log it
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd", "error %d from "
+ "modEoCCNURealTimeStatisticTable_undo_commit\n", rc));
+ }
+
+ if (rowreq_ctx->rowreq_flags & MFD_ROW_DIRTY) {
+ snmp_log(LOG_WARNING,
+ "modEoCCNURealTimeStatisticTable row dirty flag still set after undo_commit\n");
+ rowreq_ctx->rowreq_flags &= ~MFD_ROW_DIRTY;
+ }
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_commit */
+
+/*----------------------------------------------------------------------
+ *
+ * SET: Undo
+ *
+ *---------------------------------------------------------------------*/
+/**
+ * @internal
+ * undo the value for a particular column
+ */
+NETSNMP_STATIC_INLINE int
+_modEoCCNURealTimeStatisticTable_undo_column
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx,
+ netsnmp_variable_list * var, int column)
+{
+ int rc = SNMPERR_SUCCESS;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_undo_column", "called for %d\n", column));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ switch (column) {
+
+ /*
+ * modEoCCNURealTimeStatisticReset(17)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ case COLUMN_MODEOCCNUREALTIMESTATISTICRESET:
+ rc = modEoCCNURealTimeStatisticReset_undo(rowreq_ctx);
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "unknown column %d in _modEoCCNURealTimeStatisticTable_undo_column\n",
+ column);
+ break;
+ }
+
+ return rc;
+} /* _modEoCCNURealTimeStatisticTable_undo_column */
+
+int
+_mfd_modEoCCNURealTimeStatisticTable_undo_values(netsnmp_mib_handler
+ *handler,
+ netsnmp_handler_registration
+ *reginfo,
+ netsnmp_agent_request_info
+ *agtreq_info,
+ netsnmp_request_info
+ *requests)
+{
+ int rc;
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+ netsnmp_table_request_info *tri;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_undo_values", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ rc = modEoCCNURealTimeStatisticTable_undo(rowreq_ctx);
+ if (MFD_SUCCESS != rc) {
+ /*
+ * nothing we can do about it but log it
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd", "error %d from "
+ "modEoCCNURealTimeStatisticTable_undo\n", rc));
+ }
+
+ for (; requests; requests = requests->next) {
+ /*
+ * set column data
+ */
+ tri = netsnmp_extract_table_info(requests);
+ if (NULL == tri)
+ continue;
+
+ rc = _modEoCCNURealTimeStatisticTable_undo_column(rowreq_ctx,
+ requests->
+ requestvb,
+ tri->colnum);
+ if (MFD_SUCCESS != rc) {
+ /*
+ * nothing we can do about it but log it
+ */
+ DEBUGMSGTL(("modEoCCNURealTimeStatisticTable:mfd",
+ "error %d from "
+ "modEoCCNURealTimeStatisticTable_undo_column\n",
+ rc));
+ }
+ } /* for results */
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_undo_values */
+
+/*----------------------------------------------------------------------
+ *
+ * SET: irreversible commit
+ *
+ *---------------------------------------------------------------------*/
+/**
+ * @internal
+ * commit irreversible actions
+ */
+int
+_mfd_modEoCCNURealTimeStatisticTable_irreversible_commit
+ (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo,
+ netsnmp_agent_request_info *agtreq_info,
+ netsnmp_request_info *requests)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx =
+ netsnmp_container_table_row_extract(requests);
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_mfd_modEoCCNURealTimeStatisticTable_irreversible:commit", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * check for and handle row creation/deletion
+ * and update column exist flags...
+ */
+ if (rowreq_ctx->rowreq_flags & MFD_ROW_DELETED) {
+ if (!(rowreq_ctx->rowreq_flags & MFD_ROW_CREATED))
+ CONTAINER_REMOVE(modEoCCNURealTimeStatisticTable_if_ctx.
+ container, rowreq_ctx);
+ } else {
+ if (rowreq_ctx->column_set_flags) {
+ rowreq_ctx->column_set_flags = 0;
+ }
+ }
+
+ return SNMP_ERR_NOERROR;
+} /* _mfd_modEoCCNURealTimeStatisticTable_irreversible_commit */
+
+/***********************************************************************
+ *
+ * DATA ACCESS
+ *
+ ***********************************************************************/
+static void _container_free(netsnmp_container * container);
+
+/**
+ * @internal
+ */
+static int
+_cache_load(netsnmp_cache * cache, void *vmagic)
+{
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_cache_load",
+ "called\n"));
+
+ if ((NULL == cache) || (NULL == cache->magic)) {
+ snmp_log(LOG_ERR,
+ "invalid cache for modEoCCNURealTimeStatisticTable_cache_load\n");
+ return -1;
+ }
+
+ /** should only be called for an invalid or expired cache */
+ netsnmp_assert((0 == cache->valid) || (1 == cache->expired));
+
+ /*
+ * call user code
+ */
+ return
+ modEoCCNURealTimeStatisticTable_container_load((netsnmp_container
+ *) cache->magic);
+} /* _cache_load */
+
+/**
+ * @internal
+ */
+static void
+_cache_free(netsnmp_cache * cache, void *magic)
+{
+ netsnmp_container *container;
+
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_cache_free",
+ "called\n"));
+
+ if ((NULL == cache) || (NULL == cache->magic)) {
+ snmp_log(LOG_ERR,
+ "invalid cache in modEoCCNURealTimeStatisticTable_cache_free\n");
+ return;
+ }
+
+ container = (netsnmp_container *) cache->magic;
+
+ _container_free(container);
+} /* _cache_free */
+
+/**
+ * @internal
+ */
+static void
+_container_item_free(modEoCCNURealTimeStatisticTable_rowreq_ctx *
+ rowreq_ctx, void *context)
+{
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_container_item_free", "called\n"));
+
+ if (NULL == rowreq_ctx)
+ return;
+
+ modEoCCNURealTimeStatisticTable_release_rowreq_ctx(rowreq_ctx);
+} /* _container_item_free */
+
+/**
+ * @internal
+ */
+static void
+_container_free(netsnmp_container * container)
+{
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_container_free",
+ "called\n"));
+
+ if (NULL == container) {
+ snmp_log(LOG_ERR,
+ "invalid container in modEoCCNURealTimeStatisticTable_container_free\n");
+ return;
+ }
+
+ /*
+ * call user code
+ */
+ modEoCCNURealTimeStatisticTable_container_free(container);
+
+ /*
+ * free all items. inefficient, but easy.
+ */
+ CONTAINER_CLEAR(container,
+ (netsnmp_container_obj_func *) _container_item_free,
+ NULL);
+} /* _container_free */
+
+/**
+ * @internal
+ * initialize the container with functions or wrappers
+ */
+void
+_modEoCCNURealTimeStatisticTable_container_init
+ (modEoCCNURealTimeStatisticTable_interface_ctx * if_ctx)
+{
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_container_init", "called\n"));
+
+ /*
+ * cache init
+ */
+ if_ctx->cache = netsnmp_cache_create(30, /* timeout in seconds */
+ _cache_load, _cache_free,
+ modEoCCNURealTimeStatisticTable_oid,
+ modEoCCNURealTimeStatisticTable_oid_size);
+
+ if (NULL == if_ctx->cache) {
+ snmp_log(LOG_ERR,
+ "error creating cache for modEoCCNURealTimeStatisticTable\n");
+ return;
+ }
+
+ if_ctx->cache->flags = NETSNMP_CACHE_DONT_INVALIDATE_ON_SET;
+
+ modEoCCNURealTimeStatisticTable_container_init(&if_ctx->container,
+ if_ctx->cache);
+ if (NULL == if_ctx->container)
+ if_ctx->container =
+ netsnmp_container_find
+ ("modEoCCNURealTimeStatisticTable:table_container");
+ if (NULL == if_ctx->container) {
+ snmp_log(LOG_ERR, "error creating container in "
+ "modEoCCNURealTimeStatisticTable_container_init\n");
+ return;
+ }
+
+ if (NULL != if_ctx->cache)
+ if_ctx->cache->magic = (void *) if_ctx->container;
+} /* _modEoCCNURealTimeStatisticTable_container_init */
+
+/**
+ * @internal
+ * shutdown the container with functions or wrappers
+ */
+void
+_modEoCCNURealTimeStatisticTable_container_shutdown
+ (modEoCCNURealTimeStatisticTable_interface_ctx * if_ctx)
+{
+ DEBUGMSGTL(("internal:modEoCCNURealTimeStatisticTable:_modEoCCNURealTimeStatisticTable_container_shutdown", "called\n"));
+
+ modEoCCNURealTimeStatisticTable_container_shutdown(if_ctx->container);
+
+ _container_free(if_ctx->container);
+
+} /* _modEoCCNURealTimeStatisticTable_container_shutdown */
+
+
+modEoCCNURealTimeStatisticTable_rowreq_ctx *
+modEoCCNURealTimeStatisticTable_row_find_by_mib_index
+ (modEoCCNURealTimeStatisticTable_mib_index * mib_idx)
+{
+ modEoCCNURealTimeStatisticTable_rowreq_ctx *rowreq_ctx;
+ oid oid_tmp[MAX_OID_LEN];
+ netsnmp_index oid_idx;
+ int rc;
+
+ /*
+ * set up storage for OID
+ */
+ oid_idx.oids = oid_tmp;
+ oid_idx.len = sizeof(oid_tmp) / sizeof(oid);
+
+ /*
+ * convert
+ */
+ rc = modEoCCNURealTimeStatisticTable_index_to_oid(&oid_idx, mib_idx);
+ if (MFD_SUCCESS != rc)
+ return NULL;
+
+ rowreq_ctx =
+ CONTAINER_FIND(modEoCCNURealTimeStatisticTable_if_ctx.container,
+ &oid_idx);
+
+ return rowreq_ctx;
+}
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.h
new file mode 100644
index 0000000000..b1d4b60326
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_interface.h
@@ -0,0 +1,106 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 15899 $ of $
+ *
+ * $Id:$
+ */
+/** @ingroup interface: Routines to interface to Net-SNMP
+ *
+ * \warning This code should not be modified, called directly,
+ * or used to interpret functionality. It is subject to
+ * change at any time.
+ *
+ * @{
+ */
+/*
+ * *********************************************************************
+ * *********************************************************************
+ * *********************************************************************
+ * *** ***
+ * *** NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE ***
+ * *** ***
+ * *** ***
+ * *** THIS FILE DOES NOT CONTAIN ANY USER EDITABLE CODE. ***
+ * *** ***
+ * *** ***
+ * *** THE GENERATED CODE IS INTERNAL IMPLEMENTATION, AND ***
+ * *** ***
+ * *** ***
+ * *** IS SUBJECT TO CHANGE WITHOUT WARNING IN FUTURE RELEASES. ***
+ * *** ***
+ * *** ***
+ * *********************************************************************
+ * *********************************************************************
+ * *********************************************************************
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_INTERFACE_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_INTERFACE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include "modEoCCNURealTimeStatisticTable.h"
+
+
+ /*
+ ********************************************************************
+ * Table declarations
+ */
+
+ /*
+ * PUBLIC interface initialization routine
+ */
+ void
+ _modEoCCNURealTimeStatisticTable_initialize_interface
+ (modEoCCNURealTimeStatisticTable_registration * user_ctx,
+ u_long flags);
+ void
+ _modEoCCNURealTimeStatisticTable_shutdown_interface
+ (modEoCCNURealTimeStatisticTable_registration * user_ctx);
+
+ modEoCCNURealTimeStatisticTable_registration
+ *modEoCCNURealTimeStatisticTable_registration_get(void);
+
+ modEoCCNURealTimeStatisticTable_registration
+ *modEoCCNURealTimeStatisticTable_registration_set
+ (modEoCCNURealTimeStatisticTable_registration * newreg);
+
+ netsnmp_container *modEoCCNURealTimeStatisticTable_container_get(void);
+ int modEoCCNURealTimeStatisticTable_container_size(void);
+
+ u_int modEoCCNURealTimeStatisticTable_dirty_get(void);
+ void modEoCCNURealTimeStatisticTable_dirty_set(u_int
+ status);
+
+ modEoCCNURealTimeStatisticTable_rowreq_ctx
+ *modEoCCNURealTimeStatisticTable_allocate_rowreq_ctx(void *);
+ void
+ modEoCCNURealTimeStatisticTable_release_rowreq_ctx
+ (modEoCCNURealTimeStatisticTable_rowreq_ctx * rowreq_ctx);
+
+ int
+ modEoCCNURealTimeStatisticTable_index_to_oid(netsnmp_index *
+ oid_idx,
+ modEoCCNURealTimeStatisticTable_mib_index
+ * mib_idx);
+ int
+ modEoCCNURealTimeStatisticTable_index_from_oid(netsnmp_index *
+ oid_idx,
+ modEoCCNURealTimeStatisticTable_mib_index
+ * mib_idx);
+
+ /*
+ * access to certain internals. use with caution!
+ */
+ void
+ modEoCCNURealTimeStatisticTable_valid_columns_set
+ (netsnmp_column_info *vc);
+
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_INTERFACE_H */
+/** @} */
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_oids.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_oids.h
new file mode 100644
index 0000000000..7590063747
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCStatisticGroup/modEoCCNURealTimeStatisticTable/modEoCCNURealTimeStatisticTable_oids.h
@@ -0,0 +1,69 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * : generic-table-oids.m2c 12855 2005-09-27 15:56:08Z rstory $
+ *
+ * $Id:$
+ */
+#ifndef MODEOCCNUREALTIMESTATISTICTABLE_OIDS_H
+#define MODEOCCNUREALTIMESTATISTICTABLE_OIDS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+ /*
+ * column number definitions for table modEoCCNURealTimeStatisticTable
+ */
+#define MODEOCCNUREALTIMESTATISTICTABLE_OID 1,3,6,1,4,1,22764,3,1,6,1
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICMASTERINDEX 1
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICCNUINDEX 2
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICTXPKT 3
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXPKT 4
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICTXBYTE 5
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXBYTE 6
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICTXBCAST 7
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXBCAST 8
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICTXMCAST 9
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXMCAST 10
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXCRC 11
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICTXSHORT 12
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXSHORT 13
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICTXDROPPED 14
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRXDROPPED 15
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICAVERAGEPREFEC 16
+
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRESET 17
+#define COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG (0x1 << 16)
+
+
+#define MODEOCCNUREALTIMESTATISTICTABLE_MIN_COL COLUMN_MODEOCCNUREALTIMESTATISTICMASTERINDEX
+#define MODEOCCNUREALTIMESTATISTICTABLE_MAX_COL COLUMN_MODEOCCNUREALTIMESTATISTICRESET
+
+
+ /*
+ * TODO:405:r: Review MODEOCCNUREALTIMESTATISTICTABLE_SETTABLE_COLS macro.
+ * OR together all the writable cols.
+ */
+#define MODEOCCNUREALTIMESTATISTICTABLE_SETTABLE_COLS (COLUMN_MODEOCCNUREALTIMESTATISTICRESET_FLAG)
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* MODEOCCNUREALTIMESTATISTICTABLE_OIDS_H */