]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Ip6Dxe/Ip6Config.vfr
ShellPkg: Add checking for memory allocation and pointer returns from functions.
[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 class = EFI_NETWORK_DEVICE_CLASS,
25 subclass = 0x03,
26
27 varstore IP6_CONFIG_IFR_NVDATA,
28 name = IP6_CONFIG_IFR_NVDATA,
29 guid = IP6_CONFIG_NVDATA_GUID;
30
31 form formid = FORMID_HEAD_FORM,
32 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
33
34 goto FORMID_MAIN_FORM,
35 prompt = STRING_TOKEN (STR_GET_CURRENT_SETTING),
36 help = STRING_TOKEN (STR_GET_CURRENT_SETTING_HELP),
37 flags = INTERACTIVE,
38 key = KEY_GET_CURRENT_SETTING;
39
40 endform;
41
42 form formid = FORMID_MAIN_FORM,
43 title = STRING_TOKEN(STR_IP6_DEVICE_FORM_TITLE);
44
45 text
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);
49
50 text
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);
54
55 text
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);
59
60 text
61 help = STRING_TOKEN(STR_IP6_HOST_ADDRESS_HELP),
62 text = STRING_TOKEN(STR_IP6_HOST_ADDRESS),
63 text = STRING_TOKEN(STR_NULL);
64
65 label HOST_ADDRESS_LABEL;
66 label LABEL_END;
67
68 text
69 help = STRING_TOKEN(STR_IP6_ROUTE_TABLE_HELP),
70 text = STRING_TOKEN(STR_IP6_ROUTE_TABLE),
71 text = STRING_TOKEN(STR_NULL);
72
73 label ROUTE_TABLE_LABEL;
74 label LABEL_END;
75
76 text
77 help = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS_HELP),
78 text = STRING_TOKEN(STR_IP6_GATEWAY_ADDRESS),
79 text = STRING_TOKEN(STR_NULL);
80
81 label GATEWAY_ADDRESS_LABEL;
82 label LABEL_END;
83
84 text
85 help = STRING_TOKEN(STR_IP6_DNS_ADDRESS_HELP),
86 text = STRING_TOKEN(STR_IP6_DNS_ADDRESS),
87 text = STRING_TOKEN(STR_NULL);
88
89 label DNS_ADDRESS_LABEL;
90 label LABEL_END;
91
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),
95 flags = INTERACTIVE,
96 key = KEY_INTERFACE_ID,
97 minsize = INTERFACE_ID_STR_MIN_SIZE,
98 maxsize = INTERFACE_ID_STR_MAX_SIZE,
99 endstring;
100
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),
104 flags = 0,
105 minimum = 0,
106 maximum = DAD_MAX_TRANSMIT_COUNT,
107 step = 0,
108 endnumeric;
109
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;
115 endoneof;
116
117 subtitle text = STRING_TOKEN(STR_NULL);
118
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),
123 flags = 0;
124 subtitle text = STRING_TOKEN(STR_NULL);
125 endif;
126
127 text
128 help = STRING_TOKEN (STR_SAVE_CHANGES_HELP),
129 text = STRING_TOKEN (STR_SAVE_CHANGES),
130 text = STRING_TOKEN (STR_NULL),
131 flags = INTERACTIVE,
132 key = KEY_SAVE_CHANGES;
133
134 endform;
135
136 form formid = FORMID_MANUAL_CONFIG_FORM,
137 title = STRING_TOKEN(STR_IP6_AD_CONFIG_FORM);
138
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),
142 flags = INTERACTIVE,
143 key = KEY_MANUAL_ADDRESS,
144 minsize = ADDRESS_STR_MIN_SIZE,
145 maxsize = ADDRESS_STR_MAX_SIZE,
146 endstring;
147
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),
151 flags = INTERACTIVE,
152 key = KEY_GATEWAY_ADDRESS,
153 minsize = ADDRESS_STR_MIN_SIZE,
154 maxsize = ADDRESS_STR_MAX_SIZE,
155 endstring;
156
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),
160 flags = INTERACTIVE,
161 key = KEY_DNS_ADDRESS,
162 minsize = ADDRESS_STR_MIN_SIZE,
163 maxsize = ADDRESS_STR_MAX_SIZE,
164 endstring;
165
166 goto FORMID_MAIN_FORM,
167 prompt = STRING_TOKEN (STR_SAVE_AND_EXIT),
168 help = STRING_TOKEN (STR_SAVE_AND_EXIT),
169 flags = INTERACTIVE,
170 key = KEY_SAVE_CONFIG_CHANGES;
171
172 goto FORMID_MAIN_FORM,
173 prompt = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
174 help = STRING_TOKEN (STR_NO_SAVE_AND_EXIT),
175 flags = INTERACTIVE,
176 key = KEY_IGNORE_CONFIG_CHANGES;
177
178 endform;
179
180 endformset;
181