aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/compile/snmpc_lib.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2014-07-18 13:58:44 +0200
committerRaimo Niskanen <[email protected]>2014-12-01 11:15:59 +0100
commitd24db992b68b04a7d284cd058376d98853b92daf (patch)
tree4dbfa851fffbb9b4a8a536135c176bc841b3bb38 /lib/snmp/src/compile/snmpc_lib.erl
parent9417f044ee3c291c2ea343c203aebdcc40597226 (diff)
downloadotp-d24db992b68b04a7d284cd058376d98853b92daf.tar.gz
otp-d24db992b68b04a7d284cd058376d98853b92daf.tar.bz2
otp-d24db992b68b04a7d284cd058376d98853b92daf.zip
[snmp/compiler] Refinement of type Opaque was not allowed
MIB constructs such as "SYNTAX Opaque (SIZE(0..65535))" was previously not allowed, this has now been fixed. See the standard ALARM-MIB for eaxmple.
Diffstat (limited to 'lib/snmp/src/compile/snmpc_lib.erl')
-rw-r--r--lib/snmp/src/compile/snmpc_lib.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/snmp/src/compile/snmpc_lib.erl b/lib/snmp/src/compile/snmpc_lib.erl
index 5a661cf194..0f6393eeef 100644
--- a/lib/snmp/src/compile/snmpc_lib.erl
+++ b/lib/snmp/src/compile/snmpc_lib.erl
@@ -139,6 +139,7 @@ allow_size_rfc1902('Integer32') -> true;
allow_size_rfc1902('Unsigned32') -> true;
allow_size_rfc1902('OCTET STRING') -> true;
allow_size_rfc1902('Gauge32') -> true;
+allow_size_rfc1902('Opaque') -> true;
allow_size_rfc1902(_) -> false.
guess_integer_type() ->