]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Ip4Dxe/Ip4NvData.h
2 Routines used to operate the Ip4Dxe.
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _IP4_NV_DATA_H_
10 #define _IP4_NV_DATA_H_
12 #include <Guid/Ip4Config2Hii.h>
14 #define FORMID_MAIN_FORM 1
15 #define FORMID_DEVICE_FORM 2
17 #define KEY_ENABLE 0x100
18 #define KEY_DHCP_ENABLE 0x101
19 #define KEY_LOCAL_IP 0x102
20 #define KEY_SUBNET_MASK 0x103
21 #define KEY_GATE_WAY 0x104
23 #define KEY_SAVE_CHANGES 0x106
26 #define IP_MAX_SIZE 15
27 #define IP4_STR_MAX_SIZE 16
28 #define ADDRESS_STR_MAX_SIZE 255
29 #define MAX_IP4_CONFIG_DNS 16
32 /// IP4_CONFIG2_IFR_NVDATA contains the IP4 configure
33 /// parameters for that NIC.
36 UINT8 Configure
; ///< NIC configure status
37 UINT8 DhcpEnable
; ///< Static or DHCP
38 CHAR16 StationAddress
[IP4_STR_MAX_SIZE
]; ///< IP addresses
39 CHAR16 SubnetMask
[IP4_STR_MAX_SIZE
]; ///< Subnet address
40 CHAR16 GatewayAddress
[IP4_STR_MAX_SIZE
]; ///< Gateway address
41 CHAR16 DnsAddress
[ADDRESS_STR_MAX_SIZE
]; ///< DNS server address
42 } IP4_CONFIG2_IFR_NVDATA
;