Lines Matching refs:iface
188 zval iface, unicast; in PHP_FUNCTION() local
194 array_init(&iface); in PHP_FUNCTION()
200 add_assoc_string(&iface, "description", tmp); in PHP_FUNCTION()
212 add_assoc_str(&iface, "mac", mac); in PHP_FUNCTION()
219 add_assoc_long(&iface, "mtu", p->Mtu); in PHP_FUNCTION()
254 add_assoc_zval(&iface, "unicast", &unicast); in PHP_FUNCTION()
256 add_assoc_bool(&iface, "up", (p->OperStatus == IfOperStatusUp)); in PHP_FUNCTION()
258 add_assoc_zval(return_value, p->AdapterName, &iface); in PHP_FUNCTION()
276 zval *iface = zend_hash_str_find(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name)); in PHP_FUNCTION()
279 if (!iface) { in PHP_FUNCTION()
282 iface = zend_hash_str_add(Z_ARR_P(return_value), p->ifa_name, strlen(p->ifa_name), &newif); in PHP_FUNCTION()
285 unicast = zend_hash_str_find(Z_ARR_P(iface), "unicast", sizeof("unicast") - 1); in PHP_FUNCTION()
289 unicast = zend_hash_str_add(Z_ARR_P(iface), "unicast", sizeof("unicast") - 1, &newuni); in PHP_FUNCTION()
297 status = zend_hash_str_find(Z_ARR_P(iface), "up", sizeof("up") - 1); in PHP_FUNCTION()
299 add_assoc_bool(iface, "up", ((p->ifa_flags & IFF_UP) != 0)); in PHP_FUNCTION()