/* * 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.gw_name=sS(32); d.allow_wan_web_access=sU(1); d.upnp_enabled=sU(1); d.user_password=sS(15); d.wan_idle_timeout=sU(2); d.wan_web_ingress_filter_name=sS(16); d.wan_web_port=sU(2); d.allow_wan_ping=sU(1); for (var i1=0; i1<64; i1++) { d.ingress_rules[i1].action=sU(1); d.ingress_rules[i1].ingress_filter_name=sS(16); for (var i2=0; i2<8; i2++) { d.ingress_rules[i1].ip_range_table[i2].enabled=sU(1); d.ingress_rules[i1].ip_range_table[i2].ip_end=sX(); d.ingress_rules[i1].ip_range_table[i2].ip_start=sX(); } d.ingress_rules[i1].used=sU(1); } d.password=sS(15); d.wireless.adaptive_radio=sU(1); d.wireless.auto_channel=sU(1); d.wireless.invisibility=sU(1); d.wireless.phy_mode=sU(1); d.wireless.super_mode=sU(1); d.wireless.tx_rate=sU(1); d.wireless.SSID=sS(32); d.wireless.auth=sU(1); d.wireless.channel=sU(1); d.wireless.keylen=sU(1); d.wireless.radio_control=sU(1); d.wireless.region_id=sU(1); d.wireless.use_key=sU(1); for (var i1=0; i1<4; i1++) { d.wireless.wep_key[i1]=sH(13); } d.wireless.wepon=sU(1); d.wireless.wpa_cipher=sU(1); d.wireless.ieee8021x_enabled=sU(1); d.wireless.wpa_enabled=sU(1); d.wireless.wpa_mode=sU(1); d.wireless.wpa_psk=sS(64); d.wireless.wpa_rekey_time=sU(2); } function createBinaryArrayFromDataObject() { byte_array = new Array; // global, accessed by the g*() functions var d = data; gS(d.gw_name,32); gU(d.allow_wan_web_access,1); gU(d.upnp_enabled,1); gS(d.user_password,15); gU(d.wan_idle_timeout,2); gS(d.wan_web_ingress_filter_name,16); gU(d.wan_web_port,2); gU(d.allow_wan_ping,1); for (var i1=0; i1<64; i1++) { gU(d.ingress_rules[i1].action,1); gS(d.ingress_rules[i1].ingress_filter_name,16); for (var i2=0; i2<8; i2++) { gU(d.ingress_rules[i1].ip_range_table[i2].enabled,1); gX(d.ingress_rules[i1].ip_range_table[i2].ip_end); gX(d.ingress_rules[i1].ip_range_table[i2].ip_start); } gU(d.ingress_rules[i1].used,1); } gS(d.password,15); gU(d.wireless.adaptive_radio,1); gU(d.wireless.auto_channel,1); gU(d.wireless.invisibility,1); gU(d.wireless.phy_mode,1); gU(d.wireless.super_mode,1); gU(d.wireless.tx_rate,1); gS(d.wireless.SSID,32); gU(d.wireless.auth,1); gU(d.wireless.channel,1); gU(d.wireless.keylen,1); gU(d.wireless.radio_control,1); gU(d.wireless.region_id,1); gU(d.wireless.use_key,1); for (var i1=0; i1<4; i1++) { gH(d.wireless.wep_key[i1],13); } gU(d.wireless.wepon,1); gU(d.wireless.wpa_cipher,1); gU(d.wireless.ieee8021x_enabled,1); gU(d.wireless.wpa_enabled,1); gU(d.wireless.wpa_mode,1); gS(d.wireless.wpa_psk,64); gU(d.wireless.wpa_rekey_time,2); return byte_array; } function naturalizeDataObject() { var d = data; d.wan_idle_timeout=naturalize(d.wan_idle_timeout); d.wan_web_port=naturalize(d.wan_web_port); for (var i1=0; i1<64; i1++) { for (var i2=0; i2<8; i2++) { } d.ingress_rules[i1].used=naturalize(d.ingress_rules[i1].used); } d.wireless.channel=naturalize(d.wireless.channel); d.wireless.region_id=naturalize(d.wireless.region_id); for (var i1=0; i1<4; i1++) { } d.wireless.wpa_rekey_time=naturalize(d.wireless.wpa_rekey_time); }