Searched refs:pidiface_info (Results 1 – 1 of 1) sorted by relevance
2351 struct resolv_pidiface_info* pidiface_info = _get_pid_iface_info_locked(pid); in _resolv_set_iface_for_pid() local2352 if (!pidiface_info) { in _resolv_set_iface_for_pid()2353 pidiface_info = calloc(sizeof(*pidiface_info), 1); in _resolv_set_iface_for_pid()2354 if (pidiface_info) { in _resolv_set_iface_for_pid()2355 pidiface_info->pid = pid; in _resolv_set_iface_for_pid()2356 int len = sizeof(pidiface_info->ifname); in _resolv_set_iface_for_pid()2357 strncpy(pidiface_info->ifname, ifname, len - 1); in _resolv_set_iface_for_pid()2358 pidiface_info->ifname[len - 1] = '\0'; in _resolv_set_iface_for_pid()2360 pidiface_info->next = _res_pidiface_list.next; in _resolv_set_iface_for_pid()2361 _res_pidiface_list.next = pidiface_info; in _resolv_set_iface_for_pid()[all …]