Lines Matching refs:addr
50 PHPAPI zend_string* php_inet_ntop(const struct sockaddr *addr) { in php_inet_ntop() argument
53 if (!addr) { return NULL; } in php_inet_ntop()
55 switch (addr->sa_family) { in php_inet_ntop()
59 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop()
69 …if (inet_ntop(AF_INET, &(((struct sockaddr_in*)addr)->sin_addr), ZSTR_VAL(ret), INET_ADDRSTRLEN)) { in php_inet_ntop()
79 switch (addr->sa_family) { in php_inet_ntop()
87 if (getnameinfo(addr, addrlen, ZSTR_VAL(ret), NI_MAXHOST, NULL, 0, NI_NUMERICHOST) == SUCCESS) { in php_inet_ntop()
104 struct sockaddr *addr, struct sockaddr *netmask, in iface_append_unicast() argument
112 if (addr) { in iface_append_unicast()
113 add_assoc_long(&u, "family", addr->sa_family); in iface_append_unicast()
114 if ((host = php_inet_ntop(addr))) { in iface_append_unicast()