+ unsigned char want[16] = {0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,0};
+ char *addr;
+
+ addr = "1:2:3:4:5:6:7::";
+ if (inet_pton(AF_INET6, addr, buf)!=1 || memcmp(buf, want, 16)!=0) {
+ txt(s, buf);
+ txt(sw, want);
+ t_error("inet_pton(%s) returned %s, wanted %s\n",
+ addr, s, sw);
+ }