SNMP Updates – NET+OS 7.3

 

 

 

Last Updated: 04/24/12         Fix Count: 24

 

 
Title 
naSnmpGetSysName returns  "no memory"
 
Case: 1335766
 
Date Fixed:  04/24/12
 
Description
Function naSnmpGetSysName returns  "no memory" on success or on failure.
 
Solution 

Repaired function code.

 

 
Title 
SNMPv1 Traps incorrectly includes extra timestamp
 
Case: 42182
 
Date Fixed:  02/28/12
 
Description
V1 traps contain the sysuptime in BOTH the trap parameters AND the first variable binding - violates RFC
 
Solution 

Removed varbind for sysuptime for V1 trap in tfSendNotificationsForEntry. (Case 42182)



 
Title 
Message length incorrectly calculated
 
Case: 37378
 
Date Fixed:  02/02/11
 
Description
Length of the body of the SNMP message, excluding the UDP header, was not being calculated correctly.
 
Solution 

Fixed problem where the length of the body of the SNMP message, excluding the UDP header, was not being calculated correctly
and therefore was not written correctly into the SNMP message.

 

 
Title 
linker errors when unsigned ints are included in a MIB
 
Case: 33658
 
Date Fixed:  04/06/10
 
Description
We get the following linker error:  undefined reference to 'tfProcessUnsignedInt' when unsigned ints are included in a MIB.
 
Solution 

Enabled TM_USE_PROCESS_UINT in SNMP agent to resolve issue.

 

 
Title 
SNMPv3 user denied access
 
Case: 33851
 
Date Fixed:  04/06/10
 
Description

If only one SNMPv3 user exists and it does not have an authentication protocol, that user will be denied access to the SNMP agent.

 
Solution 

Fixed access for user with no authentication protocol.

 

 
Title 
Library mismatch could cause crash
 
Case: 33312
 
Date Fixed:  03/03/10
 
Description

Linking mismatching TCPIP and SNMP libraries (with and without IPSEC) could cause SNMP to crash.

 
Solution 

Fixed coding error that could cause SNMP to crash when there is a mismatch of TCPIP and SNMP libraries with and without IPSEC.

 

 
Title 
Sending v1 traps causes crash
 
Case: 32919
 
Date Fixed:  02/05/10
 
Description

Sending v1 traps could result in a crash in the Abort_Handler

 
Solution 
Modified code to allow v1 traps with varbinds.

 

 
Title 
Added new NET+OS API
 
Case:  internal
 
Date Fixed:  11/16/09
 
Description

Added naSnmpV3SendNotifications.

 
Solution 
See updated API Reference for NET+OS 7.3.

 

 
Title 
V1 traps fail if there are no variable bindings
 
Case:  internal
 
Date Fixed:  11/03/09
 
Description

If you are using API naSnmpsendTrap() for V1 traps but you want no variables bound to the traps, the API naSnmpsendTrap() would return NASTATUS_SNMP_CANNOT_SEND_TRAP (in hex the value is 0x80080004). The code to create the trap variable and get it ready for sending was not prepared for a variables pointer set to NULL and the number of variables variable set to 0. Instead of setting up the trap with a NULL variables pointer, it would try to fill in the variables and fail with the aforementioned error.

 
Solution 
Reworked code so it can now handle V1 traps containing no variable bindings.

 

 
Title 
ipAdEntNetMask contents incorrect
 
Case:  32025
 
Date Fixed:  10/29/09
 
Description
ipAdEntNetMask contents incorrect. In the current implementation, the contents are always 0.0.0.0
 
Solution 
ipAdEntNetMask now shows the correct network mask.

 

 
Title 
TLV (type-length-value) incorrect
 
Case:  31773
 
Date Fixed:  10/29/09
 
Description
TLV (type-length-value) does not support short value.
 
Solution 

TLV (type-length-value) is now supported for both long and short values.

 

 
Title 
SNMP crashes during vulnerability test
 
Case:  30556/30561
 
Date Fixed:  5/15/09
 
Description
SNMP could crash during SimpleSleuth vulnerability testing of v2c agent.
 
Solution 

Applied fixes to handle large sub ids while processing get requests, and for handling requests with bad lengths.

 

 
Title 
v1 and v2 users inactive after being added
 
Case:  26922
 
Date Fixed:  11/21/08
 
Description
Cannot get a working V1 or V2c user other than the built in public/private users in v3 mode.
 
Solution 

Community table row status now being set to active.

 

 
Title 
vacmSecurityToGroupTable access does not display all entries
 
Case:  28146
 
Date Fixed:  09/26/08
 
Description
All entries in the S2G table do not display when accessed using NET-SNMP.  They do display when accessed using CLI.
 
Solution 

Fixed lexicographic order in vacmSecurityToGroupTable access.

 

 
Title 
IP Address filtering not working properly
 
Case:  26373
 
Date Fixed:  08/15/08
 
Description
In function tfGetCommunity(), a pointer to snmp_mngr_addr is used in a call to NACheckAuthentication(). Structure snmp_mngr_addr is not filled in with anything (except zeros).  There are two problems here. 
 
First, if NO filtering is to be used, then the third parameter to NACheckAuthentication() should be NULL.
 
Second, if filtering is ON, then by passing a valid pointer (&snmp_mngr_addr) that points to a zeroed out structure, the filtering will ALWAYS fail..
 
Solution 

Fixed comparision of IPv4 and IPv6 addresses in SNMPv1/v2c library.

 

 
Title 
Memory leak fixed
 
Case:  25765
 
