summaryrefslogtreecommitdiff
path: root/module/bsnmp-regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/bsnmp-regex.c')
-rw-r--r--module/bsnmp-regex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/bsnmp-regex.c b/module/bsnmp-regex.c
index b90a29d..19febca 100644
--- a/module/bsnmp-regex.c
+++ b/module/bsnmp-regex.c
@@ -1097,6 +1097,11 @@ op_regexentry (struct snmp_context *ctx, struct snmp_value *value,
case LEAF_regexValue:
return (string_get (value, (data->value_str && !expired) ?
data->value_str : "", -1));
+
+ case LEAF_regexCounter:
+ value->v.counter64 = expired ? 0 : data->value_int;
+ break;
+
default:
ASSERT(0);
break;