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()
57 switch (addr->sa_family) { in php_inet_ntop()
61 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop()
71 …if (inet_ntop(AF_INET, &(((struct sockaddr_in*)addr)->sin_addr), ZSTR_VAL(ret), INET_ADDRSTRLEN)) { in php_inet_ntop()
82 switch (addr->sa_family) { in php_inet_ntop()
90 if (getnameinfo(addr, addrlen, ZSTR_VAL(ret), NI_MAXHOST, NULL, 0, NI_NUMERICHOST) == SUCCESS) { in php_inet_ntop()
107 struct sockaddr *addr, struct sockaddr *netmask, in iface_append_unicast() argument
115 if (addr) { in iface_append_unicast()
116 add_assoc_long(&u, "family", addr->sa_family); in iface_append_unicast()
117 if ((host = php_inet_ntop(addr))) { in iface_append_unicast()