Commit graph

3 commits

Author SHA1 Message Date
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