]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Ip6Dxe/Ip6Config.vfr
MdeModulePkg: Variable: Fix typo in variable measure
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6Config.vfr
1 /** @file
2 VFR file used by the IP6 configuration component.
3
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
5
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.
10
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.
13
14 **/
15
16 #include "Ip6NvData.h"
17
18 #define EFI_NETWORK_DEVICE_CLASS 0x04
19
20 formset
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
25 varstore IP6_CONFIG_IFR_NVDATA,
26 name = IP6_CONFIG_IFR_NVDATA,
27 guid = IP6_CONFIG_NVDATA_GUID;
28
29 form formid = FORMID_HEAD_FORM,
30 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
31
32 goto FORMID_MAIN_FORM,
33 prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),
34 help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),
35 flags = INTERACTIVE,
36 key = KEY_GET_CURRENT_SETTING;
37
38 endform;
39
40 form formid = FORMID_MAIN_FORM,
41 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
42
43 text
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);
47
48 text
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);
52
53 text
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);
57
58 text
59 help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),
60 text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),
61 text = STRING_TOKEN(STR_NULL);
62
63 label HOST_ADDRESS_LABEL;
64 label LABEL_END;
65
66 text
67 help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),
68 text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),
69 text = STRING_TOKEN(STR_NULL);
70
71 label ROUTE_TABLE_LABEL;
72 label LABEL_END;
73
74 text
75 help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),
76 text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),
77 text = STRING_TOKEN(STR_NULL);
78
79 label GATEWAY_ADDRESS_LABEL;
80 label LABEL_END;
81
82 text
83 help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),
84 text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),
85 text = STRING_TOKEN(STR_NULL);
86
87 label DNS_ADDRESS_LABEL;
88 label LABEL_END;
89
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),
93 flags = INTERACTIVE,
94 key = KEY_INTERFACE_ID,
95 minsize = INTERFACE_ID_STR_MIN_SIZE,
96 maxsize = INTERFACE_ID_STR_MAX_SIZE,
97 endstring;
98
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),
102 flags = 0,
103 minimum = 0,
104 maximum = DAD_MAX_TRANSMIT_COUNT,
105 step = 0,
106 endnumeric;
107
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;
113 endoneof;
114
115 subtitle text = STRING_TOKEN(STR_NULL);
116
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),
121 flags = 0;
122 subtitle text = STRING_TOKEN(STR_NULL);
123 endif;
124
125 text
126 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),
127 text = STRING_TOKEN (STR_SAVE_CHANGES),
128 flags = INTERACTIVE,
129 key = KEY_SAVE_CHANGES;
130
131 endform;
132
133 form formid = FORMID_MANUAL_CONFIG_FORM,
134 title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);
135
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),
139 flags = INTERACTIVE,
140 key = KEY_MANUAL_ADDRESS,
141 minsize = ADDRESS_STR_MIN_SIZE,
142 maxsize = ADDRESS_STR_MAX_SIZE,
143 endstring;
144
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),
148 flags = INTERACTIVE,
149 key = KEY_GATEWAY_ADDRESS,
150 minsize = ADDRESS_STR_MIN_SIZE,
151 maxsize = ADDRESS_STR_MAX_SIZE,
152 endstring;
153
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),
157 flags = INTERACTIVE,
158 key = KEY_DNS_ADDRESS,
159 minsize = ADDRESS_STR_MIN_SIZE,
160 maxsize = ADDRESS_STR_MAX_SIZE,
161 endstring;
162
163 text
164 help = STRING_TOKEN (STR_SAVE_AND_EXIT),
165 text = STRING_TOKEN (STR_SAVE_AND_EXIT),
166 flags = INTERACTIVE,
167 key = KEY_SAVE_CONFIG_CHANGES;
168
169 text
170 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
171 text = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
172 flags = INTERACTIVE,
173 key = KEY_IGNORE_CONFIG_CHANGES;
174
175 endform;
176
177 endformset;
178