]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Ip6Dxe/Ip6NvData.h
2 NVData structure used by the IP6 configuration component.
4 Copyright (c) 2010 - 2013, 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 #ifndef _IP6_NV_DATA_H_
17 #define _IP6_NV_DATA_H_
19 #include <Guid/Ip6ConfigHii.h>
21 #define FORMID_MAIN_FORM 1
22 #define FORMID_MANUAL_CONFIG_FORM 2
23 #define FORMID_HEAD_FORM 3
25 #define IP6_POLICY_AUTO 0
26 #define IP6_POLICY_MANUAL 1
27 #define DAD_MAX_TRANSMIT_COUNT 10
29 #define KEY_INTERFACE_ID 0x101
30 #define KEY_MANUAL_ADDRESS 0x102
31 #define KEY_GATEWAY_ADDRESS 0x103
32 #define KEY_DNS_ADDRESS 0x104
33 #define KEY_SAVE_CHANGES 0x105
34 #define KEY_SAVE_CONFIG_CHANGES 0x106
35 #define KEY_IGNORE_CONFIG_CHANGES 0x107
36 #define KEY_GET_CURRENT_SETTING 0x108
38 #define HOST_ADDRESS_LABEL 0x9000
39 #define ROUTE_TABLE_LABEL 0xa000
40 #define GATEWAY_ADDRESS_LABEL 0xb000
41 #define DNS_ADDRESS_LABEL 0xc000
42 #define LABEL_END 0xffff
44 #define INTERFACE_ID_STR_MIN_SIZE 1
45 #define INTERFACE_ID_STR_MAX_SIZE 23
46 #define INTERFACE_ID_STR_STORAGE 25
47 #define IP6_STR_MAX_SIZE 40
48 #define ADDRESS_STR_MIN_SIZE 2
49 #define ADDRESS_STR_MAX_SIZE 255
52 /// IP6_CONFIG_IFR_NVDATA contains the IP6 configure
53 /// parameters for that NIC.
57 UINT8 IfType
; ///< interface type
59 UINT32 Policy
; ///< manual or automatic
60 UINT32 DadTransmitCount
; ///< dad transmits count
61 CHAR16 InterfaceId
[INTERFACE_ID_STR_STORAGE
]; ///< alternative interface id
62 CHAR16 ManualAddress
[ADDRESS_STR_MAX_SIZE
]; ///< IP addresses
63 CHAR16 GatewayAddress
[ADDRESS_STR_MAX_SIZE
]; ///< Gateway address
64 CHAR16 DnsAddress
[ADDRESS_STR_MAX_SIZE
]; ///< DNS server address
65 } IP6_CONFIG_IFR_NVDATA
;