From: "Fu, Siyuan" <siyuan.fu@intel.com>
To: "Wu, Jiaxin" <jiaxin.wu@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Ye, Ting" <ting.ye@intel.com>
Subject: Re: [PATCH v1] MdeModulePkg/Mtftp4Dxe: Fix invalid configuration of MTFTP local port.
Date: Tue, 6 Nov 2018 06:53:33 +0000 [thread overview]
Message-ID: <B1FF2E9001CE9041BD10B825821D5BC58B67C1E8@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <20181105065830.16192-1-Jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
> -----Original Message-----
> From: Wu, Jiaxin
> Sent: Monday, November 5, 2018 2:58 PM
> To: edk2-devel@lists.01.org
> Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Wu,
> Jiaxin <jiaxin.wu@intel.com>
> Subject: [PATCH v1] MdeModulePkg/Mtftp4Dxe: Fix invalid configuration of
> MTFTP local port.
>
> This patch is to fix the invalid setting of MTFTP local port. The
> issue can be reproduced by tftp shell command by using [-l port]
> option.
>
> Cc: Ye Ting <ting.ye@intel.com>
> Cc: Fu Siyuan <siyuan.fu@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
> ---
> MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c
> b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c
> index f442e6d7ac..793ad77b1e 100644
> --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c
> +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c
> @@ -309,11 +309,11 @@ Mtftp4ConfigUnicastPort (
> UdpConfig.ReceiveTimeout = 0;
> UdpConfig.TransmitTimeout = 0;
> UdpConfig.UseDefaultAddress = Config->UseDefaultSetting;
> IP4_COPY_ADDRESS (&UdpConfig.StationAddress, &Config->StationIp);
> IP4_COPY_ADDRESS (&UdpConfig.SubnetMask, &Config->SubnetMask);
> - UdpConfig.StationPort = 0;
> + UdpConfig.StationPort = Config->LocalPort;
> UdpConfig.RemotePort = 0;
>
> Ip = HTONL (Instance->ServerIp);
> IP4_COPY_ADDRESS (&UdpConfig.RemoteAddress, &Ip);
>
> --
> 2.17.1.windows.2
prev parent reply other threads:[~2018-11-06 6:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 6:58 [PATCH v1] MdeModulePkg/Mtftp4Dxe: Fix invalid configuration of MTFTP local port Jiaxin Wu
2018-11-05 6:58 ` [PATCH v1] ShellPkg/TftpDynamicCommand: Clarify the retry count option in command Jiaxin Wu
2018-11-05 15:21 ` Carsey, Jaben
2018-11-06 6:51 ` Fu, Siyuan
2018-11-08 1:09 ` Carsey, Jaben
2018-11-08 1:23 ` Wu, Jiaxin
2018-11-06 6:53 ` Fu, Siyuan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B1FF2E9001CE9041BD10B825821D5BC58B67C1E8@SHSMSX103.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox