Commit graph

5 commits

Author SHA1 Message Date
d6b4cb0f48 Add support for 2001:DB8::8:800:200C:417A
Fix #8
2024-03-04 23:55:42 -03:00
5748ece401 Add support for ::13.1.68.3
Fix #9
2023-09-22 14:04:52 -03:00
e7745f086a Add testcases from RFC 4291 2023-09-22 13:52:55 -03:00
999bf8d5d6 Address 2.2.1 of RFC 4291
Treat `2001:DB8:0:0:8:800:200C:417A` as valid.
2023-09-22 01:24:05 -03:00
f6e29e4756 Add isinetaddr6
This change introduces `isinetaddr6`, a function that validates
IPv6 addresses. The interface is identical to isinetaddr, where
0 is returned for an invalid address and 1 is returned for a valid
address.
2023-09-11 22:51:35 -03:00