Lines Matching refs:ifi_addr
157 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
158 if (ifi->ifi_addr == NULL) { in get_ifi_info_linuxv6()
161 memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
190 free(ifi->ifi_addr); in get_ifi_info_linuxv6()
475 ifi->ifi_addr = malloc(sizeof(struct sockaddr_in6)); in get_ifi_info_solaris()
476 if (ifi->ifi_addr == NULL) in get_ifi_info_solaris()
478 memcpy(ifi->ifi_addr, sinptr6, sizeof(struct sockaddr_in6)); in get_ifi_info_solaris()
492 ifi->ifi_addr = malloc(sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
493 if (ifi->ifi_addr == NULL) in get_ifi_info_solaris()
496 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info_solaris()
502 free(ifi->ifi_addr); in get_ifi_info_solaris()
661 if (ifi->ifi_addr == NULL) { in get_ifi_info()
662 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
663 if (ifi->ifi_addr == NULL) { in get_ifi_info()
666 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
676 free(ifi->ifi_addr); in get_ifi_info()
740 if (ifi->ifi_addr == NULL) { in get_ifi_info()
741 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info()
742 if (ifi->ifi_addr == NULL) { in get_ifi_info()
750 memcpy(ifi->ifi_addr, sinptr6, sizeof(struct sockaddr_in6)); in get_ifi_info()
767 free(ifi->ifi_addr); in get_ifi_info()
821 if (ifi->ifi_addr != NULL) in free_ifi_info()
822 free(ifi->ifi_addr); in free_ifi_info()