Lines Matching refs:p
160 PIP_ADAPTER_ADDRESSES pAddresses = NULL, p; in PHP_FUNCTION() local
190 for (p = pAddresses; p; p = p->Next) { in PHP_FUNCTION()
193 …if ((IF_TYPE_ETHERNET_CSMACD != p->IfType) && (IF_TYPE_IEEE80211 != p->IfType) && (IF_TYPE_SOFTWAR… in PHP_FUNCTION()
199 if (p->Description) { in PHP_FUNCTION()
202 wcstombs(tmp, p->Description, sizeof(tmp)); in PHP_FUNCTION()
206 if (p->PhysicalAddressLength > 0) { in PHP_FUNCTION()
207 zend_string *mac = zend_string_alloc(p->PhysicalAddressLength * 3, 0); in PHP_FUNCTION()
210 for (i = 0; i < p->PhysicalAddressLength; ++i) { in PHP_FUNCTION()
211 s += snprintf(s, 4, "%02X:", p->PhysicalAddress[i]); in PHP_FUNCTION()
222 add_assoc_long(&iface, "mtu", p->Mtu); in PHP_FUNCTION()
225 for (u = p->FirstUnicastAddress; u; u = u->Next) { in PHP_FUNCTION()
235 iface_append_unicast(&unicast, p->Flags, in PHP_FUNCTION()
250 iface_append_unicast(&unicast, p->Flags, in PHP_FUNCTION()
259 add_assoc_bool(&iface, "up", (p->OperStatus == IfOperStatusUp)); in PHP_FUNCTION()
261 add_assoc_zval(return_value, p->AdapterName, &iface); in PHP_FUNCTION()
268 struct ifaddrs *addrs = NULL, *p; in PHP_FUNCTION()
278 for (p = addrs; p; p = p->ifa_next) { in PHP_FUNCTION()
279 zval *iface = zend_hash_str_find(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name)); in PHP_FUNCTION()
285 iface = zend_hash_str_add(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name), &newif); in PHP_FUNCTION()
296 p->ifa_flags, in PHP_FUNCTION()
297 p->ifa_addr, p->ifa_netmask, in PHP_FUNCTION()
298 (p->ifa_flags & IFF_BROADCAST) ? p->ifa_broadaddr : NULL, in PHP_FUNCTION()
299 (p->ifa_flags & IFF_POINTOPOINT) ? p->ifa_dstaddr : NULL); in PHP_FUNCTION()
302 add_assoc_bool(iface, "up", ((p->ifa_flags & IFF_UP) != 0)); in PHP_FUNCTION()