Lines Matching refs:p
158 PIP_ADAPTER_ADDRESSES pAddresses = NULL, p; in PHP_FUNCTION() local
188 for (p = pAddresses; p; p = p->Next) { in PHP_FUNCTION()
191 if ((IF_TYPE_ETHERNET_CSMACD != p->IfType) && (IF_TYPE_SOFTWARE_LOOPBACK != p->IfType)) { in PHP_FUNCTION()
197 if (p->Description) { in PHP_FUNCTION()
200 wcstombs(tmp, p->Description, sizeof(tmp)); in PHP_FUNCTION()
204 if (p->PhysicalAddressLength > 0) { in PHP_FUNCTION()
205 zend_string *mac = zend_string_alloc(p->PhysicalAddressLength * 3, 0); in PHP_FUNCTION()
208 for (i = 0; i < p->PhysicalAddressLength; ++i) { in PHP_FUNCTION()
209 s += snprintf(s, 4, "%02X:", p->PhysicalAddress[i]); in PHP_FUNCTION()
220 add_assoc_long(&iface, "mtu", p->Mtu); in PHP_FUNCTION()
223 for (u = p->FirstUnicastAddress; u; u = u->Next) { in PHP_FUNCTION()
233 iface_append_unicast(&unicast, p->Flags, in PHP_FUNCTION()
248 iface_append_unicast(&unicast, p->Flags, in PHP_FUNCTION()
257 add_assoc_bool(&iface, "up", (p->OperStatus == IfOperStatusUp)); in PHP_FUNCTION()
259 add_assoc_zval(return_value, p->AdapterName, &iface); in PHP_FUNCTION()
266 struct ifaddrs *addrs = NULL, *p; in PHP_FUNCTION()
276 for (p = addrs; p; p = p->ifa_next) { in PHP_FUNCTION()
277 zval *iface = zend_hash_str_find(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name)); in PHP_FUNCTION()
283 iface = zend_hash_str_add(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name), &newif); in PHP_FUNCTION()
294 p->ifa_flags, in PHP_FUNCTION()
295 p->ifa_addr, p->ifa_netmask, in PHP_FUNCTION()
296 (p->ifa_flags & IFF_BROADCAST) ? p->ifa_broadaddr : NULL, in PHP_FUNCTION()
297 (p->ifa_flags & IFF_POINTOPOINT) ? p->ifa_dstaddr : NULL); in PHP_FUNCTION()
300 add_assoc_bool(iface, "up", ((p->ifa_flags & IFF_UP) != 0)); in PHP_FUNCTION()