Lines Matching refs:p
287 __net_ifconf6entry_t* p; in uv__interface_addresses_v6() local
322 p = ifr; in uv__interface_addresses_v6()
325 if (!(p->__nif6e_addr.sin6_family == AF_INET6)) in uv__interface_addresses_v6()
328 if (!(p->__nif6e_flags & _NIF6E_FLAGS_ON_LINK_ACTIVE)) in uv__interface_addresses_v6()
352 p = ifr; in uv__interface_addresses_v6()
355 if (!(p->__nif6e_addr.sin6_family == AF_INET6)) in uv__interface_addresses_v6()
358 if (!(p->__nif6e_flags & _NIF6E_FLAGS_ON_LINK_ACTIVE)) in uv__interface_addresses_v6()
365 while (i < ARRAY_SIZE(p->__nif6e_name) && in uv__interface_addresses_v6()
366 p->__nif6e_name[i] != 0x40 && in uv__interface_addresses_v6()
367 p->__nif6e_name[i] != 0) in uv__interface_addresses_v6()
376 memcpy(address->name, p->__nif6e_name, i); in uv__interface_addresses_v6()
381 address->address.address6 = *((struct sockaddr_in6*) &p->__nif6e_addr); in uv__interface_addresses_v6()
383 for (i = 0; i < (p->__nif6e_prefixlen / 8); i++) in uv__interface_addresses_v6()
386 if (p->__nif6e_prefixlen % 8) in uv__interface_addresses_v6()
387 netmask[i] = 0xFF << (8 - (p->__nif6e_prefixlen % 8)); in uv__interface_addresses_v6()
389 address->netmask.netmask6.sin6_len = p->__nif6e_prefixlen; in uv__interface_addresses_v6()
393 address->is_internal = p->__nif6e_flags & _NIF6E_FLAGS_LOOPBACK ? 1 : 0; in uv__interface_addresses_v6()
410 struct ifreq* p; in uv_interface_addresses() local
456 #define ADDR_SIZE(p) MAX((p).sa_len, sizeof(p)) in uv_interface_addresses() argument
461 p = ifr; in uv_interface_addresses()
465 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
466 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
469 memcpy(flg.ifr_name, p->ifr_name, sizeof(flg.ifr_name)); in uv_interface_addresses()
515 p = ifr; in uv_interface_addresses()
519 if (!(p->ifr_addr.sa_family == AF_INET6 || in uv_interface_addresses()
520 p->ifr_addr.sa_family == AF_INET)) in uv_interface_addresses()
523 memcpy(flg.ifr_name, p->ifr_name, sizeof(flg.ifr_name)); in uv_interface_addresses()
538 while (i < ARRAY_SIZE(p->ifr_name) && in uv_interface_addresses()
539 p->ifr_name[i] != 0x40 && in uv_interface_addresses()
540 p->ifr_name[i] != 0) in uv_interface_addresses()
549 memcpy(address->name, p->ifr_name, i); in uv_interface_addresses()
554 address->address.address4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
556 if (ioctl(sockfd, SIOCGIFNETMASK, p) == -1) { in uv_interface_addresses()
563 address->netmask.netmask4 = *((struct sockaddr_in*) &p->ifr_addr); in uv_interface_addresses()
611 struct pollfd p[1]; in uv__io_check_fd() local
614 p[0].fd = fd; in uv__io_check_fd()
615 p[0].events = POLLIN; in uv__io_check_fd()
618 rv = poll(p, 1, 0); in uv__io_check_fd()
624 if (p[0].revents & POLLNVAL) in uv__io_check_fd()