net-snmp 3.6.0 → 3.6.1

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 +10 -6
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -243,8 +243,8 @@ This object contains constants to select a supported encryption algorithm for
243
243
  SNMPv3 messages that require privacy:
244
244
  * `des` - for DES encryption (CBC-DES)
245
245
  * `aes` - for 128-bit AES encryption (CFB-AES-128)
246
- * `aes256b` - for 256-bit AES encryption (CFB-AES-256) with "Blumenthal" key localiztaion
247
- * `aes256r` - for 256-bit AES encryption (CFB-AES-256) with "Reeder" key localiztaion
246
+ * `aes256b` - for 256-bit AES encryption (CFB-AES-256) with "Blumenthal" key localization
247
+ * `aes256r` - for 256-bit AES encryption (CFB-AES-256) with "Reeder" key localization
248
248
 
249
249
  DES is the sole encryption algorithm specified in the original SNMPv3 User-Based
250
250
  Security Model RFC (RFC 3414); 128-bit AES for SNMPv3 was added later in RFC 3826.
@@ -1062,7 +1062,7 @@ The `table()` method fetches the value for all OIDs lexicographically
1062
1062
  following a specified OID in the MIB tree which have the specified OID as
1063
1063
  their base, much like the `subtree()` method.
1064
1064
 
1065
- This method is designed to fetch conceptial tables, for example the ifTable
1065
+ This method is designed to fetch conceptual tables, for example the ifTable
1066
1066
  (`1.3.6.1.2.1.2.2`) table. The values for returned varbinds will be structured
1067
1067
  into objects to represent conceptual rows. Each row is then placed into an
1068
1068
  object with the rows index being the key, e.g.:
@@ -1171,7 +1171,7 @@ be in the resulting table.
1171
1171
 
1172
1172
  This method should be used when only selected columns are required, and
1173
1173
  will be many times faster than the `table()` method since a much smaller
1174
- amount of data will be fected.
1174
+ amount of data will be fetched.
1175
1175
 
1176
1176
  The following example fetches the ifTable (`1.3.6.1.2.1.2.2`) table, and
1177
1177
  specifies that only the ifDescr (`1.3.6.1.2.1.2.2.1.2`) and ifPhysAddress
@@ -1259,7 +1259,7 @@ returned by the `process.uptime ()` function multiplied by `100`.
1259
1259
  SNMP version 2c messages are quite different in comparison with version 1.
1260
1260
  The version 2c trap has a much simpler format, simply a sequence of varbinds.
1261
1261
  The first varbind to be placed in the trap message will be for the
1262
- `sysUptime.0` OID (`1.3.6.1.6.3.1.1.4.1.0`). The value for this varbind will
1262
+ `sysUptime.0` OID (`1.3.6.1.2.1.1.3.0`). The value for this varbind will
1263
1263
  be the value returned by the `process.uptime ()` function multiplied by 100
1264
1264
  (this can be overridden by providing `upTime` in the optional `options`
1265
1265
  parameter, as documented below).
@@ -1280,7 +1280,7 @@ following items:
1280
1280
 
1281
1281
  * `agentAddr` - IP address used to populate the agent-addr field for SNMP
1282
1282
  version 1 type traps, and defaults to `127.0.0.1`
1283
- * `upTime` - Value of the `sysUptime.0` OID (`1.3.6.1.6.3.1.1.4.1.0`) in the
1283
+ * `upTime` - Value of the `sysUptime.0` OID (`1.3.6.1.2.1.1.3.0`) in the
1284
1284
  trap, defaults to the value returned by the `process.uptime ()` function
1285
1285
  multiplied by 100
1286
1286
 
@@ -3170,6 +3170,10 @@ Example programs are included under the module's `example` directory.
3170
3170
 
3171
3171
  * Add calculated key cache to remove authNoPriv and authPriv performance bottleneck
3172
3172
 
3173
+ ## Version 3.6.1 - 21/03/2022
3174
+
3175
+ * Add v3 context to non-initial PDUs
3176
+
3173
3177
  # License
3174
3178
 
3175
3179
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -2338,6 +2338,7 @@ Session.prototype.set = function (varbinds, responseCb) {
2338
2338
  Session.prototype.simpleGet = function (pduClass, feedCb, varbinds,
2339
2339
  responseCb, options) {
2340
2340
  var id = _generateId (this.idBitsSize);
2341
+ options = Object.assign({}, options, { context: this.context });
2341
2342
  var pdu = SimplePdu.createFromVariables (pduClass, id, varbinds, options);
2342
2343
  var message;
2343
2344
  var req;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {