2 VFR file used by the IP6 configuration component.
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include "Ip6NvData.h"
18 #define EFI_NETWORK_DEVICE_CLASS 0x04
21 guid = IP6_CONFIG_NVDATA_GUID,
22 title = STRING_TOKEN(STR_IP6_CONFIG_FORM_TITLE),
23 help = STRING_TOKEN(STR_IP6_CONFIG_FORM_HELP),
25 varstore IP6_CONFIG_IFR_NVDATA,
26 name = IP6_CONFIG_IFR_NVDATA,
27 guid = IP6_CONFIG_NVDATA_GUID;
29 form formid = FORMID_HEAD_FORM,
30 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
32 goto FORMID_MAIN_FORM,
33 prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),
34 help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),
36 key = KEY_GET_CURRENT_SETTING;
40 form formid = FORMID_MAIN_FORM,
41 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
44 help = STRING_TOKEN(STR_IP6_INTERFACE_NAME_HELP),
45 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME),
46 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME_CONTENT);
49 help = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_HELP),
50 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE),
51 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_CONTENT);
54 help = STRING_TOKEN(STR_IP6_MAC_ADDRESS_HELP),
55 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS),
56 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS_CONTENT);
59 help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),
60 text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),
61 text = STRING_TOKEN(STR_NULL);
63 label HOST_ADDRESS_LABEL;
67 help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),
68 text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),
69 text = STRING_TOKEN(STR_NULL);
71 label ROUTE_TABLE_LABEL;
75 help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),
76 text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),
77 text = STRING_TOKEN(STR_NULL);
79 label GATEWAY_ADDRESS_LABEL;
83 help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),
84 text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),
85 text = STRING_TOKEN(STR_NULL);
87 label DNS_ADDRESS_LABEL;
90 string varid = IP6_CONFIG_IFR_NVDATA.InterfaceId,
91 prompt = STRING_TOKEN(STR_IP6_INTERFACE_ID),
92 help = STRING_TOKEN(STR_IP6_INTERFACE_ID_HELP),
94 key = KEY_INTERFACE_ID,
95 minsize = INTERFACE_ID_STR_MIN_SIZE,
96 maxsize = INTERFACE_ID_STR_MAX_SIZE,
99 numeric varid = IP6_CONFIG_IFR_NVDATA.DadTransmitCount,
100 prompt = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT),
101 help = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT_HELP),
104 maximum = DAD_MAX_TRANSMIT_COUNT,
108 oneof varid = IP6_CONFIG_IFR_NVDATA.Policy,
109 prompt = STRING_TOKEN(STR_POLICY_TYPE_PROMPT),
110 help = STRING_TOKEN(STR_POLICY_TYPE_HELP),
111 option text = STRING_TOKEN(STR_POLICY_TYPE_AUTO), value = IP6_POLICY_AUTO, flags = DEFAULT;
112 option text = STRING_TOKEN(STR_POLICY_TYPE_MANUAL), value = IP6_POLICY_MANUAL, flags = 0;
115 subtitle text = STRING_TOKEN(STR_NULL);
117 suppressif ideqval IP6_CONFIG_IFR_NVDATA.Policy == IP6_POLICY_AUTO;
118 goto FORMID_MANUAL_CONFIG_FORM,
119 prompt = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM),
120 help = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM_HELP),
122 subtitle text = STRING_TOKEN(STR_NULL);
126 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),
127 text = STRING_TOKEN (STR_SAVE_CHANGES),
129 key = KEY_SAVE_CHANGES;
133 form formid = FORMID_MANUAL_CONFIG_FORM,
134 title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);
136 string varid = IP6_CONFIG_IFR_NVDATA.ManualAddress,
137 prompt = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS),
138 help = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS_HELP),
140 key = KEY_MANUAL_ADDRESS,
141 minsize = ADDRESS_STR_MIN_SIZE,
142 maxsize = ADDRESS_STR_MAX_SIZE,
145 string varid = IP6_CONFIG_IFR_NVDATA.GatewayAddress,
146 prompt = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDRESS),
147 help = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDR_HELP),
149 key = KEY_GATEWAY_ADDRESS,
150 minsize = ADDRESS_STR_MIN_SIZE,
151 maxsize = ADDRESS_STR_MAX_SIZE,
154 string varid = IP6_CONFIG_IFR_NVDATA.DnsAddress,
155 prompt = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS),
156 help = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS_HELP),
158 key = KEY_DNS_ADDRESS,
159 minsize = ADDRESS_STR_MIN_SIZE,
160 maxsize = ADDRESS_STR_MAX_SIZE,
164 help = STRING_TOKEN (STR_SAVE_AND_EXIT),
165 text = STRING_TOKEN (STR_SAVE_AND_EXIT),
167 key = KEY_SAVE_CONFIG_CHANGES;
170 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
171 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
173 key = KEY_IGNORE_CONFIG_CHANGES;