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),
24 class = EFI_NETWORK_DEVICE_CLASS,
27 varstore IP6_CONFIG_IFR_NVDATA,
28 name = IP6_CONFIG_IFR_NVDATA,
29 guid = IP6_CONFIG_NVDATA_GUID;
31 form formid = FORMID_HEAD_FORM,
32 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
34 goto FORMID_MAIN_FORM,
35 prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),
36 help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),
38 key = KEY_GET_CURRENT_SETTING;
42 form formid = FORMID_MAIN_FORM,
43 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
46 help = STRING_TOKEN(STR_IP6_INTERFACE_NAME_HELP),
47 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME),
48 text = STRING_TOKEN(STR_IP6_INTERFACE_NAME_CONTENT);
51 help = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_HELP),
52 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE),
53 text = STRING_TOKEN(STR_IP6_INTERFACE_TYPE_CONTENT);
56 help = STRING_TOKEN(STR_IP6_MAC_ADDRESS_HELP),
57 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS),
58 text = STRING_TOKEN(STR_IP6_MAC_ADDRESS_CONTENT);
61 help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),
62 text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),
63 text = STRING_TOKEN(STR_NULL);
65 label HOST_ADDRESS_LABEL;
69 help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),
70 text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),
71 text = STRING_TOKEN(STR_NULL);
73 label ROUTE_TABLE_LABEL;
77 help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),
78 text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),
79 text = STRING_TOKEN(STR_NULL);
81 label GATEWAY_ADDRESS_LABEL;
85 help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),
86 text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),
87 text = STRING_TOKEN(STR_NULL);
89 label DNS_ADDRESS_LABEL;
92 string varid = IP6_CONFIG_IFR_NVDATA.InterfaceId,
93 prompt = STRING_TOKEN(STR_IP6_INTERFACE_ID),
94 help = STRING_TOKEN(STR_IP6_INTERFACE_ID_HELP),
96 key = KEY_INTERFACE_ID,
97 minsize = INTERFACE_ID_STR_MIN_SIZE,
98 maxsize = INTERFACE_ID_STR_MAX_SIZE,
101 numeric varid = IP6_CONFIG_IFR_NVDATA.DadTransmitCount,
102 prompt = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT),
103 help = STRING_TOKEN(STR_IP6_DAD_TRANSMIT_COUNT_HELP),
106 maximum = DAD_MAX_TRANSMIT_COUNT,
110 oneof varid = IP6_CONFIG_IFR_NVDATA.Policy,
111 prompt = STRING_TOKEN(STR_POLICY_TYPE_PROMPT),
112 help = STRING_TOKEN(STR_POLICY_TYPE_HELP),
113 option text = STRING_TOKEN(STR_POLICY_TYPE_AUTO), value = IP6_POLICY_AUTO, flags = DEFAULT;
114 option text = STRING_TOKEN(STR_POLICY_TYPE_MANUAL), value = IP6_POLICY_MANUAL, flags = 0;
117 subtitle text = STRING_TOKEN(STR_NULL);
119 suppressif ideqval IP6_CONFIG_IFR_NVDATA.Policy == IP6_POLICY_AUTO;
120 goto FORMID_MANUAL_CONFIG_FORM,
121 prompt = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM),
122 help = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM_HELP),
124 subtitle text = STRING_TOKEN(STR_NULL);
128 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),
129 text = STRING_TOKEN (STR_SAVE_CHANGES),
130 text = STRING_TOKEN (STR_NULL),
132 key = KEY_SAVE_CHANGES;
136 form formid = FORMID_MANUAL_CONFIG_FORM,
137 title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);
139 string varid = IP6_CONFIG_IFR_NVDATA.ManualAddress,
140 prompt = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS),
141 help = STRING_TOKEN(STR_IP6_MANUAL_ADDRESS_HELP),
143 key = KEY_MANUAL_ADDRESS,
144 minsize = ADDRESS_STR_MIN_SIZE,
145 maxsize = ADDRESS_STR_MAX_SIZE,
148 string varid = IP6_CONFIG_IFR_NVDATA.GatewayAddress,
149 prompt = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDRESS),
150 help = STRING_TOKEN(STR_IP6_NEW_GATEWAY_ADDR_HELP),
152 key = KEY_GATEWAY_ADDRESS,
153 minsize = ADDRESS_STR_MIN_SIZE,
154 maxsize = ADDRESS_STR_MAX_SIZE,
157 string varid = IP6_CONFIG_IFR_NVDATA.DnsAddress,
158 prompt = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS),
159 help = STRING_TOKEN(STR_IP6_NEW_DNS_ADDRESS_HELP),
161 key = KEY_DNS_ADDRESS,
162 minsize = ADDRESS_STR_MIN_SIZE,
163 maxsize = ADDRESS_STR_MAX_SIZE,
166 goto FORMID_MAIN_FORM,
167 prompt = STRING_TOKEN (STR_SAVE_AND_EXIT),
168 help = STRING_TOKEN (STR_SAVE_AND_EXIT),
170 key = KEY_SAVE_CONFIG_CHANGES;
172 goto FORMID_MAIN_FORM,
173 prompt = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
174 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
176 key = KEY_IGNORE_CONFIG_CHANGES;