Date Fixed:  08/13/08
 
Description
Duplicate OID causes crash in tfInitializeSubtreeList.
 
Solution 

Logic corrected.

 

 
Title 
Traps not sent to host with IPv6 address
 
Case:  26825
 
Date Fixed:  08/07/08
 
Description
If a trap destination is a host with a v6 address, traps will not be sent.  IPv4 and IPv4-mapped v6 addresses work fine.
 
Solution 
Added IPv6 Scope ID.

 

 
Title 
cloneFromLength is wrong type
 
Case:  internal
 
Date Fixed:  07/24/08
 
Description
cloneFromLength should be in oid units not bytes.
 
Solution 
Type changed.

 

 
Title 
Treck initialization data lost
 
Case:  26922
 
Date Fixed:  07/23/08
 
Description
Treck initialization data was being lost after inserting new users in nasnmpv3 example app.
 
Solution 
Users now inserted after SnmpStart to preserve Treck initialization data.

 

 
Title 
naSnmpSendNotifications not returning error when value_length is invalid
 
Case:  26124
 
Date Fixed:  06/18/08
 
Description
Function naSnmpSendNotifications() does not return error when value_length is invalid
 
Solution 

Function now returns value NA_SNMP_CANNOT_SEND_TRAP.

 

 
Title 
Errors corrected in nasnmpv3 example application
 
Case:  25977
 
Date Fixed:  06/17/08
 
Description
Two variables in SendTrap were set incorrectly.
 
Solution 

Fixed the value_length of two variables.

 

 
Title 
SNMP v1 Traps not sent
 
Case:  1244916
 
Date Fixed:  02/26/08
 
Description
Enterprise specific traps were not being sent.
 
Solution 

Removed code that improperly restricted acceptable values.

 

 
Title 
Ins files not generated properly
 
Case:  24500
 
Date Fixed:  01/08/08
 
Description
mib2src can generate an ins file which gives incorrect structure information
 
Solution 

To resolve this issue, unzip makeins.exe to the bin directory of your NET+OS installation.

 
Title 
SNMPv3 – Problem passing private keys
 
Case:  24739
 
Date Fixed:  11/13/07
 
Description
Private keys are not being passed to the callback function.
 
Solution 

Repaired defect and moved call to tfUsmEntryChanged in tfSnmpKeyChangeComplete where actual change of privacy key takes place.

 
Files:

netos\bin\makeins.exe

netos\h\snmpapi.h

netos\h\sysAccess.h

netos\h\snmp\asn1.h

netos\h\snmp\snmpv1v2capi.h

netos\h\snmp\snmpv3api.h

netos\lib\arm7\32b\ghs\libsnmp.a

netos\lib\arm7\32b\ghs\libsnmpv3.a

netos\lib\arm7\32b\ghs\libsnmpv3_no_ipsec.a

netos\lib\arm7\32b\ghs\libsnmp_no_ipsec.a

netos\lib\arm7\32b\ghs\libsnmpdbg.a

netos\lib\arm7\32b\ghs\libsnmpv3dbg.a

netos\lib\arm7\32b\ghs\libsnmpv3_no_ipsecdbg.a

netos\lib\arm7\32b\ghs\libsnmp_no_ipsecdbg.a

netos\lib\arm7\32b\gnu\libsnmp.a

netos\lib\arm7\32b\gnu\libsnmpv3.a

netos\lib\arm7\32b\gnu\libsnmpv3_no_ipsec.a

netos\lib\arm7\32b\gnu\libsnmp_no_ipsec.a

netos\lib\arm7\32b\gnu\libsnmpdbg.a

netos\lib\arm7\32b\gnu\libsnmpv3dbg.a

netos\lib\arm7\32b\gnu\libsnmpv3_no_ipsecdbg.a

netos\lib\arm7\32b\gnu\libsnmp_no_ipsecdbg.a

netos\lib\arm9\32b\ghs\libsnmp.a

netos\lib\arm9\32b\ghs\libsnmpv3.a

netos\lib\arm9\32b\ghs\libsnmpv3_no_ipsec.a

netos\lib\arm9\32b\ghs\libsnmp_no_ipsec.a

netos\lib\arm9\32b\ghs\libsnmpdbg.a

netos\lib\arm9\32b\ghs\libsnmpv3dbg.a

netos\lib\arm9\32b\ghs\libsnmpv3_no_ipsecdbg.a

netos\lib\arm9\32b\ghs\libsnmp_no_ipsecdbg.a

netos\lib\arm9\32b\gnu\libsnmp.a

netos\lib\arm9\32b\gnu\libsnmpv3.a

netos\lib\arm9\32b\gnu\libsnmpv3_no_ipsec.a

netos\lib\arm9\32b\gnu\libsnmp_no_ipsec.a

netos\lib\arm9\32b\gnu\libsnmpdbg.a

netos\lib\arm9\32b\gnu\libsnmpv3dbg.a

netos\lib\arm9\32b\gnu\libsnmpv3_no_ipsecdbg.a

netos\lib\arm9\32b\gnu\libsnmp_no_ipsecdbg.a

netos\mibcomp\mibcomp_win321\smi\bin\smidump.exe

netos\src\bsp\common\sysAccess.c

netos\src\examples\nasnmpv3\cli.c

netos\src\examples\nasnmpv3\root.c

 

Special Instructions

 

  • Unzip the patch(es) to the root of your NET+OS installation, for example C:/netos73/

 

Patch Link:  SNMPUpdates_73

 

Dependencies

This patch also requires the installation of the following patch(es):

ApiReference_73