TianoCore EDK2 master
Loading...
Searching...
No Matches
Ip6NvData.h
Go to the documentation of this file.
1
10#ifndef _IP6_NV_DATA_H_
11#define _IP6_NV_DATA_H_
12
13#include <Guid/Ip6ConfigHii.h>
14
15#define FORMID_MAIN_FORM 1
16#define FORMID_MANUAL_CONFIG_FORM 2
17#define FORMID_HEAD_FORM 3
18
19#define IP6_POLICY_AUTO 0
20#define IP6_POLICY_MANUAL 1
21#define DAD_MAX_TRANSMIT_COUNT 10
22
23#define KEY_INTERFACE_ID 0x101
24#define KEY_MANUAL_ADDRESS 0x102
25#define KEY_GATEWAY_ADDRESS 0x103
26#define KEY_DNS_ADDRESS 0x104
27#define KEY_SAVE_CHANGES 0x105
28#define KEY_SAVE_CONFIG_CHANGES 0x106
29#define KEY_IGNORE_CONFIG_CHANGES 0x107
30#define KEY_GET_CURRENT_SETTING 0x108
31
32#define HOST_ADDRESS_LABEL 0x9000
33#define ROUTE_TABLE_LABEL 0xa000
34#define GATEWAY_ADDRESS_LABEL 0xb000
35#define DNS_ADDRESS_LABEL 0xc000
36#define LABEL_END 0xffff
37
38#define INTERFACE_ID_STR_MIN_SIZE 1
39#define INTERFACE_ID_STR_MAX_SIZE 23
40#define INTERFACE_ID_STR_STORAGE 25
41#define IP6_STR_MAX_SIZE 40
42#define ADDRESS_STR_MIN_SIZE 2
43#define ADDRESS_STR_MAX_SIZE 255
44
49#pragma pack(1)
50typedef struct {
51 UINT8 IfType;
52 UINT8 Padding[3];
53 UINT32 Policy;
55 CHAR16 InterfaceId[INTERFACE_ID_STR_STORAGE];
56 CHAR16 ManualAddress[ADDRESS_STR_MAX_SIZE];
57 CHAR16 GatewayAddress[ADDRESS_STR_MAX_SIZE];
58 CHAR16 DnsAddress[ADDRESS_STR_MAX_SIZE];
60#pragma pack()
61
62#endif
UINT32 Policy
manual or automatic
Definition: Ip6NvData.h:53
UINT32 DadTransmitCount
dad transmits count
Definition: Ip6NvData.h:54
UINT8 IfType
interface type
Definition: Ip6NvData.h:51