X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FMtftp6Dxe%2FMtftp6Option.h;fp=NetworkPkg%2FMtftp6Dxe%2FMtftp6Option.h;h=08aa45ff633a0615d07287282c4fb0c6e2ed5ff7;hp=8e2671fa218ed2712498be045be27a9ef0a4c271;hb=f3427f12a4a53b8cc32a6816934dbcf59072c1db;hpb=6c047cfab116c2a0187d959aee9e61ac902d7d50 diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h b/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h index 8e2671fa21..08aa45ff63 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h @@ -1,7 +1,7 @@ /** @file Mtftp6 option parse functions declaration. - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -26,7 +26,7 @@ #include #include -#define MTFTP6_SUPPORTED_OPTIONS_NUM 4 +#define MTFTP6_SUPPORTED_OPTIONS_NUM 5 #define MTFTP6_OPCODE_LEN 2 #define MTFTP6_ERRCODE_LEN 2 #define MTFTP6_BLKNO_LEN 2 @@ -39,11 +39,13 @@ #define MTFTP6_OPT_TIMEOUT_BIT 0x02 #define MTFTP6_OPT_TSIZE_BIT 0x04 #define MTFTP6_OPT_MCAST_BIT 0x08 +#define MTFTP6_OPT_WINDOWSIZE_BIT 0X10 extern CHAR8 *mMtftp6SupportedOptions[MTFTP6_SUPPORTED_OPTIONS_NUM]; typedef struct { UINT16 BlkSize; + UINT16 WindowSize; UINT8 Timeout; UINT32 Tsize; EFI_IPv6_ADDRESS McastIp; @@ -76,11 +78,12 @@ Mtftp6ParseMcastOption ( @param[in] Count The num of the extension options. @param[in] IsRequest If FALSE, the extension options is included by a request packet. + @param[in] Operation The current performed operation. @param[in] ExtInfo The pointer to the option information to be filled. - @retval EFI_SUCCESS Parse the multi-cast option successfully. - @retval EFI_INVALID_PARAMETER An option is malformatted. - @retval EFI_UNSUPPORTED An option is not supported. + @retval EFI_SUCCESS Parse the multicast option successfully. + @retval EFI_INVALID_PARAMETER There is one option is malformatted at least. + @retval EFI_UNSUPPORTED There is one option is not supported at least. **/ EFI_STATUS @@ -88,6 +91,7 @@ Mtftp6ParseExtensionOption ( IN EFI_MTFTP6_OPTION *Options, IN UINT32 Count, IN BOOLEAN IsRequest, + IN UINT16 Operation, IN MTFTP6_EXT_OPTION_INFO *ExtInfo );