/* * 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.wan_ip_mode=sU(1); d.wan_ip_address=sX(); d.wan_subnet_mask=sX(); d.wan_gateway=sX(); d.wan_l2tp_ip_address=sX(); d.wan_pptp_ip_address=sX(); d.wan_l2tp_subnet_mask=sX(); d.wan_pptp_subnet_mask=sX(); d.wan_l2tp_gateway=sX(); d.wan_l2tp_server=sX(); d.wan_pptp_gateway=sX(); d.wan_pptp_server=sX(); d.bigpond_enable=sU(1); d.bigpond_password=sS(50); d.bigpond_server=sS(50); d.bigpond_userid=sS(50); d.pppoe_max_idle_time=sU(2); d.wan_force_static_dns_servers=sU(1); d.wan_l2tp_max_idle_time=sU(2); d.wan_link_speed_select=sU(1); d.wan_mtu=sU(2); d.wan_mtu_use_default=sU(1); d.wan_ping_ingress_filter_name=sS(16); d.wan_pptp_max_idle_time=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.mac_cloning_address=sH(6); d.mac_cloning_enabled=sU(1); d.pppoe_password=sS(63); d.pppoe_reconnect_mode=sU(1); d.pppoe_service_name=sS(39); d.pppoe_username=sS(63); d.wan_dhcp_gw_name=sS(39); d.wan_l2tp_password=sS(63); d.wan_l2tp_reconnect_mode=sU(1); d.wan_l2tp_username=sS(63); d.wan_pptp_password=sS(63); d.wan_pptp_reconnect_mode=sU(1); d.wan_pptp_username=sS(63); d.wan_primary_dns=sX(); d.wan_secondary_dns=sX(); } 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.wan_ip_mode,1); gX(d.wan_ip_address); gX(d.wan_subnet_mask); gX(d.wan_gateway); gX(d.wan_l2tp_ip_address); gX(d.wan_pptp_ip_address); gX(d.wan_l2tp_subnet_mask); gX(d.wan_pptp_subnet_mask); gX(d.wan_l2tp_gateway); gX(d.wan_l2tp_server); gX(d.wan_pptp_gateway); gX(d.wan_pptp_server); gU(d.bigpond_enable,1); gS(d.bigpond_password,50); gS(d.bigpond_server,50); gS(d.bigpond_userid,50); gU(d.pppoe_max_idle_time,2); gU(d.wan_force_static_dns_servers,1); gU(d.wan_l2tp_max_idle_time,2); gU(d.wan_link_speed_select,1); gU(d.wan_mtu,2); gU(d.wan_mtu_use_default,1); gS(d.wan_ping_ingress_filter_name,16); gU(d.wan_pptp_max_idle_time,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); } gH(d.mac_cloning_address,6); gU(d.mac_cloning_enabled,1); gS(d.pppoe_password,63); gU(d.pppoe_reconnect_mode,1); gS(d.pppoe_service_name,39); gS(d.pppoe_username,63); gS(d.wan_dhcp_gw_name,39); gS(d.wan_l2tp_password,63); gU(d.wan_l2tp_reconnect_mode,1); gS(d.wan_l2tp_username,63); gS(d.wan_pptp_password,63); gU(d.wan_pptp_reconnect_mode,1); gS(d.wan_pptp_username,63); gX(d.wan_primary_dns); gX(d.wan_secondary_dns); return byte_array; } function naturalizeDataObject() { var d = data; d.pppoe_max_idle_time=naturalize(d.pppoe_max_idle_time); d.wan_l2tp_max_idle_time=naturalize(d.wan_l2tp_max_idle_time); d.wan_mtu=naturalize(d.wan_mtu); d.wan_pptp_max_idle_time=naturalize(d.wan_pptp_max_idle_time); 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); } }