Lines Matching refs:iface
191 zval iface, unicast; in PHP_FUNCTION() local
197 array_init(&iface); in PHP_FUNCTION()
203 add_assoc_string(&iface, "description", tmp); in PHP_FUNCTION()
215 add_assoc_str(&iface, "mac", mac); in PHP_FUNCTION()
222 add_assoc_long(&iface, "mtu", p->Mtu); in PHP_FUNCTION()
257 add_assoc_zval(&iface, "unicast", &unicast); 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()
279 zval *iface = zend_hash_str_find(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name)); in PHP_FUNCTION()
282 if (!iface) { 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()
288 unicast = zend_hash_str_find(Z_ARR_P(iface), "unicast", sizeof("unicast") - 1); in PHP_FUNCTION()
292 unicast = zend_hash_str_add(Z_ARR_P(iface), "unicast", sizeof("unicast") - 1, &newuni); in PHP_FUNCTION()
300 status = zend_hash_str_find(Z_ARR_P(iface), "up", sizeof("up") - 1); in PHP_FUNCTION()
302 add_assoc_bool(iface, "up", ((p->ifa_flags & IFF_UP) != 0)); in PHP_FUNCTION()