<function name="rpcf_get_ipgroup" id="0x2902"> <input> <integer name="ipgroup_id" /> </input> <output> <string name="name" /> <integer name="ipzone_count" /> <for name="i" from="0" count="ipzone_count"> <ip_address name="ip" array_index="i" /> <ip_address name="mask" array_index="i" /> <ip_address name="gateaway" array_index="i" /> </for> </output> </function>
function rpcf_get_ipgroup($ipgroup_id) { //0x2902 $ret=array(); if (!$this->connection->urfa_call(0x2902)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($ipgroup_id); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()){ $ret['name']=$x->DataGetString(); $ret['count']=$x->DataGetInt(); for ($i=0;$i<$ret['count'];$i++) { $set['ip']=$x->DataGetIPAddress(); $set['mask']=$x->DataGetIPAddress(); $set['gateway']=$x->DataGetIPAddress(); $ret['ipgroup'][]=$set; } } return $ret; }