]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4NvData.h
Use siaddr in DHCP packet, if zero, use option 54 instead.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / Ip4NvData.h
CommitLineData
63886849 1/** @file\r
2 Routines used to operate the Ip4 configure variable.\r
3\r
4Copyright (c) 2009, Intel Corporation.<BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at<BR>\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _NIC_IP4_NV_DATA_H_\r
16#define _NIC_IP4_NV_DATA_H_\r
17\r
18\r
19//\r
20// one copy from NicIp4ConfigNvData.h\r
21//\r
22#define EFI_NIC_IP4_CONFIG_VARIABLE_GUID \\r
23 { \\r
24 0xd8944553, 0xc4dd, 0x41f4, { 0x9b, 0x30, 0xe1, 0x39, 0x7c, 0xfb, 0x26, 0x7b } \\r
25 }\r
26\r
27#define FORMID_MAIN_FORM 1\r
28#define FORMID_DEVICE_FORM 2\r
29\r
30#define KEY_DHCP_ENABLE 0x101\r
31#define KEY_LOCAL_IP 0x102\r
32#define KEY_SUBNET_MASK 0x103\r
33#define KEY_GATE_WAY 0x104\r
34#define KEY_SAVE_CHANGES 0x105\r
35\r
36#define DEVICE_ENTRY_LABEL 0x1234\r
37#define LABEL_END 0xffff\r
38\r
39#define KEY_DEVICE_ENTRY_BASE 0x1000\r
40\r
41#define IP_MIN_SIZE 7\r
42#define IP_MAX_SIZE 15\r
43#define IP4_STR_MAX_SIZE 16\r
44\r
45///\r
46/// NIC_IP4_CONFIG_INFO contains the IP4 configure\r
47/// parameters for that NIC. NIC_IP4_CONFIG_INFO is\r
48/// of variable length.\r
49///\r
50typedef struct {\r
51 UINT16 NicAddr[3]; ///< NIC MAC address\r
52 UINT8 Reserved; ///< Reserved bits\r
53 UINT8 DhcpEnable; ///< Static or DHCP\r
54 CHAR16 StationAddress[IP4_STR_MAX_SIZE]; ///< IP addresses\r
55 CHAR16 SubnetMask[IP4_STR_MAX_SIZE]; ///< Subnet address\r
56 CHAR16 GatewayAddress[IP4_STR_MAX_SIZE]; ///< Gateway address\r
57} IP4_CONFIG_IFR_NVDATA;\r
58\r
59#endif\r