Lines 310-316
Link Here
|
310 |
#if HAVE_IPV6 |
310 |
#if HAVE_IPV6 |
311 |
case AF_INET6: |
311 |
case AF_INET6: |
312 |
memcpy(&addr6, &((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_addr, sizeof(struct in6_addr)); |
312 |
memcpy(&addr6, &((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_addr, sizeof(struct in6_addr)); |
313 |
addrlist_add(AF_INET, &addr4, port); |
313 |
addrlist_add(AF_INET, &addr6, port); |
314 |
break; |
314 |
break; |
315 |
#endif |
315 |
#endif |
316 |
default: |
316 |
default: |
Lines 454-460
Link Here
|
454 |
if (inet_pton(AF_INET6, addr, &addr6) <= 0) |
454 |
if (inet_pton(AF_INET6, addr, &addr6) <= 0) |
455 |
Warnx("%s: `%s' %s: %s", addr, desc, _("address"), _("invalid IPv6 address format")); |
455 |
Warnx("%s: `%s' %s: %s", addr, desc, _("address"), _("invalid IPv6 address format")); |
456 |
else |
456 |
else |
457 |
addrlist_add(AF_INET6, &addr4, port); |
457 |
addrlist_add(AF_INET6, &addr6, port); |
458 |
} |
458 |
} |
459 |
#endif |
459 |
#endif |
460 |
} |
460 |
} |