Searched refs:ifi_addr (Results 1 – 3 of 3) sorted by relevance
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 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() [all …]
|
D | mDNSUNP.h | 92 struct sockaddr *ifi_addr; /* primary address */ member
|
D | mDNSPosix.c | 962 if ( ((i->ifi_addr->sa_family == AF_INET) in SetupInterfaceList() 964 || (i->ifi_addr->sa_family == AF_INET6) in SetupInterfaceList() 975 if (SetupOneInterface(m, i->ifi_addr, i->ifi_netmask, i->ifi_name, i->ifi_index) == 0) in SetupInterfaceList() 976 if (i->ifi_addr->sa_family == AF_INET) in SetupInterfaceList() 989 …(void) SetupOneInterface(m, firstLoopback->ifi_addr, firstLoopback->ifi_netmask, firstLoopback->if… in SetupInterfaceList()
|