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() 334 if (ifi->ifi_addr == NULL) { in get_ifi_info() 335 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 336 if (ifi->ifi_addr == NULL) { in get_ifi_info() 339 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info() 349 free(ifi->ifi_addr); in get_ifi_info() [all …]
|
D | mDNSUNP.h | 92 struct sockaddr *ifi_addr; /* primary address */ member
|
D | mDNSPosix.c | 938 if ( ((i->ifi_addr->sa_family == AF_INET) in SetupInterfaceList() 940 || (i->ifi_addr->sa_family == AF_INET6) in SetupInterfaceList() 951 if (SetupOneInterface(m, i->ifi_addr, i->ifi_netmask, i->ifi_name, i->ifi_index) == 0) in SetupInterfaceList() 952 if (i->ifi_addr->sa_family == AF_INET) in SetupInterfaceList() 965 …(void) SetupOneInterface(m, firstLoopback->ifi_addr, firstLoopback->ifi_netmask, firstLoopback->if… in SetupInterfaceList()
|