diff options
l--------- | INSTALL | 2 | ||||
-rwxr-xr-x | autogen.sh | 11 | ||||
-rw-r--r-- | module/bsnmp-regex.c | 5 | ||||
-rw-r--r-- | module/regex-tree.def | 1 |
4 files changed, 18 insertions, 1 deletions
@@ -1 +1 @@ -/usr/local/share/automake110/INSTALL
\ No newline at end of file +/usr/local/share/automake19/INSTALL
\ No newline at end of file diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..100e70d --- /dev/null +++ b/autogen.sh @@ -0,0 +1,11 @@ +#!/bin/sh -ex + +set -ex + +aclocal +autoheader +libtoolize --force +automake -a +autoconf +./configure --enable-maintainer-mode "$@" + 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; diff --git a/module/regex-tree.def b/module/regex-tree.def index 759c9c8..c98cac9 100644 --- a/module/regex-tree.def +++ b/module/regex-tree.def @@ -49,6 +49,7 @@ (3 regexLast TIMETICKS GET) (4 regexInteger INTEGER GET) (5 regexValue OCTETSTRING GET) + (6 regexCounter COUNTER64 GET) ) # Valid only during configuration |