]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigNvData.h
MdeModulePkg: Fix IPv4 double free
[mirror_edk2.git] / MdeModulePkg / Universal / Network / VlanConfigDxe / VlanConfigNvData.h
CommitLineData
779ae357 1/** @file\r
2 Header file for NV data structure definition.\r
3\r
9ea13d79 4Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
e5eed7d3 5This program and the accompanying materials\r
779ae357 6are licensed and made available under the terms and conditions\r
7of the BSD License which accompanies this distribution. The full\r
8text of the license may be found at<BR>\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __VLAN_CONFIG_NV_DATA_H__\r
17#define __VLAN_CONFIG_NV_DATA_H__\r
18\r
19#include <Guid/HiiPlatformSetupFormset.h>\r
c8ad2d7a 20#include <Guid/VlanConfigHii.h>\r
779ae357 21\r
22#define VLAN_CONFIGURATION_VARSTORE_ID 0x0001\r
23#define VLAN_CONFIGURATION_FORM_ID 0x0001\r
9ea13d79 24#define VLAN_HEAD_FORM_ID 0x0002\r
779ae357 25\r
26#define VLAN_ADD_QUESTION_ID 0x1000\r
27#define VLAN_REMOVE_QUESTION_ID 0x2000\r
9ea13d79 28#define VLAN_UPDATE_QUESTION_ID 0x3000\r
779ae357 29\r
30#define LABEL_VLAN_LIST 0x0001\r
31#define LABEL_END 0xffff\r
32\r
33//\r
34// The maximum number of VLAN that will be displayed on the menu\r
35//\r
36#define MAX_VLAN_NUMBER 100\r
37\r
38//\r
39// Nv Data structure referenced by IFR\r
40//\r
41typedef struct {\r
42 UINT16 VlanId;\r
43 UINT8 Priority;\r
44 UINT8 VlanList[MAX_VLAN_NUMBER];\r
45} VLAN_CONFIGURATION;\r
46\r
47#endif\r