author | Florian Forster <octo@collectd.org> | |
Sun, 23 Sep 2012 09:50:57 +0000 (11:50 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 23 Sep 2012 09:50:57 +0000 (11:50 +0200) | ||
commit | 742e939aa454784382e51fc9bdd82f18314b635c | |
tree | d9ddfda2dec320c350011a8fd622b4aadd0f1bbc | tree | snapshot |
parent | 69f341f4042f56279be79501d3222c6cb1382e85 | commit | diff |
snmp plugin: Improve subtree matching.
Some MIBs use subtrees with an unusual OID naming schema. For example,
some network hardware encodes the MAC address in the last six parts of
the OID. Previously, the code only checked the last part of the OID
("sub-id") and assumed this was increasing. This assumption is not true
in such naming schemas and is not required by SNMP. This patch fixes
this behavior by comparing the entire "OID suffix".
This hopefully fixes Github issue #131.
Some MIBs use subtrees with an unusual OID naming schema. For example,
some network hardware encodes the MAC address in the last six parts of
the OID. Previously, the code only checked the last part of the OID
("sub-id") and assumed this was increasing. This assumption is not true
in such naming schemas and is not required by SNMP. This patch fixes
this behavior by comparing the entire "OID suffix".
This hopefully fixes Github issue #131.
src/snmp.c | diff | blob | history |