inet_pton
int inet_pton(int family, const char* sourceString, void* dest);
if (inet_pton(AF_INET, optarg, &a) == 1)
if (inet_pton(AF_INET6, optarg, &a6) == 1)
valid = inet_pton(AF_INET6, "ff02::2:0000:0000", &in6);
valid = inet_pton(AF_INET6, "ff02::2:ff00:0000", &in6);
if (need_v4 && inet_pton(AF_INET, (void *)s, a-4) <= 0) return 0;
ret = inet_pton(AF_INET6, buf, &in6);
if (inet_pton(afd->a_af, hostname, pton) != 1) {
addrok = inet_pton(af, p, &host_addrs[naddrs]);
if (inet_pton(af, name, buf) <= 0) {
if (inet_pton(AF_INET6, p, &host_addr) > 0) {
if (inet_pton(AF_INET, p, &host_addr) <= 0)
if (inet_pton(AF_INET, argv[3], dstBuffer) == 1) {
if (inet_pton(AF_INET6, argv[3], dstBuffer) == 1) {
if (inet_pton(AF_INET, argv[3], dstBuffer) == 1) {
if (inet_pton(AF_INET6, argv[3], dstBuffer) == 1) {
inet_pton(AF_INET, argv[1], &mreq.imr_multiaddr);