]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Ip6Dxe/Ip6NvData.h
715473fde3d21e46317124dc9ca54b3804d2cf2a
2 NVData structure used by the IP6 configuration component.
4 Copyright (c) 2010, 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 #define IP6_CONFIG_NVDATA_GUID \
21 0x2eea107, 0x98db, 0x400e, { 0x98, 0x30, 0x46, 0xa, 0x15, 0x42, 0xd7, 0x99 } \
24 #define FORMID_MAIN_FORM 1
25 #define FORMID_MANUAL_CONFIG_FORM 2
27 #define IP6_POLICY_AUTO 0
28 #define IP6_POLICY_MANUAL 1
29 #define DAD_MAX_TRANSMIT_COUNT 10
31 #define KEY_INTERFACE_ID 0x101
32 #define KEY_MANUAL_ADDRESS 0x102
33 #define KEY_GATEWAY_ADDRESS 0x103
34 #define KEY_DNS_ADDRESS 0x104
35 #define KEY_SAVE_CHANGES 0x105
36 #define KEY_SAVE_CONFIG_CHANGES 0x106
37 #define KEY_IGNORE_CONFIG_CHANGES 0x107
39 #define HOST_ADDRESS_LABEL 0x9000
40 #define ROUTE_TABLE_LABEL 0xa000
41 #define GATEWAY_ADDRESS_LABEL 0xb000
42 #define DNS_ADDRESS_LABEL 0xc000
43 #define LABEL_END 0xffff
45 #define INTERFACE_ID_STR_MIN_SIZE 1
46 #define INTERFACE_ID_STR_MAX_SIZE 23
47 #define INTERFACE_ID_STR_STORAGE 24
48 #define IP6_STR_MAX_SIZE 40
49 #define ADDRESS_STR_MIN_SIZE 2
50 #define ADDRESS_STR_MAX_SIZE 255
53 /// IP6_CONFIG_IFR_NVDATA contains the IP6 configure
54 /// parameters for that NIC.
58 UINT8 IfType
; ///< interface type
60 UINT32 Policy
; ///< manual or automatic
61 UINT32 DadTransmitCount
; ///< dad transmits count
62 CHAR16 InterfaceId
[INTERFACE_ID_STR_STORAGE
]; ///< alternative interface id
63 CHAR16 ManualAddress
[ADDRESS_STR_MAX_SIZE
]; ///< IP addresses
64 CHAR16 GatewayAddress
[ADDRESS_STR_MAX_SIZE
]; ///< Gateway address
65 CHAR16 DnsAddress
[ADDRESS_STR_MAX_SIZE
]; ///< DNS server address
66 } IP6_CONFIG_IFR_NVDATA
;