diff options
author | Micael Karlberg <[email protected]> | 2013-02-04 12:11:01 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-02-04 12:18:00 +0100 |
commit | 20610638170828f2ef57e5786ffb7ca67c20f673 (patch) | |
tree | b1b148101d82234a5582e55db94e37d1695bb798 /lib/snmp/src/compile/snmpc_lib.erl | |
parent | 1cbd897c43f0dab1275392a3736e4629c1f80243 (diff) | |
download | otp-20610638170828f2ef57e5786ffb7ca67c20f673.tar.gz otp-20610638170828f2ef57e5786ffb7ca67c20f673.tar.bz2 otp-20610638170828f2ef57e5786ffb7ca67c20f673.zip |
[snmp/compiler] MIB compiler did not handle import BITS
The MIB comp�iler (snmpc) did not hanmdle import (from
SNMPv2-SMI) of (pseudo-) type BITS.
Diffstat (limited to 'lib/snmp/src/compile/snmpc_lib.erl')
-rw-r--r-- | lib/snmp/src/compile/snmpc_lib.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/snmp/src/compile/snmpc_lib.erl b/lib/snmp/src/compile/snmpc_lib.erl index c7eae307e8..3652054298 100644 --- a/lib/snmp/src/compile/snmpc_lib.erl +++ b/lib/snmp/src/compile/snmpc_lib.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2012. All Rights Reserved. +%% Copyright Ericsson AB 1997-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -240,7 +240,10 @@ import_mib({{'SNMPv2-SMI', ImportsFromMib},Line}) -> aliasname = 'Opaque'}, #asn1_type{bertype = 'Counter64', aliasname = 'Counter64', - lo = 0, hi = 18446744073709551615}], + lo = 0, hi = 18446744073709551615}, + #asn1_type{bertype = 'BITS', + aliasname = 'BITS'} + ], Macros = ['MODULE-IDENTITY','OBJECT-IDENTITY','OBJECT-TYPE', 'NOTIFICATION-TYPE'], import_built_in_loop(ImportsFromMib,Nodes,Types,Macros,'SNMPv2-SMI',Line); |