Lines Matching refs:ifi_addr
143 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
144 if (ifi->ifi_addr == NULL) { in get_ifi_info_linuxv6()
147 memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
153 if (ifi->ifi_addr == NULL) { in get_ifi_info_linuxv6()
181 free(ifi->ifi_addr); in get_ifi_info_linuxv6()
341 if (ifi->ifi_addr == NULL) { in get_ifi_info()
342 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
343 if (ifi->ifi_addr == NULL) { in get_ifi_info()
346 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
356 free(ifi->ifi_addr); in get_ifi_info()
420 if (ifi->ifi_addr == NULL) { in get_ifi_info()
421 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info()
422 if (ifi->ifi_addr == NULL) { in get_ifi_info()
430 memcpy(ifi->ifi_addr, sinptr6, sizeof(struct sockaddr_in6)); in get_ifi_info()
447 free(ifi->ifi_addr); in get_ifi_info()
501 if (ifi->ifi_addr != NULL) in free_ifi_info()
502 free(ifi->ifi_addr); in free_ifi_info()