/* * Generated configuration file, do not edit. * uiGenerator v2.52 * Copyright 2002-2004 Ubicom Inc. . All rights reserved. */ function createDataObjectFromBinaryArray (initial) { if (initial) createDataObject(); var d = data; i = 0; // global, accessed by the s*() functions d.lan_network_address=sX(); d.lan_subnet_mask=sX(); d.lan_dhcp_always_broadcast=sU(1); d.lan_dhcp_range_end=sU(1); d.lan_dhcp_range_start=sU(1); d.lan_dhcp_timeout=sU(2); for (var i1=0; i1<64; i1++) { d.dhcp_addr_resv_table[i1].comp_name=sS(39); d.dhcp_addr_resv_table[i1].enabled=sU(1); d.dhcp_addr_resv_table[i1].mac_addr=sH(6); d.dhcp_addr_resv_table[i1].mac_ip=sX(); d.dhcp_addr_resv_table[i1].used=sU(1); } d.lan_use_dhcp=sU(1); } function createBinaryArrayFromDataObject() { byte_array = new Array; // global, accessed by the g*() functions var d = data; gX(d.lan_network_address); gX(d.lan_subnet_mask); gU(d.lan_dhcp_always_broadcast,1); gU(d.lan_dhcp_range_end,1); gU(d.lan_dhcp_range_start,1); gU(d.lan_dhcp_timeout,2); for (var i1=0; i1<64; i1++) { gS(d.dhcp_addr_resv_table[i1].comp_name,39); gU(d.dhcp_addr_resv_table[i1].enabled,1); gH(d.dhcp_addr_resv_table[i1].mac_addr,6); gX(d.dhcp_addr_resv_table[i1].mac_ip); gU(d.dhcp_addr_resv_table[i1].used,1); } gU(d.lan_use_dhcp,1); return byte_array; } function naturalizeDataObject() { var d = data; d.lan_dhcp_range_end=naturalize(d.lan_dhcp_range_end); d.lan_dhcp_range_start=naturalize(d.lan_dhcp_range_start); d.lan_dhcp_timeout=naturalize(d.lan_dhcp_timeout); for (var i1=0; i1<64; i1++) { d.dhcp_addr_resv_table[i1].used=naturalize(d.dhcp_addr_resv_table[i1].used); } }