diff --git a/src/functional/inet_pton.c b/src/functional/inet_pton.c index d220118..9e8593b 100644 --- a/src/functional/inet_pton.c +++ b/src/functional/inet_pton.c @@ -72,11 +72,15 @@ T(AF_INET6, ":::", 0, "") T(AF_INET6, "192.168.1.1", 0, "") T(AF_INET6, ":192.168.1.1", 0, "") T(AF_INET6, "::192.168.1.1", 1, "000000000000000000000000c0a80101") +T(AF_INET6, "0:0:0:0:0:0:192.168.1.1", 1, "000000000000000000000000c0a80101") +T(AF_INET6, "0:0::0:0:0:192.168.1.1", 1, "000000000000000000000000c0a80101") +T(AF_INET6, "::012.34.56.78", 0, "") T(AF_INET6, ":ffff:192.168.1.1", 0, "") T(AF_INET6, "::ffff:192.168.1.1", 1, "00000000000000000000ffffc0a80101") T(AF_INET6, ".192.168.1.1", 0, "") T(AF_INET6, ":.192.168.1.1", 0, "") T(AF_INET6, "a:0b:00c:000d:0000e:f::", 1, "000a000b000c000d000e000f00000000") +T(AF_INET6, "a:b::c:d:e:f", 1, "000a000b00000000000c000d000e000f") T(AF_INET6, "ffff:c0a8:5e4", 0, "") T(AF_INET6, ":ffff:c0a8:5e4", 0, "") T(AF_INET6, "0:0:0:0:0:ffff:c0a8:5e4", 1, "00000000000000000000ffffc0a805e4")