Fixes for v4/v6 subnets
And also be opinionated about correctness of subnets with leading zeroes.
Fix a bug found by @endor; add tests to verify
Plus some additional tests for related concerns and some IPv4-specific tests.
Add tests for IPv4
Remove extra space
Lint/fix tests, use chai's should
Lint and clean
- Breaking change: v4.Address.parse_u32 to v4.Address.fromInteger
- Also just call fromHex under the hood since that's already written and integer
to hex is easy!
Add node 0.8
Merge pull request #8 from dcolebatch/ipv4_fixes
IPv4 fixes from @dcolebatch
replaced v6.Address.zeroPad with global function.
v4 behaves like v4 now, with .bigInteger, .startAddress, .endAddress
Also added v4.Address.parse_u32(int_ip) as I often need this when
jamming with IPv4!
added global function zeroPad(s, n);
this.v4 = true in v4 constructor
extract subnet when parsing IPv4 addresses too
use relative paths in simple.html example
Version 2.0.2: Fixed reference to ipv6ack.js
Fixed reference to ipv6ack.js
Version 2.0.1: Cleanup
More suggestions from JSLint and removed an extra comma
Oops, class is a reserved word; changing to className as suggested by @…
Fixes as suggested by JSLint.
Updated the README to reflect change from Vows to Mocha
Merge pull request #5 from oskar456/b53e987164185fd41ed62123efa362e98…
Unit test for 6to4 address detection
Added functionality test for 6to4
Merge pull request #4 from oskar456/master
Support for detection of 6to4 addresses and functionality to return their properties.
Renamed 6to4 to six2four.
Add is6to4 detect method
Adding more tests, updated the README
Use the node_modules copy of mocha so people don't have to install mo…
Adding Travis CI build status
Continuing test cleanup