diff options
author | Stef Walter <stef@memberwebs.com> | 2008-03-07 21:33:03 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-03-07 21:33:03 +0000 |
commit | b33612c01ed05b9495e495d63c567da75f9a6d5a (patch) | |
tree | 17fa8e6a309b17aba2d85fbcdcfb6e608784ee66 /module | |
parent | 20cef4c43c7f5be5b5da13978de5cfc9293e94b7 (diff) |
Add autogen.sh, include 64-bit counter patch
Diffstat (limited to 'module')
-rw-r--r-- | module/bsnmp-regex.c | 5 | ||||
-rw-r--r-- | module/regex-tree.def | 1 |
2 files changed, 6 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; 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 |