Home
last modified time | relevance | path

Searched refs:pidiface_info (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/netbsd/resolv/
Dres_cache.c2370 struct resolv_pidiface_info* pidiface_info = _get_pid_iface_info_locked(pid); in _resolv_set_iface_for_pid() local
2371 if (!pidiface_info) { in _resolv_set_iface_for_pid()
2372 pidiface_info = calloc(sizeof(*pidiface_info), 1); in _resolv_set_iface_for_pid()
2373 if (pidiface_info) { in _resolv_set_iface_for_pid()
2374 pidiface_info->pid = pid; in _resolv_set_iface_for_pid()
2375 int len = sizeof(pidiface_info->ifname); in _resolv_set_iface_for_pid()
2376 strncpy(pidiface_info->ifname, ifname, len - 1); in _resolv_set_iface_for_pid()
2377 pidiface_info->ifname[len - 1] = '\0'; in _resolv_set_iface_for_pid()
2379 pidiface_info->next = _res_pidiface_list.next; in _resolv_set_iface_for_pid()
2380 _res_pidiface_list.next = pidiface_info; in _resolv_set_iface_for_pid()
[all …]