summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/HttpBootDxe/HttpBootDxe.h
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2017-07-26 15:57:38 +0800
committerFu Siyuan <siyuan.fu@intel.com>2017-08-03 14:12:43 +0800
commitbb4831c03dd15ff8528dcdbc7d2ad1835f55563e (patch)
tree343482b29459ea663d2f29c526531b9fadaac964 /NetworkPkg/HttpBootDxe/HttpBootDxe.h
parentf11a7a555269f469b609ceb77221b59ec9b93ba9 (diff)
downloadedk2-bb4831c03dd15ff8528dcdbc7d2ad1835f55563e.tar.gz
edk2-bb4831c03dd15ff8528dcdbc7d2ad1835f55563e.tar.bz2
edk2-bb4831c03dd15ff8528dcdbc7d2ad1835f55563e.zip
NetworkPkg: Display HTTP redirection info to the screen if need.
HTTP defines a set of status code for redirecting a request to a different URI in Section 6.4 of RFC7231 and also RFC7583. This patch updates the HTTP boot driver to display the redirection info to the screen so the user would have chance to know new URI address of the HTTP boot image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Diffstat (limited to 'NetworkPkg/HttpBootDxe/HttpBootDxe.h')
-rw-r--r--NetworkPkg/HttpBootDxe/HttpBootDxe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootDxe.h b/NetworkPkg/HttpBootDxe/HttpBootDxe.h
index 8d89b3e95c..4632ee2c8d 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootDxe.h
+++ b/NetworkPkg/HttpBootDxe/HttpBootDxe.h
@@ -179,6 +179,10 @@ struct _HTTP_BOOT_PRIVATE_DATA {
UINT32 Id;
EFI_HTTP_BOOT_CALLBACK_PROTOCOL *HttpBootCallback;
EFI_HTTP_BOOT_CALLBACK_PROTOCOL LoadFileCallback;
+
+ //
+ // Data for the default HTTP Boot callback protocol
+ //
UINT64 FileSize;
UINT64 ReceivedSize;
UINT32 Percentage;