Neil Brown wrote: + if (inet_pton(AF_INET, paddr, &sin.sin_addr) == 0 && + inet_pton(AF_INET6, paddr, &sin.sin_addr) == 0) return NULL; Having converted a few apps myself, I wish there were an equivalent to inet_pton that instead of taking an AF argument, would return the AF that it found. Then you could do the above in a single call. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html