cidrSubnet for ipv6 returns invalid result
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
is this module support for ipv6?
It seems that it return invalid results, for example
``` javascript
ip.cidrSubnet("2001:420:5a44::/48");
/*
{ networkAddress: '0.0.7.209',
firstAddress: '0.0.7.209',
lastAddress: '0.0.7.208',
broadcastAddress: '0.0.7.208',
subnetMask: 'ffff:ffff:ffff::',
subnetMaskLength: 48,
numHosts: 0.0000152587890625,
length: 0.0000152587890625 }
*/
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the cidrSubnet entry point and reproduce the IPv6 example from the issue. Trace how the IPv6 address and /48 prefix are parsed, then verify that the returned network, address range, mask, and host counts are valid IPv6 results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100