/* Created with PageBuilder version 4.04 on Tue Nov  1 11:09:58 2011 */

#include "AsExtern.h"

#if RomPagerServer



/* ********************************************** */
/* *    Built from "html\network_config.htm"    * */
/* ********************************************** */

extern rpObjectDescription Pgnetwork_config;

static char Pgnetwork_config_Item_1[] =
	C_oHTML;

static char Pgnetwork_config_Item_2[] =
	C_oHEAD "\n"
	C_oMETA " http-equiv=\"Content-Type\"" C_CONTENT "\"text/html; "
	"charset=UTF-8\">\n"
	C_oTITLE "\n";

extern char *network_getProductName(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
rpTextDisplayItem network_getProductNameId = {
	(void *) network_getProductName,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgnetwork_config_Item_4[] =
	C_xTITLE C_oMETA C_CONTENT "\"text/html; charset=windows-1252\" "
	"http-equiv=\"Content-Type\">\n"
	"<link type=\"text/css\" href=\"/css/stylesheet.css\" "
	"rel=\"stylesheet\">\n"
	"<script src=\"/scripts/utils.js\" language=\"JavaScript\"></script>\n"
	"<script src=\"/scripts/errhandler.js\" language=\"JavaScript\">"
	"</script>\n"
	"<script src=\"/scripts/validation.js\" language=\"JavaScript\">"
	"</script>\n"
	"<script language=\"JavaScript\">\n"
	"<!--\n"
	"function setDhcpState() {\n"
	"if (document.network_form.rbDHCP[0].checked) {\n"
	"document.network_form.ip_addr.disabled = true;\n"
	"document.network_form.submask.disabled = true;\n"
	"document.network_form.gw_addr.disabled = true;\n"
	"document.network_form.pdns_addr.disabled = true;\n"
	"document.network_form.sdns_addr.disabled = true;\n"
	"} else {\n"
	"document.network_form.ip_addr.disabled = false;\n"
	"document.network_form.submask.disabled = false;\n"
	"document.network_form.gw_addr.disabled = false;\n"
	"document.network_form.pdns_addr.disabled = false;\n"
	"document.network_form.sdns_addr.disabled = false;\n"
	"document.network_form.ip_addr.focus();\n"
	"}\n"
	"}\n"
	"var err = new ErrorHandler();\n"
	"function doValidate() {\n"
	"err.clearErrors(); // reset\n"
	"var ip = document.network_form.ip_addr;\n"
	"var submask = document.network_form.submask;\n"
	"var gw = document.network_form.gw_addr;\n"
	"var pDNS = document.network_form.pdns_addr;\n"
	"var sDNS = document.network_form.sdns_addr;\n"
	"var prefix = document.network_form.prefix_len;\n"
	"// Trim values before validation.\n"
	"ip.value = trim(ip.value);\n"
	"submask.value = trim(submask.value);\n"
	"gw.value = trim(gw.value);\n"
	"pDNS.value = trim(pDNS.value);\n"
	"sDNS.value = trim(sDNS.value);\n"
	"// name server is optional. Set to default value\n"
	"// if left blank.\n"
	"if (gw.value.length == 0)\n"
	"gw.value = \'0.0.0.0\';\n"
	"// If DHCP is enabled make sure the other ip settings are at least\n"
	"// of valid form to avoid ROMPager parsing errors. They should get\n"
	"// tossed anyway since DHCP will aquire the values.\n"
	"if (document.network_form.rbDHCP[0].checked) {\n"
	"if (!isValidIP(ip.value))\n"
	"ip.value = \'0.0.0.0\';\n"
	"if (!isDottedForm(submask.value))\n"
	"submask.value = \'0.0.0.0\';\n"
	"if (!isValidIP(gw.value))\n"
	"gw.value = \'0.0.0.0\';\n";

static char Pgnetwork_config_Item_5[] =
	"if (!isValidIP(pDNS.value))\n"
	"pDNS.value = \'0.0.0.0\';\n"
	"if (!isValidIP(sDNS.value))\n"
	"sDNS.value = \'0.0.0.0\';\n"
	"} else {\n"
	"if (!isValidIP(ip.value))\n"
	"err.addError(ip, \'Invalid or missing IP address.\');\n"
	"if (pDNS.value != \'0.0.0.0\' && !isValidIP(pDNS.value))\n"
	"err.addError(pDNS, \'Invalid or missing Primary DNS address.\');\n"
	"if (sDNS.value != \'0.0.0.0\' && !isValidIP(sDNS.value))\n"
	"err.addError(sDNS, \'Invalid or missing Secondary DNS address.\');\n"
	"if (!isDottedForm(submask.value))\n"
	"err.addError(submask, \'Invalid or missing subnet mask.\');\n"
	"if (gw.value != \'0.0.0.0\' && !isValidIP(gw.value))\n"
	"err.addError(gw, \'Invalid or missing default gateway address.\');\n"
	"else if (!isValidGateway(gw.value))\n"
	"err.addError(gw, \'Invalid gateway address can not be 0.0.0.0.\');\n"
	"}\n"
	"if (document.network_form.ipv6Static.checked) {\n"
	"if (!isInRange(prefix.value, 0, 128)) {\n"
	"err.addError(prefix, \'Invalid Prefix Length - enter value between 0 "
	"to 128.\');\n"
	"}\n"
	"}\n"
	"err.showError();\n"
	"return !err.hasError();\n"
	"}\n"
	"function setIpv6StaticState() {\n"
	"if (document.network_form.ipv6Static.checked) {\n"
	"document.network_form.ipv6_addr.disabled = false;\n"
	"document.network_form.prefix_len.disabled = false;\n"
	"document.network_form.ipv6_gateway.disabled = false;\n"
	"document.network_form.ipv6_addr.focus();\n"
	"} else {\n"
	"document.network_form.ipv6_addr.disabled = true;\n"
	"document.network_form.prefix_len.disabled = true;\n"
	"document.network_form.ipv6_gateway.disabled = true;\n"
	"}\n"
	"}\n"
	"function setNetworState() {\n"
	"setDhcpState();\n"
	"setIpv6StaticState();\n"
	"}\n"
	"//-->\n"
	"</script>\n"
	C_xHEAD C_oBODY " onunload=\"\" onload=\"setNetworState();\">\n"
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"4\""
	C_CELLSPACING "\"0\">\n"
	"<tr" C_BGCOLOR "ffffff\">\n"
	C_oTD_oANCHOR_HREF "http://www.digi.com/\"><img" C_ALT "Digi "
	"International\" src=\"/img/logo.gif\"" C_BORDER "\"0\"/>"
	C_xANCHOR_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD "<!-- Spacer -->\n"
	"<td nowrap=\"\"" C_WIDTH "\"100%\"" C_VALIGN_MIDDLE " "
	"class=\"PAGEHEADER\">\n";

extern rpTextDisplayItem network_getProductNameId;

static char Pgnetwork_config_Item_7[] =
	C_xTD C_xTR C_oTR "\n"
	C_oTD C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD "<!-- Spacer -->\n"
	"<!-- Messages -->\n"
	"<td" C_VALIGN_TOP C_WIDTH "\"100%\">\n"
	"<!-- STATUS MESSAGES -->\n";

static char Pgnetwork_config_Item_9[] =
	"<table class=\"STATUSBOX\"" C_BORDER "\"0\"" C_CELLPADDING "\"4\""
	C_CELLSPACING "\"0\"" C_ALIGN_CENTER C_WIDTH "\"100%\">\n"
	C_oTR "\n"
	C_oTD_ALIGN_LEFT ">\n";

extern char *network_GetMessageText(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
rpTextDisplayItem network_getMessageTextId = {
	(void *) network_GetMessageText,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgnetwork_config_Item_11[] =
	C_xTD C_xTR
	C_xTABLE;

static rpItem Pgnetwork_config_Item_8_Group[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_9 }, 
	{ eRpItemType_DisplayText, (void *) &network_getMessageTextId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_11 }, 
	{ eRpItemType_LastItemInList } 
};

extern void network_repeatWhileMoreStatusMessages(void *theTaskDataPtr, Signed16Ptr theIndexPtr,
		void **theRepeatGroupValuePtr);
static rpRepeatGroupDynItem Pgnetwork_config_Item_8 = {
	(void *) network_repeatWhileMoreStatusMessages,
	Pgnetwork_config_Item_8_Group
};

static char Pgnetwork_config_Item_12[] =
	"<!-- ERROR MESSAGES -->\n";

static char Pgnetwork_config_Item_14[] =
	"<table class=\"ERRORBOX\"" C_BORDER "\"0\"" C_CELLPADDING "\"4\""
	C_CELLSPACING "\"0\"" C_ALIGN_CENTER C_WIDTH "\"100%\">\n"
	C_oTR "\n"
	C_oTD_ALIGN_LEFT ">\n";

extern rpTextDisplayItem network_getMessageTextId;

static char Pgnetwork_config_Item_16[] =
	C_xTD C_xTR
	C_xTABLE;

static rpItem Pgnetwork_config_Item_13_Group[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_14 }, 
	{ eRpItemType_DisplayText, (void *) &network_getMessageTextId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_16 }, 
	{ eRpItemType_LastItemInList } 
};

extern void network_repeatWhileMoreErrorMessages(void *theTaskDataPtr, Signed16Ptr theIndexPtr,
		void **theRepeatGroupValuePtr);
static rpRepeatGroupDynItem Pgnetwork_config_Item_13 = {
	(void *) network_repeatWhileMoreErrorMessages,
	Pgnetwork_config_Item_13_Group
};

static char Pgnetwork_config_Item_17[] =
	C_xTD C_xTR C_oTR "\n"
	"<!-- MENU -->\n"
	"<td" C_VALIGN_TOP " nowrap=\"\">\n";

static char Pgnetwork_config_Item_19[] =
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"10\""
	C_CELLSPACING "\"0\">\n"
	C_oTR "\n"
	"<td nowrap=\"\">\n";

static char Pgnetwork_config_Item_21[] =
	"\n"
	C_oANCHOR_HREF "\n";

extern char *network_getMenuItemUrl(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
static rpTextDisplayItem Pgnetwork_config_Item_22 = {
	(void *) network_getMenuItemUrl,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgnetwork_config_Item_23[] =
	"\">\n";

extern char *network_getMenuItemName(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
static rpTextDisplayItem Pgnetwork_config_Item_24 = {
	(void *) network_getMenuItemName,
	eRpVarType_Complex,
	eRpTextType_ASCII_Extended,
	20
};

static char Pgnetwork_config_Item_25[] =
	C_xANCHOR "<br/>\n";

static rpItem Pgnetwork_config_Item_20_Group[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_21 }, 
	{ eRpItemType_DisplayText, (void *) &Pgnetwork_config_Item_22 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_23 }, 
	{ eRpItemType_DisplayText, (void *) &Pgnetwork_config_Item_24 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_25 }, 
	{ eRpItemType_LastItemInList } 
};

extern void network_getMenuListWhile(void *theTaskDataPtr, Signed16Ptr theIndexPtr,
		void **theRepeatGroupValuePtr);
static rpRepeatGroupDynItem Pgnetwork_config_Item_20 = {
	(void *) network_getMenuListWhile,
	Pgnetwork_config_Item_20_Group
};

static char Pgnetwork_config_Item_26[] =
	C_xTD C_xTR
	C_xTABLE;

rpItem network_htmlMenu[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_19 }, 
	{ eRpItemType_RepeatGroupWhile, (void *) &Pgnetwork_config_Item_20 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_26 }, 
	{ eRpItemType_LastItemInList } 
};

static char Pgnetwork_config_Item_27[] =
	C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD "<!-- Spacer -->\n"
	"<!-- PAGE CONTENT -->\n"
	"<td" C_VALIGN_TOP C_WIDTH "\"100%\">\n"
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"10\""
	C_CELLSPACING "\"0\" class=\"BORDER\">\n"
	C_oTR "\n"
	"<td" C_WIDTH "\"100%\" class=\"PAGECONTENT\">\n"
	"<h1 class=\"CONTENTHEADER\"" C_ALIGN_CENTER ">Network Settings" C_xH1
	C_oTABLE_BORDER "\"0\"" C_WIDTH "\"100%\"" C_CELLPADDING "\"0\""
	C_CELLSPACING "\"0\">\n"
	C_oTR " " C_oTD C_oH2 "IP v4 Settings" C_xH2 C_xTD C_xTR C_oTR
	C_oTD;

static char Pgnetwork_config_Item_28[] =
	C_NAME "\"network_form\" onsubmit=\"return doValidate();\"";

static char Pgnetwork_config_Item_30[] =
	C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"2\"" C_BORDER "\"0\">\n";

extern rpOneOfSeveral getDhcp(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setDhcp(void *theTaskDataPtr, rpOneOfSeveral theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpRadioGroupInfo Pgnetwork_config_RadioGroup_1 = {
	"rbDHCP",
	(void *) getDhcp,
	(void *) setDhcp,
	eRpVarType_Complex,
	eRpVarType_Complex
};

static char Pgnetwork_config_Item_31[] =
	C_oTR "\n"
	C_oTD;

static char Pgnetwork_config_Item_32[] =
	" onclick=\"setDhcpState();\"";

rpRadioButtonFormItem enableDHCP = {
	&Pgnetwork_config_RadioGroup_1,
	"on",
	0,
	(char *) Pgnetwork_config_Item_32
};

static char Pgnetwork_config_Item_34[] =
	C_NBSP "\n"
	"<label for=\"enableDHCP\">Obtain an IP address automatically</label>\n"
	C_xTD C_xTR C_oTR "\n"
	C_oTD;

static char Pgnetwork_config_Item_35[] =
	" onclick=\"setDhcpState();\"";

rpRadioButtonFormItem disableDHCP = {
	&Pgnetwork_config_RadioGroup_1,
	"off",
	1,
	(char *) Pgnetwork_config_Item_35
};

static char Pgnetwork_config_Item_37[] =
	C_NBSP "\n"
	"<label for=\"disableDHCP\">Use the following IP address</label>\n"
	C_xTD C_xTR C_xTABLE C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"2\""
	C_BORDER "\"0\">\n"
	C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"IP v4 Address:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getIpAddress(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setIPAddress(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_38 = {
	"ip_addr",
	(void *) getIpAddress,
	(void *) setIPAddress,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgnetwork_config_Item_39[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Subnet Mask:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getSubMask(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setSubMask(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_40 = {
	"submask",
	(void *) getSubMask,
	(void *) setSubMask,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgnetwork_config_Item_41[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Default Gateway:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getGateway(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setGateway(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_42 = {
	"gw_addr",
	(void *) getGateway,
	(void *) setGateway,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgnetwork_config_Item_43[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Primary DNS:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getPrimaryDNS(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setPrimaryDNS(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_44 = {
	"pdns_addr",
	(void *) getPrimaryDNS,
	(void *) setPrimaryDNS,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgnetwork_config_Item_45[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Secondary DNS:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getSecondaryDNS(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setSecondaryDNS(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_46 = {
	"sdns_addr",
	(void *) getSecondaryDNS,
	(void *) setSecondaryDNS,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_DotForm,
	15,
	15,
	(char *) 0
};

static char Pgnetwork_config_Item_47[] =
	C_xTD C_xTR C_xTABLE C_oBR C_xTD C_xTR C_oTR " " C_oTD C_oH2 "IP v6 "
	"Settings" C_xH2 C_xTD C_xTR C_oTR " " C_oTD C_oTABLE_CELLSPACING "\"0\""
	C_CELLPADDING "\"2\"" C_BORDER "\"0\">\n"
	C_oTR "\n"
	C_oTD;

extern Boolean getIpv6Dhcp(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setIpv6Dhcp(void *theTaskDataPtr, Boolean theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpCheckboxFormItem Pgnetwork_config_Item_48 = {
	"ipv6DHCP",
	(void *) getIpv6Dhcp,
	(void *) setIpv6Dhcp,
	eRpVarType_Complex,
	eRpVarType_Complex,
	(char *) 0
};

static char Pgnetwork_config_Item_49[] =
	C_NBSP "\n"
	"<label for=\"enableDHCP\">Enable DHCP v6</label>\n"
	C_xTD C_xTR C_oTR "\n"
	C_oTD;

static char Pgnetwork_config_Item_50[] =
	" onclick=\"setIpv6StaticState();\"";

extern Boolean getIpv6Static(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setIpv6Static(void *theTaskDataPtr, Boolean theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpCheckboxFormItem Pgnetwork_config_Item_51 = {
	"ipv6Static",
	(void *) getIpv6Static,
	(void *) setIpv6Static,
	eRpVarType_Complex,
	eRpVarType_Complex,
	(char *) Pgnetwork_config_Item_50
};

static char Pgnetwork_config_Item_52[] =
	C_NBSP "\n"
	"<label for=\"disableDHCP\">Use the following static IP v6 address"
	"</label>\n"
	C_xTD C_xTR C_xTABLE C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"2\""
	C_BORDER "\"0\">\n"
	C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"IP v6 Address:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getIpv6Address(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setIPv6Address(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_53 = {
	"ipv6_addr",
	(void *) getIpv6Address,
	(void *) setIPv6Address,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_ASCII,
	32,
	32,
	(char *) 0
};

static char Pgnetwork_config_Item_54[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"Prefix Length:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern Unsigned8 getPrefixLength(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setPrefixLength(void *theTaskDataPtr, Unsigned8 theValue,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_55 = {
	"prefix_len",
	(void *) getPrefixLength,
	(void *) setPrefixLength,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_Unsigned8,
	3,
	3,
	(char *) 0
};

static char Pgnetwork_config_Item_56[] =
	C_xTD C_xTR C_oTR "\n"
	"<td" C_WIDTH "\"40\">" C_NBSP C_xTD "<td nowrap=\"\"" C_ALIGN_RIGHT ">"
	"IP v6 Gateway:" C_xTD "<td" C_WIDTH "\"10\">" C_NBSP C_xTD
	C_oTD;

extern char *getIpv6Gateway(void *theTaskDataPtr, char *theNamePtr,
		Signed16Ptr theIndexValuesPtr);
extern void setIPv6Gateway(void *theTaskDataPtr, char *theValuePtr,
		char *theNamePtr, Signed16Ptr theIndexValuesPtr);
static rpTextFormItem Pgnetwork_config_Item_57 = {
	"ipv6_gateway",
	(void *) getIpv6Gateway,
	(void *) setIPv6Gateway,
	eRpVarType_Complex,
	eRpVarType_Complex,
	eRpTextType_ASCII,
	32,
	32,
	(char *) 0
};

static char Pgnetwork_config_Item_58[] =
	C_xTD C_xTR C_xTABLE C_oBR "<hr class=\"SEPARATORLINE\">\n"
	C_oTABLE_CELLSPACING "\"0\"" C_CELLPADDING "\"0\"" C_BORDER "\"0\">\n"
	C_oTR "\n"
	C_oTD;

static rpButtonFormItem Pgnetwork_config_Item_59 = {
	"Apply",
	(char *) 0
};

static char Pgnetwork_config_Item_60[] =
	C_xTD C_xTR C_xTABLE C_xFORM C_xTD C_xTR C_xTABLE C_xTD C_xTR C_xTABLE
	C_xTD C_xTR
	C_xTABLE;

char network_htmlCopyright[] =
	"\n"
	"<table" C_WIDTH "\"100%\"" C_BORDER "\"0\"" C_CELLPADDING "\"0\""
	C_CELLSPACING "\"0\">\n"
	C_oTR "\n"
	C_oTD_ALIGN_CENTER " class=\"COPYRIGHT\">\n"
	"Copyright &copy; 1996-2006 Digi International, Inc. All rights "
	"reserved.\n"
	C_xTD C_xTR
	C_xTABLE;

static char Pgnetwork_config_Item_62[] =
	C_xBODY_xHTML;



static rpItem Pgnetwork_config_Form_1_Items[] = { 
	{ eRpItemType_FormRadioButton, (void *) &enableDHCP }, 
	{ eRpItemType_FormRadioButton, (void *) &disableDHCP }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_38 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_40 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_42 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_44 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_46 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgnetwork_config_Item_48 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgnetwork_config_Item_51 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_53 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_55 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_57 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgnetwork_config_Item_59 }, 
	{ eRpItemType_LastItemInList } 
};

extern void networkSubmit(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pgnetwork_config_Form_1_ObjectExtension = {
	networkSubmit,
	&Pgnetwork_config,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None,
	(char *) Pgnetwork_config_Item_28
};

rpObjectDescription Pgnetwork_config_Form_1 = {
	"/Forms/network_config_1",
	Pgnetwork_config_Form_1_Items,
	&Pgnetwork_config_Form_1_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Unprotected,
	eRpDataTypeForm,
	eRpObjectTypeDynamic
};

static rpItem Pgnetwork_config_Items[] = { 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_2 }, 
	{ eRpItemType_DisplayText, (void *) &network_getProductNameId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_4 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_5 }, 
	{ eRpItemType_DisplayText, (void *) &network_getProductNameId }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_7 }, 
	{ eRpItemType_RepeatGroupWhile, (void *) &Pgnetwork_config_Item_8 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_12 }, 
	{ eRpItemType_RepeatGroupWhile, (void *) &Pgnetwork_config_Item_13 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_17 }, 
	{ eRpItemType_ItemGroup, (void *) &network_htmlMenu }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_27 }, 
	{ eRpItemType_FormHeader, (void *) &Pgnetwork_config_Form_1 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_30 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_31 }, 
	{ eRpItemType_FormRadioButton, (void *) &enableDHCP }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_34 }, 
	{ eRpItemType_FormRadioButton, (void *) &disableDHCP }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_37 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_38 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_39 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_40 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_41 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_42 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_43 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_44 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_45 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_46 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_47 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgnetwork_config_Item_48 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_49 }, 
	{ eRpItemType_FormCheckbox, (void *) &Pgnetwork_config_Item_51 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_52 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_53 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_54 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_55 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_56 }, 
	{ eRpItemType_FormAsciiText, (void *) &Pgnetwork_config_Item_57 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_58 }, 
	{ eRpItemType_FormSubmit, (void *) &Pgnetwork_config_Item_59 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_60 }, 
	{ eRpItemType_DataZeroTerminated, (void *) &network_htmlCopyright }, 
	{ eRpItemType_DataZeroTerminated, (void *) &Pgnetwork_config_Item_62 }, 
	{ eRpItemType_LastItemInList } 
};


extern void networkConfigPagePreProc(void *theTaskDataPtr, Signed16Ptr theIndexValuesPtr);
static rpObjectExtension Pgnetwork_config_ObjectExtension = {
	networkConfigPagePreProc,
	(rpObjectDescriptionPtr) 0,
	(rpObjectDescriptionPtr) 0,
	0,
	kRpObjFlags_None,
	(char *) 0
};

rpObjectDescription Pgnetwork_config = {
	"/html/network_config.htm",
	Pgnetwork_config_Items,
	&Pgnetwork_config_ObjectExtension,
	(Unsigned32) 0,
	kRpPageAccess_Realm1,
	eRpDataTypeHtml,
	eRpObjectTypeDynamic
};

#endif	/* RomPagerServer */
