net-snmp 3.8.2 → 3.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +8 -0
  2. package/index.js +3 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3223,6 +3223,14 @@ Example programs are included under the module's `example` directory.
3223
3223
 
3224
3224
  * Fix PDU error status field writing
3225
3225
 
3226
+ ## Version 3.8.3 - 12/09/2022
3227
+
3228
+ * Fix incorrect user level assignment
3229
+
3230
+ ## Version 3.8.4 - 29/09/2022
3231
+
3232
+ * Fix IpAddress byte array set request handling
3233
+
3226
3234
  # License
3227
3235
 
3228
3236
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -1566,7 +1566,7 @@ Message.prototype.createCommunityResponseFromRequest = function (responsePdu) {
1566
1566
  Message.prototype.createV3ResponseFromRequest = function (responsePdu) {
1567
1567
  var responseUser = {
1568
1568
  name: this.user.name,
1569
- level: this.user.name,
1569
+ level: this.user.level,
1570
1570
  authProtocol: this.user.authProtocol,
1571
1571
  authKey: this.user.authKey,
1572
1572
  privProtocol: this.user.privProtocol,
@@ -4603,7 +4603,8 @@ Agent.prototype.castSetValue = function ( type, value ) {
4603
4603
 
4604
4604
  case ObjectType.IpAddress:
4605
4605
  // A 32-bit internet address represented as OCTET STRING of length 4
4606
- if ( typeof value != "string" || value.length != 4 ) {
4606
+ var bytes = value.split(".");
4607
+ if ( typeof value != "string" || bytes.length != 4 ) {
4607
4608
  throw new Error("Invalid IpAddress", value);
4608
4609
  }
4609
4610
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.8.2",
3
+ "version": "3.8.4",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {