if (inet_pton(12345, "", 0) != -1 || errno != EAFNOSUPPORT)
t_error("inet_pton(12345,,) should fail with EAFNOSUPPORT, got %s\n", strerror(errno));
errno=0;
-if (inet_ntop(AF_INET,"xxxx",0,0) != -1 || errno != ENOSPC)
+if (inet_ntop(AF_INET,"xxxx","",0) != 0 || errno != ENOSPC)
t_error("inet_ntop(,,0,0) should fail with ENOSPC, got %s\n", strerror(errno));
errno=0;
-
// dotted-decimal notation
V4("0.0.0.0", 1, "00000000")
V4("127.0.0.1", 1, "7f000001")
V6("::ffff:192.168.1.1", 1, "00000000000000000000ffffc0a80101")
V6(".192.168.1.1", 0, "")
V6(":.192.168.1.1", 0, "")
-V6("a:0b:00c:000d:0000e:f::", 1, "000a000b000c000d000e000f00000000")
+V6("a:0b:00c:000d:E:F::", 1, "000a000b000c000d000e000f00000000")
+V6("a:0b:00c:000d:0000e:f::", 0, "")
V6("a:b::c:d:e:f", 1, "000a000b00000000000c000d000e000f")
V6("ffff:c0a8:5e4", 0, "")
V6(":ffff:c0a8:5e4", 0, "")