NetworkPkg: Refine codes related to Dhcpv4 and Dhcpv6 configuration.
v2: *Since we have redefined the name of arch types in Dhcp.h for http boot, it need to change corresponding codes. Add a new head file Dhcp.h in Mde/Include/IndustryStandard, normalize the universal option numbers and other network number tags. Cc: Sriram Subramanian <sriram-s@hpe.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Functions declaration related with DHCPv6 for HTTP boot driver.
|
||||
|
||||
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
@@ -24,31 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#define HTTP_BOOT_DEFAULT_HOPLIMIT 64
|
||||
#define HTTP_BOOT_DEFAULT_LIFETIME 50000
|
||||
|
||||
|
||||
#define HTTP_BOOT_DHCP6_OPT_CLIENT_ID 1
|
||||
#define HTTP_BOOT_DHCP6_OPT_SERVER_ID 2
|
||||
#define HTTP_BOOT_DHCP6_OPT_IA_NA 3
|
||||
#define HTTP_BOOT_DHCP6_OPT_IA_TA 4
|
||||
#define HTTP_BOOT_DHCP6_OPT_IAADDR 5
|
||||
#define HTTP_BOOT_DHCP6_OPT_ORO 6
|
||||
#define HTTP_BOOT_DHCP6_OPT_PREFERENCE 7
|
||||
#define HTTP_BOOT_DHCP6_OPT_ELAPSED_TIME 8
|
||||
#define HTTP_BOOT_DHCP6_OPT_REPLAY_MSG 9
|
||||
#define HTTP_BOOT_DHCP6_OPT_AUTH 11
|
||||
#define HTTP_BOOT_DHCP6_OPT_UNICAST 12
|
||||
#define HTTP_BOOT_DHCP6_OPT_STATUS_CODE 13
|
||||
#define HTTP_BOOT_DHCP6_OPT_RAPID_COMMIT 14
|
||||
#define HTTP_BOOT_DHCP6_OPT_USER_CLASS 15
|
||||
#define HTTP_BOOT_DHCP6_OPT_VENDOR_CLASS 16
|
||||
#define HTTP_BOOT_DHCP6_OPT_VENDOR_OPTS 17
|
||||
#define HTTP_BOOT_DHCP6_OPT_INTERFACE_ID 18
|
||||
#define HTTP_BOOT_DHCP6_OPT_RECONFIG_MSG 19
|
||||
#define HTTP_BOOT_DHCP6_OPT_RECONFIG_ACCEPT 20
|
||||
#define HTTP_BOOT_DHCP6_OPT_DNS_SERVERS 23
|
||||
#define HTTP_BOOT_DHCP6_OPT_BOOT_FILE_URL 59 // Assigned by IANA, RFC 5970
|
||||
#define HTTP_BOOT_DHCP6_OPT_BOOT_FILE_PARAM 60 // Assigned by IANA, RFC 5970
|
||||
#define HTTP_BOOT_DHCP6_OPT_ARCH 61 // Assigned by IANA, RFC 5970
|
||||
#define HTTP_BOOT_DHCP6_OPT_UNDI 62 // Assigned by IANA, RFC 5970
|
||||
#define HTTP_BOOT_DHCP6_ENTERPRISE_NUM 343 // TODO: IANA TBD: temporarily using Intel's
|
||||
#define HTTP_BOOT_DHCP6_MAX_BOOT_FILE_SIZE 65535 // It's a limitation of bit length, 65535*512 bytes.
|
||||
|
||||
|
Reference in New Issue
Block a user