ip-utilties 3.5.2 → 3.5.3

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/ip.mjs +7 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ip-utilties",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/ip.mjs CHANGED
@@ -26,17 +26,19 @@ const ipv4 = {
26
26
  // https://www.geeksforgeeks.org/computer-networks/subnet-cheat-sheet/
27
27
  wellKnownAddresses: [
28
28
  [new Uint8Array([0, 0, 0, 0]), 8], // This network
29
- [new Uint8Array([10, 0, 0, 0]), 8], // Private Address Block
30
- [new Uint8Array([100, 64, 0, 0]), 10], // Carrier-grade NAT
29
+ [new Uint8Array([10, 0, 0, 0]), 8], // Private network (RFC 1918)
30
+ [new Uint8Array([100, 64, 0, 0]), 10], // Carrier-grade NAT / Shared address space (CGN)
31
31
  [new Uint8Array([127, 0, 0, 0]), 8], // Loopback
32
32
  [new Uint8Array([127, 0, 53, 53]), 0], // Name collision occurrence
33
- [new Uint8Array([169, 254, 0, 0]), 16], // Link local
34
- [new Uint8Array([172, 16, 0, 0]), 12], // Private Address Block
33
+ [new Uint8Array([169, 254, 0, 0]), 16], // Link-local address (Autoconfiguration)
34
+ [new Uint8Array([172, 16, 0, 0]), 12], // Private network (RFC 1918)
35
35
  [new Uint8Array([192, 0, 0, 0]), 24], // IETF protocol assignments
36
36
  [new Uint8Array([192, 0, 2, 0]), 24], // TEST-NET-1
37
- [new Uint8Array([192, 168, 0, 0]), 16], // Private Address Block
37
+ [new Uint8Array([192, 168, 0, 0]), 16], // Private network (RFC 1918)
38
38
  [new Uint8Array([198, 18, 0, 0]), 15], // Network benchmark testing
39
39
  [new Uint8Array([198, 51, 100, 0]), 24], // TEST-NET-2
40
+ [new Uint8Array([203, 0, 113, 0]), 24], // Reserved address space used for documentation
41
+ [new Uint8Array([240, 0, 0, 0]), 4], // Reserved for future use or experimental purposes
40
42
  [new Uint8Array([255, 255, 255, 255]), 0] // Limited Broadcast address
41
43
  ]
42
44
  };