addr_pton
if (addr_pton(addrbuf, &tmp) == -1)
int addr_pton(const char *p, struct xaddr *n);
if (addr != NULL && addr_pton(addr, &try_addr) != 0) {