mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Fix some typos in Http boot driver.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara <paulo.alc.cavalcanti@hp.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19640 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
91e914f587
commit
ef422fc53c
|
@ -719,8 +719,8 @@ HttpBootGetBootFile (
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
CHAR8 *HostName;
|
CHAR8 *HostName;
|
||||||
EFI_HTTP_REQUEST_DATA *RequestData;
|
EFI_HTTP_REQUEST_DATA *RequestData;
|
||||||
HTTP_IO_RESOPNSE_DATA *ResponseData;
|
HTTP_IO_RESPONSE_DATA *ResponseData;
|
||||||
HTTP_IO_RESOPNSE_DATA ResponseBody;
|
HTTP_IO_RESPONSE_DATA ResponseBody;
|
||||||
HTTP_IO *HttpIo;
|
HTTP_IO *HttpIo;
|
||||||
HTTP_IO_HEADER *HttpIoHeader;
|
HTTP_IO_HEADER *HttpIoHeader;
|
||||||
VOID *Parser;
|
VOID *Parser;
|
||||||
|
@ -884,7 +884,7 @@ HttpBootGetBootFile (
|
||||||
//
|
//
|
||||||
// 3.1 First step, use zero BodyLength to only receive the response headers.
|
// 3.1 First step, use zero BodyLength to only receive the response headers.
|
||||||
//
|
//
|
||||||
ResponseData = AllocateZeroPool (sizeof(HTTP_IO_RESOPNSE_DATA));
|
ResponseData = AllocateZeroPool (sizeof(HTTP_IO_RESPONSE_DATA));
|
||||||
if (ResponseData == NULL) {
|
if (ResponseData == NULL) {
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto ERROR_4;
|
goto ERROR_4;
|
||||||
|
@ -948,7 +948,7 @@ HttpBootGetBootFile (
|
||||||
// 3.4.2, start the message-body download, the identity and chunked transfer-coding
|
// 3.4.2, start the message-body download, the identity and chunked transfer-coding
|
||||||
// is handled in different path here.
|
// is handled in different path here.
|
||||||
//
|
//
|
||||||
ZeroMem (&ResponseBody, sizeof (HTTP_IO_RESOPNSE_DATA));
|
ZeroMem (&ResponseBody, sizeof (HTTP_IO_RESPONSE_DATA));
|
||||||
if (IdentityMode) {
|
if (IdentityMode) {
|
||||||
//
|
//
|
||||||
// In identity transfer-coding there is no need to parse the message body,
|
// In identity transfer-coding there is no need to parse the message body,
|
||||||
|
|
|
@ -41,7 +41,7 @@ typedef struct {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
LIST_ENTRY Link; // Link to the CacheList in driver's private data.
|
LIST_ENTRY Link; // Link to the CacheList in driver's private data.
|
||||||
EFI_HTTP_REQUEST_DATA *RequestData;
|
EFI_HTTP_REQUEST_DATA *RequestData;
|
||||||
HTTP_IO_RESOPNSE_DATA *ResponseData; // Not include any message-body data.
|
HTTP_IO_RESPONSE_DATA *ResponseData; // Not include any message-body data.
|
||||||
UINTN EntityLength;
|
UINTN EntityLength;
|
||||||
LIST_ENTRY EntityDataList; // Entity data (message-body)
|
LIST_ENTRY EntityDataList; // Entity data (message-body)
|
||||||
} HTTP_BOOT_CACHE_CONTENT;
|
} HTTP_BOOT_CACHE_CONTENT;
|
||||||
|
|
|
@ -914,7 +914,7 @@ HttpIoSendRequest (
|
||||||
FALSE to continue receive the previous response message.
|
FALSE to continue receive the previous response message.
|
||||||
@param[out] ResponseData Point to a wrapper of the received response data.
|
@param[out] ResponseData Point to a wrapper of the received response data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The HTTP resopnse is received.
|
@retval EFI_SUCCESS The HTTP response is received.
|
||||||
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
|
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
|
||||||
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
|
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
|
||||||
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
|
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
|
||||||
|
@ -925,7 +925,7 @@ EFI_STATUS
|
||||||
HttpIoRecvResponse (
|
HttpIoRecvResponse (
|
||||||
IN HTTP_IO *HttpIo,
|
IN HTTP_IO *HttpIo,
|
||||||
IN BOOLEAN RecvMsgHeader,
|
IN BOOLEAN RecvMsgHeader,
|
||||||
OUT HTTP_IO_RESOPNSE_DATA *ResponseData
|
OUT HTTP_IO_RESPONSE_DATA *ResponseData
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
|
@ -168,7 +168,7 @@ typedef union {
|
||||||
} HTTP_IO_CONFIG_DATA;
|
} HTTP_IO_CONFIG_DATA;
|
||||||
|
|
||||||
//
|
//
|
||||||
// HTTO_IO wrapper of the EFI HTTP service.
|
// HTTP_IO wrapper of the EFI HTTP service.
|
||||||
//
|
//
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT8 IpVersion;
|
UINT8 IpVersion;
|
||||||
|
@ -196,7 +196,7 @@ typedef struct {
|
||||||
EFI_HTTP_HEADER *Headers;
|
EFI_HTTP_HEADER *Headers;
|
||||||
UINTN BodyLength;
|
UINTN BodyLength;
|
||||||
CHAR8 *Body;
|
CHAR8 *Body;
|
||||||
} HTTP_IO_RESOPNSE_DATA;
|
} HTTP_IO_RESPONSE_DATA;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieve the host address using the EFI_DNS6_PROTOCOL.
|
Retrieve the host address using the EFI_DNS6_PROTOCOL.
|
||||||
|
@ -303,7 +303,7 @@ HttpIoSendRequest (
|
||||||
FALSE to continue receive the previous response message.
|
FALSE to continue receive the previous response message.
|
||||||
@param[out] ResponseData Point to a wrapper of the received response data.
|
@param[out] ResponseData Point to a wrapper of the received response data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The HTTP resopnse is received.
|
@retval EFI_SUCCESS The HTTP response is received.
|
||||||
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
|
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
|
||||||
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
|
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
|
||||||
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
|
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
|
||||||
|
@ -314,7 +314,7 @@ EFI_STATUS
|
||||||
HttpIoRecvResponse (
|
HttpIoRecvResponse (
|
||||||
IN HTTP_IO *HttpIo,
|
IN HTTP_IO *HttpIo,
|
||||||
IN BOOLEAN RecvMsgHeader,
|
IN BOOLEAN RecvMsgHeader,
|
||||||
OUT HTTP_IO_RESOPNSE_DATA *ResponseData
|
OUT HTTP_IO_RESPONSE_DATA *ResponseData
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue